Make WordPress Core

Ticket #55991: 55991-4.diff

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

Updated patch

  • 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 {
    3825
     
    3926                padding-left: inherit;
    4027
    4128                p {
    42                         font-size: var(--heading--font-size-h5);
    4329                        max-width: inherit;
    4430                        width: inherit;
    4531                }
    46 
    47                 cite,
    48                 footer {
    49                         font-size: var(--global--font-size-xs);
    50                         letter-spacing: var(--global--letter-spacing);
    51                 }
    5232        }
    5333
    54         strong {
    55                 font-weight: var(--quote--font-weight-strong);
    56         }
    57 
    5834        &:before {
    5935                content: "\201C";
    60                 font-size: var(--quote--font-size);
    61                 line-height: var(--quote--line-height);
    6236                position: absolute;
    6337                left: calc(-0.5 * var(--global--spacing-horizontal));
    6438        }
    6539
    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 
    7440        @include media(mobile-only) {
    7541                padding-left: calc(0.5 * var(--global--spacing-horizontal));
    7642
  • src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss

     
    44        margin: var(--global--spacing-vertical) auto var(--global--spacing-vertical) var(--global--spacing-horizontal);
    55        padding-left: 1em;
    66
    7         p {
    8                 font-family: var(--quote--font-family);
    9                 font-size: var(--quote--font-size);
    10                 font-style: var(--quote--font-style);
    11                 font-weight: var(--quote--font-weight);
    12                 line-height: var(--quote--line-height);
    13         }
    14 
    15         strong {
    16                 font-weight: var(--quote--font-weight-strong);
    17         }
    18 
    197        &:before {
    208                content: "\201C";
    21                 font-size: var(--quote--font-size);
    22                 line-height: var(--quote--line-height);
    239                left: 8px;
    2410        }
    2511
    2612        .wp-block-quote__citation {
    2713                color: currentColor;
    28                 font-size: var(--global--font-size-xs);
    29                 font-style: var(--quote--font-style-cite);
    3014
    3115                .has-background &,
    3216                [class*="background-color"] &,
     
    4933                // Align the quote left of the text.
    5034                p:before {
    5135                        content: "\201D";
    52                         font-size: var(--quote--font-size);
    53                         font-weight: normal;
    54                         line-height: var(--quote--line-height);
    5536                        margin-right: 5px;
    5637                }
    5738        }
  • 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        }