Make WordPress Core


Ignore:
Timestamp:
12/01/2020 07:25:43 PM (6 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Sync the latest changes for 5.6 RC2.

This will be the final sync from GitHub before placing that repository into read-only mode. All further changes should now flow entirely through Trac.

For a full list of changes since [49633], see ​https://github.com/WordPress/twentytwentyone/compare/1d5a895...53acd9b.

Props poena, luminuu, kjellr, ryelle, allancole, melchoyce, felipeelia, aljullu, kebbet, chaton666, Clorith, mkaz, ingereck, paaljoachim.
Reviewed by desrosj, SergeyBiryukov.
Merges [49726] to the 5.6 branch.
Fixes #51526.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss

    r49574 r49728  
    2020                font-size: var(--quote--font-size);
    2121                line-height: var(--quote--line-height);
    22                 position: absolute;
    2322                left: calc(-0.5 * var(--global--spacing-horizontal));
    2423        }
    … …  
    2928                font-style: var(--quote--font-style-cite);
    3029
    31                 .has-background:not(.has-background-background-color) &,
    32                 [class*="background-color"]:not(.has-background-background-color) &,
    33                 [style*="background-color"]:not(.has-background-background-color) &,
     30                .has-background &,
     31                [class*="background-color"] &,
     32                [style*="background-color"] &,
    3433                .wp-block-cover[style*="background-image"] & {
    3534                        color: currentColor;
    … …  
    4241                border-right: none;
    4342
     43                // Hide the left aligned quote.
    4444                &:before {
     45                        display: none;
     46                }
     47
     48                // Align the quote left of the text.
     49                p:before {
    4550                        content: "\201D";
    46                         left: initial;
    47                         right: calc(-0.5 * var(--global--spacing-horizontal));
     51                        font-size: var(--quote--font-size);
     52                        font-weight: normal;
     53                        line-height: var(--quote--line-height);
     54                        margin-right: 5px;
    4855                }
    4956        }
    … …  
    7986                &.has-text-align-right {
    8087
     88                        // Hide the left aligned quote.
    8189                        &:before {
    82                                 left: initial;
    83                                 right: calc(-1 * var(--global--spacing-horizontal));
     90                                display: none;
     91                        }
     92
     93                        // Align the quote left of the text.
     94                        p:before {
     95                                content: "\201D";
     96                                font-size: var(--quote--font-size-large);
     97                                font-weight: normal;
     98                                line-height: var(--quote--line-height-large);
     99                                margin-right: 10px;
    84100                        }
    85101                }
Note: See TracChangeset for help on using the changeset viewer.