Make WordPress Core

Changeset 57712


Ignore:
Timestamp:
02/26/2024 04:25:28 PM (22 months ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Further adjust CSS selectors used to change the primary color.

This aims to make the file, button, quote, pullquote, and search block selectors work on multiple WordPress versions.

Follow-up to [57637].

Props poena, mukesh27.
Fixes #59922.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/inc/color-patterns.php

    r57637 r57712  
    213213         * - blockquote
    214214         * - pullquote (solid color)
    215          * - buttons
     215         * - buttons, including buttons in the file and search blocks.
    216216         */
    217217        .editor-styles-wrapper .wp-block a,
    218         .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
    219         .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color),
    220         .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color),
    221         .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color),
    222         .editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink {
     218        .editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink, /* Before 5.8 */
     219        .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), /* Before 5.8 */
     220        .editor-styles-wrapper .wp-block.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
     221        /* Before 5.8, the following hover style is needed to override the default color when the block is selected. */
     222        .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color) {
    223223            color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
    224224        }
    225225
    226226        .editor-styles-wrapper .wp-block.wp-block-quote:not(.is-large):not(.is-style-large),
    227         .editor-styles-wrapper .wp-block .wp-block-freeform blockquote {
     227        .editor-styles-wrapper .wp-block .wp-block-freeform blockquote, /* Before 5.8 */
     228        .editor-styles-wrapper .wp-block.wp-block-freeform blockquote {
    228229            border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
    229230        }
    230231
    231         .editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
    232             background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
    233         }
    234 
     232        /* Pullquote: The solid color variation was removed in 5.9, the CSS is kept for backwards compatibility. */
     233        .editor-styles-wrapper .wp-block .wp-block-pullquote.is-style-solid-color:not(.has-background-color), /* Before 5.8 */
     234        .editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color:not(.has-background-color),
     235        .editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__button, /* Before 5.8, and when the block is aligned. */
    235236        .editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__button,
    236237        .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link,
    237         .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
    238         .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
    239         .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
     238        .editor-styles-wrapper .wp-block .wp-block-search .wp-block-search__button, /* Before 5.8, and when the block is aligned. */
     239        .editor-styles-wrapper .wp-block.wp-block-search .wp-block-search__button {
    240240            background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
    241241        }
    242242
    243         /* Hover colors */
     243        /* Link hover colors */
    244244        .editor-styles-wrapper .wp-block a:hover,
    245245        .editor-styles-wrapper .wp-block a:active,
     
    249249
    250250        /* Do not overwrite solid color pullquote or cover links */
     251        .editor-styles-wrapper .wp-block .wp-block-pullquote.is-style-solid-color a,  /* Before 5.8 */
    251252        .editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color a,
    252253        .editor-styles-wrapper .wp-block.wp-block-cover a {
  • trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r57599 r57712  
    194194                background: $color__background-button-hover;
    195195                cursor: pointer;
     196                &:not(.has-background) {
     197                    background: $color__background-button-hover;
     198                }
    196199            }
    197200
     
    201204                outline: thin dotted;
    202205                outline-offset: -4px;
     206                &:not(.has-background) {
     207                    background: $color__background-button-hover;
     208                }
    203209            }
    204210        }
  • trunk/src/wp-content/themes/twentynineteen/style-editor.css

    r57599 r57712  
    3030h6:lang(ar), figcaption:lang(ar),
    3131.gallery-caption:lang(ar), .editor-post-title__block .editor-post-title__input:lang(ar), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ar), .wp-block-paragraph.has-drop-cap:lang(ar):not(:focus)::first-letter, .wp-block-table:lang(ar), .wp-block-cover h2:lang(ar),
    32 .wp-block-cover .wp-block-cover-text:lang(ar), .wp-block-button .wp-block-button__link:lang(ar), .wp-block-quote cite:lang(ar),
     32.wp-block-cover .wp-block-cover-text:lang(ar), .wp-block-button .wp-block-button__link:lang(ar), .wp-block-search .wp-block-search__button:lang(ar), .wp-block-quote cite:lang(ar),
    3333.wp-block-quote footer:lang(ar),
    3434.wp-block-quote .wp-block-quote__citation:lang(ar), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ar),
     
    4848h6:lang(ary), figcaption:lang(ary),
    4949.gallery-caption:lang(ary), .editor-post-title__block .editor-post-title__input:lang(ary), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ary), .wp-block-paragraph.has-drop-cap:lang(ary):not(:focus)::first-letter, .wp-block-table:lang(ary), .wp-block-cover h2:lang(ary),
    50 .wp-block-cover .wp-block-cover-text:lang(ary), .wp-block-button .wp-block-button__link:lang(ary), .wp-block-quote cite:lang(ary),
     50.wp-block-cover .wp-block-cover-text:lang(ary), .wp-block-button .wp-block-button__link:lang(ary), .wp-block-search .wp-block-search__button:lang(ary), .wp-block-quote cite:lang(ary),
    5151.wp-block-quote footer:lang(ary),
    5252.wp-block-quote .wp-block-quote__citation:lang(ary), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ary),
     
    6666h6:lang(azb), figcaption:lang(azb),
    6767.gallery-caption:lang(azb), .editor-post-title__block .editor-post-title__input:lang(azb), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(azb), .wp-block-paragraph.has-drop-cap:lang(azb):not(:focus)::first-letter, .wp-block-table:lang(azb), .wp-block-cover h2:lang(azb),
    68 .wp-block-cover .wp-block-cover-text:lang(azb), .wp-block-button .wp-block-button__link:lang(azb), .wp-block-quote cite:lang(azb),
     68.wp-block-cover .wp-block-cover-text:lang(azb), .wp-block-button .wp-block-button__link:lang(azb), .wp-block-search .wp-block-search__button:lang(azb), .wp-block-quote cite:lang(azb),
    6969.wp-block-quote footer:lang(azb),
    7070.wp-block-quote .wp-block-quote__citation:lang(azb), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(azb),
     
    8484h6:lang(ckb), figcaption:lang(ckb),
    8585.gallery-caption:lang(ckb), .editor-post-title__block .editor-post-title__input:lang(ckb), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ckb), .wp-block-paragraph.has-drop-cap:lang(ckb):not(:focus)::first-letter, .wp-block-table:lang(ckb), .wp-block-cover h2:lang(ckb),
    86 .wp-block-cover .wp-block-cover-text:lang(ckb), .wp-block-button .wp-block-button__link:lang(ckb), .wp-block-quote cite:lang(ckb),
     86.wp-block-cover .wp-block-cover-text:lang(ckb), .wp-block-button .wp-block-button__link:lang(ckb), .wp-block-search .wp-block-search__button:lang(ckb), .wp-block-quote cite:lang(ckb),
    8787.wp-block-quote footer:lang(ckb),
    8888.wp-block-quote .wp-block-quote__citation:lang(ckb), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ckb),
     
    102102h6:lang(fa-IR), figcaption:lang(fa-IR),
    103103.gallery-caption:lang(fa-IR), .editor-post-title__block .editor-post-title__input:lang(fa-IR), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(fa-IR), .wp-block-paragraph.has-drop-cap:lang(fa-IR):not(:focus)::first-letter, .wp-block-table:lang(fa-IR), .wp-block-cover h2:lang(fa-IR),
    104 .wp-block-cover .wp-block-cover-text:lang(fa-IR), .wp-block-button .wp-block-button__link:lang(fa-IR), .wp-block-quote cite:lang(fa-IR),
     104.wp-block-cover .wp-block-cover-text:lang(fa-IR), .wp-block-button .wp-block-button__link:lang(fa-IR), .wp-block-search .wp-block-search__button:lang(fa-IR), .wp-block-quote cite:lang(fa-IR),
    105105.wp-block-quote footer:lang(fa-IR),
    106106.wp-block-quote .wp-block-quote__citation:lang(fa-IR), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(fa-IR),
     
    120120h6:lang(haz), figcaption:lang(haz),
    121121.gallery-caption:lang(haz), .editor-post-title__block .editor-post-title__input:lang(haz), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(haz), .wp-block-paragraph.has-drop-cap:lang(haz):not(:focus)::first-letter, .wp-block-table:lang(haz), .wp-block-cover h2:lang(haz),
    122 .wp-block-cover .wp-block-cover-text:lang(haz), .wp-block-button .wp-block-button__link:lang(haz), .wp-block-quote cite:lang(haz),
     122.wp-block-cover .wp-block-cover-text:lang(haz), .wp-block-button .wp-block-button__link:lang(haz), .wp-block-search .wp-block-search__button:lang(haz), .wp-block-quote cite:lang(haz),
    123123.wp-block-quote footer:lang(haz),
    124124.wp-block-quote .wp-block-quote__citation:lang(haz), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(haz),
     
    138138h6:lang(ps), figcaption:lang(ps),
    139139.gallery-caption:lang(ps), .editor-post-title__block .editor-post-title__input:lang(ps), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ps), .wp-block-paragraph.has-drop-cap:lang(ps):not(:focus)::first-letter, .wp-block-table:lang(ps), .wp-block-cover h2:lang(ps),
    140 .wp-block-cover .wp-block-cover-text:lang(ps), .wp-block-button .wp-block-button__link:lang(ps), .wp-block-quote cite:lang(ps),
     140.wp-block-cover .wp-block-cover-text:lang(ps), .wp-block-button .wp-block-button__link:lang(ps), .wp-block-search .wp-block-search__button:lang(ps), .wp-block-quote cite:lang(ps),
    141141.wp-block-quote footer:lang(ps),
    142142.wp-block-quote .wp-block-quote__citation:lang(ps), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ps),
     
    156156h6:lang(be), figcaption:lang(be),
    157157.gallery-caption:lang(be), .editor-post-title__block .editor-post-title__input:lang(be), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(be), .wp-block-paragraph.has-drop-cap:lang(be):not(:focus)::first-letter, .wp-block-table:lang(be), .wp-block-cover h2:lang(be),
    158 .wp-block-cover .wp-block-cover-text:lang(be), .wp-block-button .wp-block-button__link:lang(be), .wp-block-quote cite:lang(be),
     158.wp-block-cover .wp-block-cover-text:lang(be), .wp-block-button .wp-block-button__link:lang(be), .wp-block-search .wp-block-search__button:lang(be), .wp-block-quote cite:lang(be),
    159159.wp-block-quote footer:lang(be),
    160160.wp-block-quote .wp-block-quote__citation:lang(be), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(be),
     
    174174h6:lang(bg-BG), figcaption:lang(bg-BG),
    175175.gallery-caption:lang(bg-BG), .editor-post-title__block .editor-post-title__input:lang(bg-BG), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(bg-BG), .wp-block-paragraph.has-drop-cap:lang(bg-BG):not(:focus)::first-letter, .wp-block-table:lang(bg-BG), .wp-block-cover h2:lang(bg-BG),
    176 .wp-block-cover .wp-block-cover-text:lang(bg-BG), .wp-block-button .wp-block-button__link:lang(bg-BG), .wp-block-quote cite:lang(bg-BG),
     176.wp-block-cover .wp-block-cover-text:lang(bg-BG), .wp-block-button .wp-block-button__link:lang(bg-BG), .wp-block-search .wp-block-search__button:lang(bg-BG), .wp-block-quote cite:lang(bg-BG),
    177177.wp-block-quote footer:lang(bg-BG),
    178178.wp-block-quote .wp-block-quote__citation:lang(bg-BG), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(bg-BG),
     
    192192h6:lang(kk), figcaption:lang(kk),
    193193.gallery-caption:lang(kk), .editor-post-title__block .editor-post-title__input:lang(kk), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(kk), .wp-block-paragraph.has-drop-cap:lang(kk):not(:focus)::first-letter, .wp-block-table:lang(kk), .wp-block-cover h2:lang(kk),
    194 .wp-block-cover .wp-block-cover-text:lang(kk), .wp-block-button .wp-block-button__link:lang(kk), .wp-block-quote cite:lang(kk),
     194.wp-block-cover .wp-block-cover-text:lang(kk), .wp-block-button .wp-block-button__link:lang(kk), .wp-block-search .wp-block-search__button:lang(kk), .wp-block-quote cite:lang(kk),
    195195.wp-block-quote footer:lang(kk),
    196196.wp-block-quote .wp-block-quote__citation:lang(kk), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(kk),
     
    210210h6:lang(mk-MK), figcaption:lang(mk-MK),
    211211.gallery-caption:lang(mk-MK), .editor-post-title__block .editor-post-title__input:lang(mk-MK), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(mk-MK), .wp-block-paragraph.has-drop-cap:lang(mk-MK):not(:focus)::first-letter, .wp-block-table:lang(mk-MK), .wp-block-cover h2:lang(mk-MK),
    212 .wp-block-cover .wp-block-cover-text:lang(mk-MK), .wp-block-button .wp-block-button__link:lang(mk-MK), .wp-block-quote cite:lang(mk-MK),
     212.wp-block-cover .wp-block-cover-text:lang(mk-MK), .wp-block-button .wp-block-button__link:lang(mk-MK), .wp-block-search .wp-block-search__button:lang(mk-MK), .wp-block-quote cite:lang(mk-MK),
    213213.wp-block-quote footer:lang(mk-MK),
    214214.wp-block-quote .wp-block-quote__citation:lang(mk-MK), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(mk-MK),
     
    228228h6:lang(mn), figcaption:lang(mn),
    229229.gallery-caption:lang(mn), .editor-post-title__block .editor-post-title__input:lang(mn), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(mn), .wp-block-paragraph.has-drop-cap:lang(mn):not(:focus)::first-letter, .wp-block-table:lang(mn), .wp-block-cover h2:lang(mn),
    230 .wp-block-cover .wp-block-cover-text:lang(mn), .wp-block-button .wp-block-button__link:lang(mn), .wp-block-quote cite:lang(mn),
     230.wp-block-cover .wp-block-cover-text:lang(mn), .wp-block-button .wp-block-button__link:lang(mn), .wp-block-search .wp-block-search__button:lang(mn), .wp-block-quote cite:lang(mn),
    231231.wp-block-quote footer:lang(mn),
    232232.wp-block-quote .wp-block-quote__citation:lang(mn), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(mn),
     
    246246h6:lang(ru-RU), figcaption:lang(ru-RU),
    247247.gallery-caption:lang(ru-RU), .editor-post-title__block .editor-post-title__input:lang(ru-RU), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ru-RU), .wp-block-paragraph.has-drop-cap:lang(ru-RU):not(:focus)::first-letter, .wp-block-table:lang(ru-RU), .wp-block-cover h2:lang(ru-RU),
    248 .wp-block-cover .wp-block-cover-text:lang(ru-RU), .wp-block-button .wp-block-button__link:lang(ru-RU), .wp-block-quote cite:lang(ru-RU),
     248.wp-block-cover .wp-block-cover-text:lang(ru-RU), .wp-block-button .wp-block-button__link:lang(ru-RU), .wp-block-search .wp-block-search__button:lang(ru-RU), .wp-block-quote cite:lang(ru-RU),
    249249.wp-block-quote footer:lang(ru-RU),
    250250.wp-block-quote .wp-block-quote__citation:lang(ru-RU), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ru-RU),
     
    264264h6:lang(sah), figcaption:lang(sah),
    265265.gallery-caption:lang(sah), .editor-post-title__block .editor-post-title__input:lang(sah), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(sah), .wp-block-paragraph.has-drop-cap:lang(sah):not(:focus)::first-letter, .wp-block-table:lang(sah), .wp-block-cover h2:lang(sah),
    266 .wp-block-cover .wp-block-cover-text:lang(sah), .wp-block-button .wp-block-button__link:lang(sah), .wp-block-quote cite:lang(sah),
     266.wp-block-cover .wp-block-cover-text:lang(sah), .wp-block-button .wp-block-button__link:lang(sah), .wp-block-search .wp-block-search__button:lang(sah), .wp-block-quote cite:lang(sah),
    267267.wp-block-quote footer:lang(sah),
    268268.wp-block-quote .wp-block-quote__citation:lang(sah), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(sah),
     
    282282h6:lang(sr-RS), figcaption:lang(sr-RS),
    283283.gallery-caption:lang(sr-RS), .editor-post-title__block .editor-post-title__input:lang(sr-RS), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(sr-RS), .wp-block-paragraph.has-drop-cap:lang(sr-RS):not(:focus)::first-letter, .wp-block-table:lang(sr-RS), .wp-block-cover h2:lang(sr-RS),
    284 .wp-block-cover .wp-block-cover-text:lang(sr-RS), .wp-block-button .wp-block-button__link:lang(sr-RS), .wp-block-quote cite:lang(sr-RS),
     284.wp-block-cover .wp-block-cover-text:lang(sr-RS), .wp-block-button .wp-block-button__link:lang(sr-RS), .wp-block-search .wp-block-search__button:lang(sr-RS), .wp-block-quote cite:lang(sr-RS),
    285285.wp-block-quote footer:lang(sr-RS),
    286286.wp-block-quote .wp-block-quote__citation:lang(sr-RS), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(sr-RS),
     
    300300h6:lang(tt-RU), figcaption:lang(tt-RU),
    301301.gallery-caption:lang(tt-RU), .editor-post-title__block .editor-post-title__input:lang(tt-RU), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(tt-RU), .wp-block-paragraph.has-drop-cap:lang(tt-RU):not(:focus)::first-letter, .wp-block-table:lang(tt-RU), .wp-block-cover h2:lang(tt-RU),
    302 .wp-block-cover .wp-block-cover-text:lang(tt-RU), .wp-block-button .wp-block-button__link:lang(tt-RU), .wp-block-quote cite:lang(tt-RU),
     302.wp-block-cover .wp-block-cover-text:lang(tt-RU), .wp-block-button .wp-block-button__link:lang(tt-RU), .wp-block-search .wp-block-search__button:lang(tt-RU), .wp-block-quote cite:lang(tt-RU),
    303303.wp-block-quote footer:lang(tt-RU),
    304304.wp-block-quote .wp-block-quote__citation:lang(tt-RU), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(tt-RU),
     
    318318h6:lang(uk), figcaption:lang(uk),
    319319.gallery-caption:lang(uk), .editor-post-title__block .editor-post-title__input:lang(uk), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(uk), .wp-block-paragraph.has-drop-cap:lang(uk):not(:focus)::first-letter, .wp-block-table:lang(uk), .wp-block-cover h2:lang(uk),
    320 .wp-block-cover .wp-block-cover-text:lang(uk), .wp-block-button .wp-block-button__link:lang(uk), .wp-block-quote cite:lang(uk),
     320.wp-block-cover .wp-block-cover-text:lang(uk), .wp-block-button .wp-block-button__link:lang(uk), .wp-block-search .wp-block-search__button:lang(uk), .wp-block-quote cite:lang(uk),
    321321.wp-block-quote footer:lang(uk),
    322322.wp-block-quote .wp-block-quote__citation:lang(uk), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(uk),
     
    336336h6:lang(zh-HK), figcaption:lang(zh-HK),
    337337.gallery-caption:lang(zh-HK), .editor-post-title__block .editor-post-title__input:lang(zh-HK), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(zh-HK), .wp-block-paragraph.has-drop-cap:lang(zh-HK):not(:focus)::first-letter, .wp-block-table:lang(zh-HK), .wp-block-cover h2:lang(zh-HK),
    338 .wp-block-cover .wp-block-cover-text:lang(zh-HK), .wp-block-button .wp-block-button__link:lang(zh-HK), .wp-block-quote cite:lang(zh-HK),
     338.wp-block-cover .wp-block-cover-text:lang(zh-HK), .wp-block-button .wp-block-button__link:lang(zh-HK), .wp-block-search .wp-block-search__button:lang(zh-HK), .wp-block-quote cite:lang(zh-HK),
    339339.wp-block-quote footer:lang(zh-HK),
    340340.wp-block-quote .wp-block-quote__citation:lang(zh-HK), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(zh-HK),
     
    354354h6:lang(zh-TW), figcaption:lang(zh-TW),
    355355.gallery-caption:lang(zh-TW), .editor-post-title__block .editor-post-title__input:lang(zh-TW), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(zh-TW), .wp-block-paragraph.has-drop-cap:lang(zh-TW):not(:focus)::first-letter, .wp-block-table:lang(zh-TW), .wp-block-cover h2:lang(zh-TW),
    356 .wp-block-cover .wp-block-cover-text:lang(zh-TW), .wp-block-button .wp-block-button__link:lang(zh-TW), .wp-block-quote cite:lang(zh-TW),
     356.wp-block-cover .wp-block-cover-text:lang(zh-TW), .wp-block-button .wp-block-button__link:lang(zh-TW), .wp-block-search .wp-block-search__button:lang(zh-TW), .wp-block-quote cite:lang(zh-TW),
    357357.wp-block-quote footer:lang(zh-TW),
    358358.wp-block-quote .wp-block-quote__citation:lang(zh-TW), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(zh-TW),
     
    372372h6:lang(zh-CN), figcaption:lang(zh-CN),
    373373.gallery-caption:lang(zh-CN), .editor-post-title__block .editor-post-title__input:lang(zh-CN), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(zh-CN), .wp-block-paragraph.has-drop-cap:lang(zh-CN):not(:focus)::first-letter, .wp-block-table:lang(zh-CN), .wp-block-cover h2:lang(zh-CN),
    374 .wp-block-cover .wp-block-cover-text:lang(zh-CN), .wp-block-button .wp-block-button__link:lang(zh-CN), .wp-block-quote cite:lang(zh-CN),
     374.wp-block-cover .wp-block-cover-text:lang(zh-CN), .wp-block-button .wp-block-button__link:lang(zh-CN), .wp-block-search .wp-block-search__button:lang(zh-CN), .wp-block-quote cite:lang(zh-CN),
    375375.wp-block-quote footer:lang(zh-CN),
    376376.wp-block-quote .wp-block-quote__citation:lang(zh-CN), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(zh-CN),
     
    390390h6:lang(bn-BD), figcaption:lang(bn-BD),
    391391.gallery-caption:lang(bn-BD), .editor-post-title__block .editor-post-title__input:lang(bn-BD), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(bn-BD), .wp-block-paragraph.has-drop-cap:lang(bn-BD):not(:focus)::first-letter, .wp-block-table:lang(bn-BD), .wp-block-cover h2:lang(bn-BD),
    392 .wp-block-cover .wp-block-cover-text:lang(bn-BD), .wp-block-button .wp-block-button__link:lang(bn-BD), .wp-block-quote cite:lang(bn-BD),
     392.wp-block-cover .wp-block-cover-text:lang(bn-BD), .wp-block-button .wp-block-button__link:lang(bn-BD), .wp-block-search .wp-block-search__button:lang(bn-BD), .wp-block-quote cite:lang(bn-BD),
    393393.wp-block-quote footer:lang(bn-BD),
    394394.wp-block-quote .wp-block-quote__citation:lang(bn-BD), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(bn-BD),
     
    408408h6:lang(hi-IN), figcaption:lang(hi-IN),
    409409.gallery-caption:lang(hi-IN), .editor-post-title__block .editor-post-title__input:lang(hi-IN), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(hi-IN), .wp-block-paragraph.has-drop-cap:lang(hi-IN):not(:focus)::first-letter, .wp-block-table:lang(hi-IN), .wp-block-cover h2:lang(hi-IN),
    410 .wp-block-cover .wp-block-cover-text:lang(hi-IN), .wp-block-button .wp-block-button__link:lang(hi-IN), .wp-block-quote cite:lang(hi-IN),
     410.wp-block-cover .wp-block-cover-text:lang(hi-IN), .wp-block-button .wp-block-button__link:lang(hi-IN), .wp-block-search .wp-block-search__button:lang(hi-IN), .wp-block-quote cite:lang(hi-IN),
    411411.wp-block-quote footer:lang(hi-IN),
    412412.wp-block-quote .wp-block-quote__citation:lang(hi-IN), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(hi-IN),
     
    426426h6:lang(mr), figcaption:lang(mr),
    427427.gallery-caption:lang(mr), .editor-post-title__block .editor-post-title__input:lang(mr), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(mr), .wp-block-paragraph.has-drop-cap:lang(mr):not(:focus)::first-letter, .wp-block-table:lang(mr), .wp-block-cover h2:lang(mr),
    428 .wp-block-cover .wp-block-cover-text:lang(mr), .wp-block-button .wp-block-button__link:lang(mr), .wp-block-quote cite:lang(mr),
     428.wp-block-cover .wp-block-cover-text:lang(mr), .wp-block-button .wp-block-button__link:lang(mr), .wp-block-search .wp-block-search__button:lang(mr), .wp-block-quote cite:lang(mr),
    429429.wp-block-quote footer:lang(mr),
    430430.wp-block-quote .wp-block-quote__citation:lang(mr), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(mr),
     
    444444h6:lang(ne-NP), figcaption:lang(ne-NP),
    445445.gallery-caption:lang(ne-NP), .editor-post-title__block .editor-post-title__input:lang(ne-NP), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ne-NP), .wp-block-paragraph.has-drop-cap:lang(ne-NP):not(:focus)::first-letter, .wp-block-table:lang(ne-NP), .wp-block-cover h2:lang(ne-NP),
    446 .wp-block-cover .wp-block-cover-text:lang(ne-NP), .wp-block-button .wp-block-button__link:lang(ne-NP), .wp-block-quote cite:lang(ne-NP),
     446.wp-block-cover .wp-block-cover-text:lang(ne-NP), .wp-block-button .wp-block-button__link:lang(ne-NP), .wp-block-search .wp-block-search__button:lang(ne-NP), .wp-block-quote cite:lang(ne-NP),
    447447.wp-block-quote footer:lang(ne-NP),
    448448.wp-block-quote .wp-block-quote__citation:lang(ne-NP), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ne-NP),
     
    462462h6:lang(el), figcaption:lang(el),
    463463.gallery-caption:lang(el), .editor-post-title__block .editor-post-title__input:lang(el), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(el), .wp-block-paragraph.has-drop-cap:lang(el):not(:focus)::first-letter, .wp-block-table:lang(el), .wp-block-cover h2:lang(el),
    464 .wp-block-cover .wp-block-cover-text:lang(el), .wp-block-button .wp-block-button__link:lang(el), .wp-block-quote cite:lang(el),
     464.wp-block-cover .wp-block-cover-text:lang(el), .wp-block-button .wp-block-button__link:lang(el), .wp-block-search .wp-block-search__button:lang(el), .wp-block-quote cite:lang(el),
    465465.wp-block-quote footer:lang(el),
    466466.wp-block-quote .wp-block-quote__citation:lang(el), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(el),
     
    480480h6:lang(gu), figcaption:lang(gu),
    481481.gallery-caption:lang(gu), .editor-post-title__block .editor-post-title__input:lang(gu), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(gu), .wp-block-paragraph.has-drop-cap:lang(gu):not(:focus)::first-letter, .wp-block-table:lang(gu), .wp-block-cover h2:lang(gu),
    482 .wp-block-cover .wp-block-cover-text:lang(gu), .wp-block-button .wp-block-button__link:lang(gu), .wp-block-quote cite:lang(gu),
     482.wp-block-cover .wp-block-cover-text:lang(gu), .wp-block-button .wp-block-button__link:lang(gu), .wp-block-search .wp-block-search__button:lang(gu), .wp-block-quote cite:lang(gu),
    483483.wp-block-quote footer:lang(gu),
    484484.wp-block-quote .wp-block-quote__citation:lang(gu), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(gu),
     
    498498h6:lang(he-IL), figcaption:lang(he-IL),
    499499.gallery-caption:lang(he-IL), .editor-post-title__block .editor-post-title__input:lang(he-IL), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(he-IL), .wp-block-paragraph.has-drop-cap:lang(he-IL):not(:focus)::first-letter, .wp-block-table:lang(he-IL), .wp-block-cover h2:lang(he-IL),
    500 .wp-block-cover .wp-block-cover-text:lang(he-IL), .wp-block-button .wp-block-button__link:lang(he-IL), .wp-block-quote cite:lang(he-IL),
     500.wp-block-cover .wp-block-cover-text:lang(he-IL), .wp-block-button .wp-block-button__link:lang(he-IL), .wp-block-search .wp-block-search__button:lang(he-IL), .wp-block-quote cite:lang(he-IL),
    501501.wp-block-quote footer:lang(he-IL),
    502502.wp-block-quote .wp-block-quote__citation:lang(he-IL), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(he-IL),
     
    516516h6:lang(ja), figcaption:lang(ja),
    517517.gallery-caption:lang(ja), .editor-post-title__block .editor-post-title__input:lang(ja), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ja), .wp-block-paragraph.has-drop-cap:lang(ja):not(:focus)::first-letter, .wp-block-table:lang(ja), .wp-block-cover h2:lang(ja),
    518 .wp-block-cover .wp-block-cover-text:lang(ja), .wp-block-button .wp-block-button__link:lang(ja), .wp-block-quote cite:lang(ja),
     518.wp-block-cover .wp-block-cover-text:lang(ja), .wp-block-button .wp-block-button__link:lang(ja), .wp-block-search .wp-block-search__button:lang(ja), .wp-block-quote cite:lang(ja),
    519519.wp-block-quote footer:lang(ja),
    520520.wp-block-quote .wp-block-quote__citation:lang(ja), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ja),
     
    534534h6:lang(ko-KR), figcaption:lang(ko-KR),
    535535.gallery-caption:lang(ko-KR), .editor-post-title__block .editor-post-title__input:lang(ko-KR), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(ko-KR), .wp-block-paragraph.has-drop-cap:lang(ko-KR):not(:focus)::first-letter, .wp-block-table:lang(ko-KR), .wp-block-cover h2:lang(ko-KR),
    536 .wp-block-cover .wp-block-cover-text:lang(ko-KR), .wp-block-button .wp-block-button__link:lang(ko-KR), .wp-block-quote cite:lang(ko-KR),
     536.wp-block-cover .wp-block-cover-text:lang(ko-KR), .wp-block-button .wp-block-button__link:lang(ko-KR), .wp-block-search .wp-block-search__button:lang(ko-KR), .wp-block-quote cite:lang(ko-KR),
    537537.wp-block-quote footer:lang(ko-KR),
    538538.wp-block-quote .wp-block-quote__citation:lang(ko-KR), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(ko-KR),
     
    552552h6:lang(th), figcaption:lang(th),
    553553.gallery-caption:lang(th), .editor-post-title__block .editor-post-title__input:lang(th), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(th), .wp-block-paragraph.has-drop-cap:lang(th):not(:focus)::first-letter, .wp-block-table:lang(th), .wp-block-cover h2:lang(th),
    554 .wp-block-cover .wp-block-cover-text:lang(th), .wp-block-button .wp-block-button__link:lang(th), .wp-block-quote cite:lang(th),
     554.wp-block-cover .wp-block-cover-text:lang(th), .wp-block-button .wp-block-button__link:lang(th), .wp-block-search .wp-block-search__button:lang(th), .wp-block-quote cite:lang(th),
    555555.wp-block-quote footer:lang(th),
    556556.wp-block-quote .wp-block-quote__citation:lang(th), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(th),
     
    570570h6:lang(vi), figcaption:lang(vi),
    571571.gallery-caption:lang(vi), .editor-post-title__block .editor-post-title__input:lang(vi), .block-editor-default-block-appender textarea.block-editor-default-block-appender__content:lang(vi), .wp-block-paragraph.has-drop-cap:lang(vi):not(:focus)::first-letter, .wp-block-table:lang(vi), .wp-block-cover h2:lang(vi),
    572 .wp-block-cover .wp-block-cover-text:lang(vi), .wp-block-button .wp-block-button__link:lang(vi), .wp-block-quote cite:lang(vi),
     572.wp-block-cover .wp-block-cover-text:lang(vi), .wp-block-button .wp-block-button__link:lang(vi), .wp-block-search .wp-block-search__button:lang(vi), .wp-block-quote cite:lang(vi),
    573573.wp-block-quote footer:lang(vi),
    574574.wp-block-quote .wp-block-quote__citation:lang(vi), .wp-block-pullquote[data-type="core/pullquote"] .wp-block-pullquote__citation:lang(vi),
     
    10401040}
    10411041
     1042.wp-block-search .wp-block-search__button {
     1043  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
     1044  font-size: 0.88889em;
     1045  font-weight: bold;
     1046  border-radius: 5px;
     1047}
     1048
     1049.wp-block-search .wp-block-search__button:not(.has-text-color) {
     1050  color: #fff;
     1051}
     1052
     1053.wp-block-search .wp-block-search__button:not(.has-background-color) {
     1054  background: #0073aa;
     1055}
     1056
    10421057/** === Blockquote === */
    10431058.wp-block-quote:not(.is-large):not(.is-style-large) {
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r57599 r57712  
    420420    }
    421421}
     422
     423.wp-block-search {
     424    .wp-block-search__button {
     425        @include font-family( $font__heading );
     426        font-size: $font__size-sm;
     427        font-weight: bold;
     428        border-radius: 5px;
     429   
     430        &:not(.has-text-color) {
     431            color: #fff;
     432        }
     433
     434        &:not(.has-background-color) {
     435            background: $color__background-button;
     436        }
     437    }
     438}
     439
    422440
    423441/** === Blockquote === */
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r57599 r57712  
    55155515}
    55165516
     5517.entry .entry-content .wp-block-button .wp-block-button__link:hover:not(.has-background) {
     5518  background: #111;
     5519}
     5520
    55175521.entry .entry-content .wp-block-button .wp-block-button__link:focus {
    55185522  color: white;
     
    55205524  outline: thin dotted;
    55215525  outline-offset: -4px;
     5526}
     5527
     5528.entry .entry-content .wp-block-button .wp-block-button__link:focus:not(.has-background) {
     5529  background: #111;
    55225530}
    55235531
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r57604 r57712  
    55275527}
    55285528
     5529.entry .entry-content .wp-block-button .wp-block-button__link:hover:not(.has-background) {
     5530  background: #111;
     5531}
     5532
    55295533.entry .entry-content .wp-block-button .wp-block-button__link:focus {
    55305534  color: white;
     
    55325536  outline: thin dotted;
    55335537  outline-offset: -4px;
     5538}
     5539
     5540.entry .entry-content .wp-block-button .wp-block-button__link:focus:not(.has-background) {
     5541  background: #111;
    55345542}
    55355543
Note: See TracChangeset for help on using the changeset viewer.