Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix text contrast and top stack for mobile nav menu #2835

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions www/assets/css/wpt-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ body.compare-loading wpt-header {
--wpt-header-activeborder: #091a3f33;
--wpt-header-border: #fff;
--wpt-header-background: #fff;
--wpt-user-icon: url(/assets/images/icon-user-dark.svg) left 50% no-repeat;
}

wpt-header {
width: 100%;
grid-column: 1 / 13;
position: relative;
z-index: 999;
z-index: 9999999;
background: none;
border: none;
}
Expand Down Expand Up @@ -246,13 +245,11 @@ wpt-header .wptheader_acct {
margin: 1rem;
padding: 2rem 1rem 2rem 2rem;
background: var(--wpt-user-icon);
color: var(--wpt-header-text);
}

wpt-header .wptheader_acct a,
wpt-header .wptheader_acct button[type="submit"] {
background: none;
color: var(--wpt-header-text);
font-size: 1em;
border: 0;
cursor: pointer;
Expand Down Expand Up @@ -379,6 +376,9 @@ wpt-header .wptheader_nav_menu details[open] summary span:after {
}

@media (min-width: 86em) {
wpt-header {
z-index: 999;
}
cp-header a {
padding-left: 1.5rem;
}
Expand Down Expand Up @@ -531,6 +531,21 @@ wpt-header .wptheader_nav_menu details[open] summary span:after {
wpt-header .wptheader_nav li details[open] {
background: transparent;
}
wpt-header .wptheader_acct a,
wpt-header .wptheader_acct button[type="submit"] {
color: var(--wpt-header-text);
}
.account-layout wpt-header,
body.history wpt-header,
body.about wpt-header,
body.four-oh-four wpt-header,
body.common wpt-header,
body.video wpt-header,
body.compare:not(.compare-experiment) wpt-header,
body#custom-waterfall wpt-header,
body.compare-loading wpt-header {
--wpt-user-icon: url(/assets/images/icon-user-dark.svg) left 50% no-repeat;
}
}

@media (min-width: 90em) {
Expand Down