Make WordPress Core

Ticket #55991: 55991--3.diff

File 55991--3.diff, 4.1 KB (added by poena, 3 years ago)

Remove most CSS variables from quote block CSS

  • src/wp-content/themes/twentytwentyone/assets/sass/04-elements/blockquote.scss

     
    33        position: relative;
    44        margin: var(--global--spacing-vertical) 0 var(--global--spacing-vertical) var(--global--spacing-horizontal);
    55
     6        &:not([style*="font-weight"]) p {
     7                font-weight: var(--quote--font-weight);
     8        }
     9
    610        > * {
    711                margin-top: var(--global--spacing-unit);
    812                margin-bottom: var(--global--spacing-unit);
     
    1620                }
    1721        }
    1822
    19         p {
    20                 letter-spacing: var(--heading--letter-spacing-h4);
    21                 font-family: var(--quote--font-family);
    22                 font-size: var(--quote--font-size);
    23                 font-style: var(--quote--font-style);
    24                 font-weight: var(--quote--font-weight);
    25                 line-height: var(--quote--line-height);
    26         }
    27 
    28         cite,
    29         footer {
    30                 font-weight: normal;
    31                 color: var(--global--color-primary);
    32                 font-size: var(--global--font-size-xs);
    33                 letter-spacing: var(--global--letter-spacing);
    34         }
    35 
    3623        &.alignleft,
    3724        &.alignright {
    38 
    3925                padding-left: inherit;
    4026
    4127                p {
    42                         font-size: var(--heading--font-size-h5);
    4328                        max-width: inherit;
    4429                        width: inherit;
    4530                }
    46 
    47                 cite,
    48                 footer {
    49                         font-size: var(--global--font-size-xs);
    50                         letter-spacing: var(--global--letter-spacing);
    51                 }
    5231        }
    5332
    54         strong {
    55                 font-weight: var(--quote--font-weight-strong);
    56         }
    57 
    5833        &:before {
    5934                content: "\201C";
    60                 font-size: var(--quote--font-size);
    61                 line-height: var(--quote--line-height);
    6235                position: absolute;
    6336                left: calc(-0.5 * var(--global--spacing-horizontal));
    6437        }
    6538
    66         .wp-block-quote__citation,
    67         cite,
    68         footer {
    69                 color: var(--global--color-primary);
    70                 font-size: var(--global--font-size-xs);
    71                 font-style: var(--quote--font-style-cite);
    72         }
    73 
    7439        @include media(mobile-only) {
    7540                padding-left: calc(0.5 * var(--global--spacing-horizontal));
    7641
  • src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss

     
    33        border-left: none;
    44        margin: var(--global--spacing-vertical) auto var(--global--spacing-vertical) var(--global--spacing-horizontal);
    55
    6         p {
    7                 font-family: var(--quote--font-family);
    8                 font-size: var(--quote--font-size);
    9                 font-style: var(--quote--font-style);
    10                 font-weight: var(--quote--font-weight);
    11                 line-height: var(--quote--line-height);
    12         }
    13 
    14         strong {
    15                 font-weight: var(--quote--font-weight-strong);
    16         }
    17 
    186        &:before {
    197                content: "\201C";
    20                 font-size: var(--quote--font-size);
    21                 line-height: var(--quote--line-height);
    228                left: calc(-0.5 * var(--global--spacing-horizontal));
    239        }
    2410
    2511        .wp-block-quote__citation {
    2612                color: currentColor;
    27                 font-size: var(--global--font-size-xs);
    28                 font-style: var(--quote--font-style-cite);
    2913
    3014                .has-background &,
    3115                [class*="background-color"] &,
     
    4832                // Align the quote left of the text.
    4933                p:before {
    5034                        content: "\201D";
    51                         font-size: var(--quote--font-size);
    52                         font-weight: normal;
    53                         line-height: var(--quote--line-height);
    5435                        margin-right: 5px;
    5536                }
    5637        }
  • src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_style.scss

     
    33
    44        &:before {
    55                content: "\201C";
    6                 font-size: var(--quote--font-size);
    7                 line-height: var(--quote--line-height);
    86                left: 8px;
    97        }
    108
     
    3634                // Align the quote left of the text.
    3735                p:before {
    3836                        content: "\201D";
    39                         font-size: var(--quote--font-size);
    40                         font-weight: normal;
    41                         line-height: var(--quote--line-height);
    4237                        margin-right: 5px;
    4338                }
    4439        }