Make WordPress Core

Changeset 44368 for trunk


Ignore:
Timestamp:
12/28/2018 06:11:45 PM (6 years ago)
Author:
laurelfulford
Message:

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.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss

    r44149 r44368  
    170170                display: block;
    171171                line-height: $font__line-height-heading;
     172                text-shadow: none;
    172173                padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
    173174                white-space: nowrap;
  • trunk/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss

    r44149 r44368  
    4444            color: $color__background-body;
    4545        }
     46    }
     47
     48    .main-navigation .sub-menu a {
     49        opacity: inherit;
    4650    }
    4751
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r44305 r44368  
    11911191  display: block;
    11921192  line-height: 1.2;
     1193  text-shadow: none;
    11931194  padding: calc( .5 * 1rem) 1rem calc( .5 * 1rem) calc( 24px + 1rem);
    11941195  white-space: nowrap;
     
    21562157.site-header.featured-image .site-featured-image a:focus + svg {
    21572158  color: #fff;
     2159}
     2160
     2161.site-header.featured-image .main-navigation .sub-menu a {
     2162  opacity: inherit;
    21582163}
    21592164
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r44322 r44368  
    11911191  display: block;
    11921192  line-height: 1.2;
     1193  text-shadow: none;
    11931194  padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
    11941195  white-space: nowrap;
     
    21622163.site-header.featured-image .site-featured-image a:focus + svg {
    21632164  color: #fff;
     2165}
     2166
     2167.site-header.featured-image .main-navigation .sub-menu a {
     2168  opacity: inherit;
    21642169}
    21652170
Note: See TracChangeset for help on using the changeset viewer.