Make WordPress Core

Changeset 44427 for branches/5.0


Ignore:
Timestamp:
01/07/2019 04:01:23 PM (8 years ago)
Author:
SergeyBiryukov
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.
Merges [44368] to the 5.0 branch.
Fixes #45689.

Location:
branches/5.0
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss

    r44426 r44427  
    203203                                display: block;
    204204                                line-height: $font__line-height-heading;
     205                                text-shadow: none;
    205206                                padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
    206207                                white-space: nowrap;
  • branches/5.0/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss

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

    r44426 r44427  
    12221222  display: block;
    12231223  line-height: 1.2;
     1224  text-shadow: none;
    12241225  padding: calc( .5 * 1rem) 1rem calc( .5 * 1rem) calc( 24px + 1rem);
    12251226  white-space: nowrap;
     
    21942195.site-header.featured-image .site-featured-image a:focus + svg {
    21952196  color: #fff;
     2197}
     2198
     2199.site-header.featured-image .main-navigation .sub-menu a {
     2200  opacity: inherit;
    21962201}
    21972202
  • branches/5.0/src/wp-content/themes/twentynineteen/style.css

    r44426 r44427  
    12221222  display: block;
    12231223  line-height: 1.2;
     1224  text-shadow: none;
    12241225  padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
    12251226  white-space: nowrap;
     
    22002201.site-header.featured-image .site-featured-image a:focus + svg {
    22012202  color: #fff;
     2203}
     2204
     2205.site-header.featured-image .main-navigation .sub-menu a {
     2206  opacity: inherit;
    22022207}
    22032208
Note: See TracChangeset for help on using the changeset viewer.