WordPress.org

Make WordPress Core

Changeset 44193


Ignore:
Timestamp:
12/14/2018 08:41:25 PM (9 months ago)
Author:
allancole
Message:

Updating Twenty Nineteen, the new default theme for 2019.

This update changes the following:

Props richtabor, kjellr.

See #45424.

Location:
branches/5.0/src/wp-content/themes/twentynineteen
Files:
6 edited

Legend:

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

    r44187 r44193  
    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
  • branches/5.0/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r44189 r44193  
    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;
  • branches/5.0/src/wp-content/themes/twentynineteen/style-editor.css

    r44189 r44193  
    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,
  • branches/5.0/src/wp-content/themes/twentynineteen/style-editor.scss

    r44189 r44193  
    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
  • branches/5.0/src/wp-content/themes/twentynineteen/style-rtl.css

    r44189 r44193  
    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;
  • branches/5.0/src/wp-content/themes/twentynineteen/style.css

    r44189 r44193  
    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.