Twenty Nineteen: Remove transparency from submenus.
On pages and posts with featured images, the top level menu items have a slight transparency on hover, which was being inherited by their submenus. This update removes that inheritance, improving readability and consistency in the menu's appearance. Props kjellr. Fixes #45689. git-svn-id: https://develop.svn.wordpress.org/trunk@44368 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de5ab7155b
commit
42656f3e7a
@ -169,6 +169,7 @@
|
||||
color: $color__background-body;
|
||||
display: block;
|
||||
line-height: $font__line-height-heading;
|
||||
text-shadow: none;
|
||||
padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
|
||||
white-space: nowrap;
|
||||
|
||||
|
@ -45,6 +45,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.main-navigation .sub-menu a {
|
||||
opacity: inherit;
|
||||
}
|
||||
|
||||
/* add focus state to social media icons */
|
||||
.social-navigation a {
|
||||
&:focus {
|
||||
|
@ -1190,6 +1190,7 @@ body.page .main-navigation {
|
||||
color: #fff;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
text-shadow: none;
|
||||
padding: calc( .5 * 1rem) 1rem calc( .5 * 1rem) calc( 24px + 1rem);
|
||||
white-space: nowrap;
|
||||
}
|
||||
@ -2157,6 +2158,10 @@ body.page .main-navigation {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.site-header.featured-image .main-navigation .sub-menu a {
|
||||
opacity: inherit;
|
||||
}
|
||||
|
||||
.site-header.featured-image .social-navigation a:focus {
|
||||
color: #fff;
|
||||
opacity: 1;
|
||||
|
@ -1190,6 +1190,7 @@ body.page .main-navigation {
|
||||
color: #fff;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
text-shadow: none;
|
||||
padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@ -2163,6 +2164,10 @@ body.page .main-navigation {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.site-header.featured-image .main-navigation .sub-menu a {
|
||||
opacity: inherit;
|
||||
}
|
||||
|
||||
.site-header.featured-image .social-navigation a:focus {
|
||||
color: #fff;
|
||||
opacity: 1;
|
||||
|
Loading…
Reference in New Issue
Block a user