Make WordPress Core


Ignore:
Timestamp:
11/16/2018 12:13:32 AM (5 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/style-editor.scss

    r43892 r43904  
    99@import "sass/mixins/mixins-master";
    1010
    11 /*
    12  * Chrome renders extra-wide   characters for the Hoefler Text font.
    13  * This results in a jumping cursor when typing in both the Classic and block
    14  * editors. The following font-face override fixes the issue by manually inserting
    15  * a custom font that includes just a Hoefler Text space replacement for that
    16  * character instead.
    17  */
    18 @font-face {
    19     font-family: 'NonBreakingSpaceOverride';
    20     src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNfuGqRf4eNNgV4YAlIIgxglEkWe6FYpq10+wi3g+/nUgvgPFczNrz/RsTgVm/zfbPuHZlsuQECxuyqBcQwKFBjFgKO8AqP4bAN9tFJtnM9xPcbNjeXS/x1wY/xU52f5W/X1+9cnH4YwKIaoRRAkUkj/YlAAeF/624foiIDBgBmgQBeGAyhBljUPZUm/l2dTvmpqcBDUOHdbPZWd8JsBAsGr4w8/EDn82/bUPx4eh0YNrQTBuHO2FjQEAGBwK0DeI37DpQVqdERS4gZBhpeUhWCfLFz7J99aEBgsJCHvUGAdAPp4IADDCAPCEFMGpMZ9AQpTfQtQGhLbGVBZFV8BaqNyP68oTZgHNj3M8kBPfXTTC9t90UuzYhy9ciH0grVlOcqyCytisvbsERsEYztiznR0WCrmTksJwbSNK6fd1Rvr25I9oLvctUoEbNOmXJbqgYgPXEHJ82IUsrCnpkxh23F1rfZ2zcRnJYoXtauB3VTFkFXQg3uoZYD5qE0kdjDtoDoF1h2bulGmev5HbYhbrjtohQSRI4aNOkffIcT+d3v6atpaYh3JvPoQsztCcqvaBkppDSPcQ3bw3KaCBo1f5CJWTZEgW3LjLofYg51MaVezrx8xZitYbQ9KYeoRaq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gYAZSDJqMgorCgoqCjECRXwwNrCAKSP5mAAFGBiRgyAAAi/YFBQAAeNqtkc1OwkAUhU/5M25cEhcsZick0AwlBJq6MWwgJkAgYV/KAA2lJeUn+hY+gktXvpKv4dLTMqKycGHsTZNv7px7z50ZAFd4hYHjdw1Ls4EiHjVncIFnzVnc4F1zDkWjrzmPW+NNcwGlzIRKI3fJlUyrEjZQxb3mDH2fNGfRx4vmHKqG0JzHg6E0F9DOlFBGBxUI1GEzLNT4S0aLuTtsGAEUuYcQHkyg3KmIum1bNUvKlrjbbAIleqHHnS4iSudpQcySMYtdFiXlAxzSbAwfMxK6kZoHKhbjjespMTioOPZnzI+4ucCeTVyKMVKLfeAS6vSWaTinuZwzyy/Dc7vaed+6KaV0kukdPUk6yOcctZPvvxxqksq2lEW8RvHjMEO2FCl/zy6p3NEm0R9OFSafJdldc4QVeyaaObMBO0/5cCaa6d9Ggyubxire+lEojscdjoWUR1xGOy8KD8mG2ZLO2l2paDc3A39qmU2z2W5YNv5+u79e6QfGJY/hAAB42m3NywrCMBQE0DupWp/1AYI7/6DEaLQu66Mrd35BKUWKJSlFv1+rue4cGM7shgR981qSon+ZNwUJ8iDgoYU2OvDRRQ99DDDECAHGmGCKmf80hZSx/Kik/LliFbtmN6xmt+yOjdg9GztV4tROnRwX/Bsaaw51nt4Lc7tWaZYHp/MlzKx51LZs5htNri+2AAAAAQAB//8AD3jaY2BkYGDgAWIxIGZiYARCESBmAfMYAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG) format('woff');
    22 
    23 }
    24 
    2511/** === Editor Frame === */
    2612
     
    3218
    3319    @include media(mobile) {
    34         padding-top: 0;
    35 
    36         :not(.editor-inner-blocks) > .editor-block-list__layout, // Target only the top level layout element, or nested blocks will also be affected.
    37         .editor-post-title {
    38             padding-left: 0;
    39             padding-right: 0;
    40         }
     20
     21        .wp-block[data-align="full"] {
     22            width: calc( 100% + 90px );
     23            max-width: calc( 100% + 90px );
     24        }
     25    }
     26
     27    @include media(tablet) {
    4128
    4229        .editor-writing-flow {
    43             padding-top: 50px;
    44             overflow: hidden;
    45         }
    46 
    47         .wp-block[data-align="full"] {
    48             position: relative;
    49             left: 45px;
    50         }
    51     }
    52 
    53     @include media(tablet) {
    54 
    55         :not(.editor-inner-blocks) > .editor-block-list__layout, // Target only the top level layout element, or nested blocks will also be affected.
    56         .editor-post-title {
    57             padding-left: 46px;
    58             padding-right: 46px;
    59         }
    60 
    61         .editor-block-list__layout,
    62         .editor-post-title {
    6330            max-width: 80%;
    6431            margin: 0 10%;
     
    8047            left: calc( -12.5% - 14px );
    8148            width: calc( 125% + 116px );
    82             max-width: calc( 125% + 116px );
     49            max-width: calc( 125% + 115px ); // Subtract 1px here to avoid the rounding errors that happen due to the usage of percentages.
    8350        }
    8451
     
    11380body {
    11481    font-size: $font__size_base;
    115     font-family: 'NonBreakingSpaceOverride', $font__body;
     82    font-family: $font__body;
    11683    line-height: $font__line-height-body;
    11784    color: $color__text-main;
     
    12996h6 {
    13097    font-family: $font__heading;
     98    font-weight: 700;
    13199}
    132100
     
    232200/** === Default Appender === */
    233201
    234 .editor-default-block-appender input[type="text"].editor-default-block-appender__content {
     202.editor-default-block-appender .editor-default-block-appender__content {
    235203    font-family: $font__body;
    236204    font-size: $font__size_base;
     
    255223        margin: 0 0.25em 0 0;
    256224    }
     225}
     226
     227/** === Table === */
     228
     229.wp-block-table {
     230    font-family: $font__heading;
    257231}
    258232
     
    509483
    510484.wp-block[data-type="core/pullquote"][data-align="full"] {
    511    
    512     @include media(tablet) {
    513        
     485
     486    @include media(tablet) {
     487
    514488        .wp-block-pullquote blockquote {
    515489            max-width: calc(80% - 128px);
     
    524498    font-family: $font__heading;
    525499
     500    .wp-block-file__textlink {
     501        text-decoration: underline;
     502        color: $color__link;
     503
     504        &:hover {
     505            color: $color__link-hover;
     506            text-decoration: none;
     507        }
     508    }
     509
    526510    .wp-block-file__button {
     511        display: table;
    527512        line-height: 1.8;
    528513        font-size: $font__size-sm;
     
    531516        border-radius: 5px;
    532517    }
     518
     519    .wp-block-file__button-richtext-wrapper {
     520        display: block;
     521        margin-top: calc(0.75 * #{$size__spacing-unit});
     522        margin-left: 0;
     523    }
     524
    533525}
    534526
     
    703695        }
    704696    }
    705 
    706     /* Add style for galleries in classic-editor block */
    707     .gallery {
    708 
    709         display: flex;
    710 
    711         .gallery-item {
    712             padding: ( $size__spacing-unit * .5 );
    713             text-align: center;
    714             vertical-align: top;
    715             width: 100%;
    716 
    717             .gallery-caption {
    718                 margin: 0;
    719             }
    720         }
    721 
    722         // Loops to enumerate the classes for gallery columns.
    723         @for $i from 2 through 9 {
    724             &.gallery-columns-#{$i} .gallery-item {
    725                 max-width: calc( ( 12 / #{$i} ) * (100% / 12) );
    726             }
    727         }
    728     }
    729 }
     697}
Note: See TracChangeset for help on using the changeset viewer.