Make WordPress Core


Ignore:
Timestamp:
11/19/2018 09:26:02 PM (5 years ago)
Author:
allancole
Message:

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

This update changes the following:

  • Fix JS errors in customizer caused by menu scripts
  • Fix footer menu spacing
  • Fix pullquote block borders to follow Gutenberg’s described style
  • Fix editor-only styles so they don't appear on the frontend when not needed
  • Fix search field widget width on mobile
  • Fix :visited .button link colors
  • Fix Block toolbar position in the editor
  • Fix off-canvas mobile menu to prevent text from overflowing
  • Improve column block formatting for the editor and frontend
  • Improve CSS optimization for selectors that add dashes to multi-level lists
  • Improve editor font sizes to use pixels over ems
  • Improve styles for galleries in the Classic Editor block
  • Improve priority+ more-menu threshold to allow more space for menu-items
  • Improve logo size on mobile devices
  • Improve customizer color options to present a single, unified color option
  • Improve print stylesheet for better spacing and colors
  • Add more color options to Gutenberg editor

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

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/inc/color-patterns.php

    r43904 r43909  
    99
    1010/**
    11  * Generate the CSS for the current custom color scheme.
     11 * Generate the CSS for the current primary color.
    1212 */
    1313function twentynineteen_custom_colors_css() {
    1414
    15     if ( 'default' === get_theme_mod( 'colorscheme', 'default' ) ) {
     15    if ( 'default' === get_theme_mod( 'primary_color', 'default' ) ) {
    1616        $primary_color = 199;
    1717    } else {
    18         $primary_color = absint( get_theme_mod( 'colorscheme_primary_hue', 199 ) );
     18        $primary_color = absint( get_theme_mod( 'primary_color_hue', 199 ) );
    1919    }
    2020
     
    6161        .main-navigation .sub-menu,
    6262        .sticky-post,
    63         .entry .entry-content .wp-block-button .wp-block-button__link,
     63        .entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background),
    6464        .entry .button, button, input[type="button"], input[type="reset"], input[type="submit"],
    6565        .entry .entry-content > .has-primary-background-color,
     
    6767        .entry .entry-content > *[class^="wp-block-"] .has-primary-background-color,
    6868        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color,
    69         .entry .entry-content > *[class^="wp-block-"].is-style-solid-color .has-primary-background-color,
     69        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-primary-background-color,
    7070        .entry .entry-content .wp-block-file .wp-block-file__button {
    7171            background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
     
    8686         */
    8787        a,
    88         a:not(.button):visited,
     88        a:visited,
    8989        .main-navigation .main-menu > li,
    9090        .main-navigation ul.main-menu > li > a,
     
    9898        #colophon .site-info a:hover,
    9999        .widget a,
    100         .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link,
    101         .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link,
    102         .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link,
     100        .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
     101        .entry .entry-content > .has-primary-color,
    103102        .entry .entry-content > *[class^="wp-block-"] .has-primary-color,
    104         .entry .entry-content > *[class^="wp-block-"].is-style-solid-color .has-primary-color {
     103        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color,
     104        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color p {
    105105            color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
    106106        }
     
    148148        .main-navigation .main-menu > li > a:hover,
    149149        .main-navigation .main-menu > li > a:hover + svg,
     150        .post-navigation .nav-links a:hover,
    150151        .post-navigation .nav-links a:hover .post-title,
    151152        .author-bio .author-description .author-link:hover,
     153        .entry .entry-content > .has-secondary-color,
     154        .entry .entry-content > *[class^="wp-block-"] .has-secondary-color,
     155        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color,
     156        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color p,
    152157        .comment .comment-author .fn a:hover,
    153158        .comment-reply-link:hover,
     
    166171        .main-navigation .sub-menu > li > .menu-item-link-return:focus,
    167172        .main-navigation .sub-menu > li > a:not(.submenu-expand):hover,
    168         .main-navigation .sub-menu > li > a:not(.submenu-expand):focus {
     173        .main-navigation .sub-menu > li > a:not(.submenu-expand):focus,
     174        .entry .entry-content > .has-secondary-background-color,
     175        .entry .entry-content > *[class^="wp-block-"].has-secondary-background-color,
     176        .entry .entry-content > *[class^="wp-block-"] .has-secondary-background-color,
     177        .entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-secondary-background-color {
    169178            background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
    170179        }
Note: See TracChangeset for help on using the changeset viewer.