Make WordPress Core


Ignore:
Timestamp:
05/20/2024 03:12:41 PM (13 months ago)
Author:
karmatosed
Message:

Bundled Themes: Removes measurement in px for zero and related fixes.

The measurement in px for zero values is not needed. It does this for Twenty Twenty-One, Twenty Ten, Twenty Eleven and Twenty Nineteen. This also adds short-hand-property-no-redudant-values to Twenty Twenty-One's stylelint rules. Included is removing box-shadow prefixed rules before the standard property in Twenty Ten. Finally, it also removes empty spaces at the ends of lines in Twenty Thirteen, Twenty Nineteen and Twenty Twenty.

Props ankitmaru, SergeyBiryukov, netweb, mukesh27, ryelle, audrasjb, sabernhardt.
Fixes #53874.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r57712 r58178  
    427427        font-weight: bold;
    428428        border-radius: 5px;
    429    
     429
    430430        &:not(.has-text-color) {
    431431            color: #fff;
     
    842842        text-align: left;
    843843        text-align: center;
    844         -webkit-margin-start: 0px;
    845         margin-inline-start: 0px;
     844        -webkit-margin-start: 0;
     845        margin-inline-start: 0;
    846846    }
    847847}
     
    866866
    867867// This matches the 22px value for 1rem that used on the front end.
    868 // It must be specified in pixels for the editor, since the root font 
    869 // size is different here. 
     868// It must be specified in pixels for the editor, since the root font
     869// size is different here.
    870870$group-block-background__padding: $font__size_base;
    871871
     
    917917    // Group block with background color
    918918    &.has-background {
    919        
     919
    920920        // Child blocks: Default alignments
    921921        > .wp-block-group__inner-container > .wp-block:not([data-align="wide"]):not([data-align="full"]):not(.alignwide):not(.alignfull) {
     
    934934.wp-block[data-align="full"] > .wp-block-group {
    935935
    936         // Margins & padding are added to this container to mimic 
    937         // the style + spacing of the .editor-writing-flow global 
    938         // container. This way, child items sync up with the placement 
    939         // and size of other top-level blocks. 
     936        // Margins & padding are added to this container to mimic
     937        // the style + spacing of the .editor-writing-flow global
     938        // container. This way, child items sync up with the placement
     939        // and size of other top-level blocks.
    940940        > .wp-block-group__inner-container {
    941941
    942942            // 2px of extra padding are added to each side here
    943             // To better match up with the spacing of the whole 
    944             // document. 
     943            // To better match up with the spacing of the whole
     944            // document.
    945945            @include media(tablet) {
    946946                width: 80%;
    947947                margin-left: 10%;
    948                 margin-right: 10%; 
     948                margin-right: 10%;
    949949                padding-left: 10px;
    950950                padding-right: 10px;
Note: See TracChangeset for help on using the changeset viewer.