Make WordPress Core

Ticket #49931: 49931.diff

File 49931.diff, 1.3 KB (added by poena, 18 months ago)

Update style-editor.scss

  • src/wp-content/themes/twentynineteen/style-editor.scss

     
    168168        }
    169169}
    170170
    171 // Use white text against these backgrounds by default.
     171// Use white text against these backgrounds by default, unless a custom text color is set.
    172172.has-primary-background-color,
    173173.has-secondary-background-color,
    174174.has-dark-gray-background-color,
    175175.has-light-gray-background-color {
    176         color: $color__background-body;
     176        &:not(.has-text-color) {
     177                color: $color__background-body;
    177178
    178         p,
    179         h1,
    180         h2,
    181         h3,
    182         h4,
    183         h5,
    184         h6,
    185         a {
    186                 color: $color__background-body;
     179                p,
     180                h1,
     181                h2,
     182                h3,
     183                h4,
     184                h5,
     185                h6,
     186                a {
     187                        color: $color__background-body;
     188                }
    187189        }
    188190}
    189191
    190 // Use dark gray text against this background by default.
     192// Use dark gray text against this background by default, unless a custom text color is set.
    191193.has-white-background-color {
    192         color: $color__text-main;
     194        &:not(.has-text-color) {
     195                color: $color__text-main;
    193196
    194         p,
    195         h1,
    196         h2,
    197         h3,
    198         h4,
    199         h5,
    200         h6,
    201         a {
    202                 color: $color__text-main;
     197                p,
     198                h1,
     199                h2,
     200                h3,
     201                h4,
     202                h5,
     203                h6,
     204                a {
     205                        color: $color__text-main;
     206                }
    203207        }
    204208}
    205209