WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/16/2018 12:13:32 AM (3 years ago)
Author:
allancole
Message:

Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.

This update changes the following:

  • Improve menu UI to support keyboard navigation in both directions
  • Improve more-menu-link visibility when no menu items are hidden
  • Improve text-selection custom colors for better contrast and legibility
  • Improve support for sticky toolbars in the editor
  • Improve table element fonts
  • Add .button class support
  • Remove translation escaping
  • Fix menu JS to prevent unused touched event listeners
  • Fix duplicate more-menu-link issue on selective refresh in the customizer
  • Fix editor font-weights for headings
  • Fix search form input style
  • Fix nested blockquote styles
  • Fix download block button style when download text stretches more than one line
  • Fix audio block centering issue
  • Fix align-full blocks in the editor so they don’t create horizontal scrollbars
  • Fix editor to prevent Gutenberg's meta boxes area from overlapping the content

Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, ntwb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins12, peterwilsoncc, DannyCooper, WPprodigy, siriokun, briannaorg, 00travelgirl00, shahjehanali1, ianbelanger79, nadim1992, Ismail-elkorchi, nativeinside, iamchetanp, grappler, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, jasmussen, laurelfulford, mdawaffe, kraftbj, dereksmart, naokomc, mayukojpn, enodekciw, chetansatasiya, ketuchetan, atanas-angelov-dev, carolinan, sharazghouri, artisan-asad, mukeshpanchal27, mukesh27, burhandodhy, @crunnells, aryaprakasa, tlxo, themeroots, whizbangik, yingles, tlxo, youthkee, brentswisher, smy315, ahmadawais, desi-developer, 2ndkauboy, mor10.

File:
1 edited

Legend:

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

    r43892 r43904  
    6565
    6666                .submenu-expand {
     67
    6768                    display: inline-block;
    6869                    margin-right: #{0.5 * $size__spacing-unit};
     
    8687                    }
    8788
     89                    .wp-customizer-unloading &,
     90                    &.is-empty {
     91                        display: none;
     92                    }
     93
    8894                    svg {
    8995                        position: relative;
     
    97103                margin-right: 0;
    98104            }
    99         }
    100 
    101         .is-hidden {
    102             display: none;
    103105        }
    104106    }
     
    111113        padding-left: 0;
    112114
    113         display: none;
    114115        position: absolute;
    115116        opacity: 0;
    116         left: -999px;
     117        left: -9999px;
    117118        z-index: 99999;
    118119
     
    182183            }
    183184
     185            > a:empty {
     186                display: none;
     187            }
     188
    184189            &.mobile-parent-nav-menu-item {
    185190
     
    395400
    396401    /**
     402     * Fade-in animation for top-level submenus
     403     */
     404    .main-menu > .menu-item-has-children:not(.off-canvas):hover > .sub-menu {
     405        animation: fade_in 0.1s forwards;
     406    }
     407
     408    /**
    397409     * Full-screen touch device styles
    398410     */
    399411    .main-menu .menu-item-has-children.off-canvas .sub-menu {
    400 
    401         animation: fade_in 0.1s forwards;
    402412
    403413        .submenu-expand .svg-icon {
     
    464474        }
    465475    }
     476
     477    // Hide duplicate menu-more-link when re-loading a menu in the customizer
     478    .main-menu-more {
     479        &:nth-child(n+3) {
     480            display: none;
     481        }
     482    }
     483
    466484}
    467485
Note: See TracChangeset for help on using the changeset viewer.