Make WordPress Core

Changeset 44302


Ignore:
Timestamp:
12/18/2018 10:23:06 PM (6 years ago)
Author:
desrosj
Message:

Updating Twenty Nineteen, the new default theme for 2019.

This update changes the following:

Props richtabor, kjellr, allancole.

Merges [44192] and [44193] to trunk.

See #45424.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentynineteen/inc/color-patterns.php

    r44298 r44302  
    1515    $primary_color = 199;
    1616    if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {
    17         $primary_color = absint( get_theme_mod( 'primary_color', 199 ) );
     17        $primary_color = absint( get_theme_mod( 'primary_color_hue', 199 ) );
    1818    }
    1919
  • trunk/src/wp-content/themes/twentynineteen/inc/template-functions.php

    r44298 r44302  
    107107 */
    108108function twentynineteen_image_filters_enabled() {
    109     return 'inactive' !== get_theme_mod( 'image_filter', 1 );
     109    return 0 !== get_theme_mod( 'image_filter', 1 );
    110110}
    111111
  • trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r44300 r44302  
    199199        &.is-style-outline .wp-block-button__link:focus,
    200200        &.is-style-outline .wp-block-button__link:active {
    201             @include button-all-transition; 
     201            @include button-all-transition;
    202202            border-width: 2px;
    203             border-style: solid;       
     203            border-style: solid;
    204204
    205205            &:not(.has-background) {
     
    242242                text-decoration: none;
    243243            }
     244        }
     245    }
     246
     247    .wp-block-archives,
     248    .wp-block-categories {
     249
     250        &.aligncenter {
     251            text-align: center;
    244252        }
    245253    }
     
    789797    .has-dark-gray-background-color,
    790798    .has-light-gray-background-color {
    791        
     799
    792800        // Use white text against these backgrounds by default.
    793801        color: $color__background-body;
  • trunk/src/wp-content/themes/twentynineteen/style-editor.css

    r44300 r44302  
    615615}
    616616
     617/* Remove duplicate rule-line when a separator
     618 * is followed by an H1, or H2 */
     619.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
     620.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
     621  display: none;
     622}
     623
    617624/** === Latest Posts, Archives, Categories === */
    618625ul.wp-block-archives,
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r44300 r44302  
    599599        padding-left: calc(2 * #{$size__spacing-unit});
    600600    }
     601}
     602
     603/* Remove duplicate rule-line when a separator
     604 * is followed by an H1, or H2 */
     605.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
     606.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
     607    display: none;
    601608}
    602609
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r44300 r44302  
    36913691}
    36923692
     3693.entry .entry-content .wp-block-archives.aligncenter,
     3694.entry .entry-content .wp-block-categories.aligncenter {
     3695  text-align: center;
     3696}
     3697
    36933698.entry .entry-content .wp-block-categories ul {
    36943699  padding-top: 0.75rem;
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r44300 r44302  
    37033703}
    37043704
     3705.entry .entry-content .wp-block-archives.aligncenter,
     3706.entry .entry-content .wp-block-categories.aligncenter {
     3707  text-align: center;
     3708}
     3709
    37053710.entry .entry-content .wp-block-categories ul {
    37063711  padding-top: 0.75rem;
Note: See TracChangeset for help on using the changeset viewer.