mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 15:41:08 +01:00
Twenty Twenty: Properly reflect text color changes in Quote and Pullquote block.
This changeset ensures that text color for citation are inherited when the user specifies color for the Pullquote or Quote block, or if one of those blocks is inside a block with a background. Props nithins53, kajalgohel, kmadhak, sabernhardt, devtanbir, james-roberts, sapayth, rafinkhan, robinwpdeveloper, poena. Fixes #55990. git-svn-id: https://develop.svn.wordpress.org/trunk@55317 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
87ca0e14fa
commit
ea57bf06ea
@ -683,6 +683,12 @@ hr.wp-block-separator.is-style-dots::before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-quote.has-text-color cite,
|
||||
.editor-styles-wrapper .wp-block-quote.has-background cite,
|
||||
.editor-styles-wrapper .has-background .wp-block-quote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-quote p {
|
||||
color: inherit;
|
||||
font-weight: 400;
|
||||
@ -883,6 +889,12 @@ hr.wp-block-separator.is-style-dots::before {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-pullquote.has-text-color cite,
|
||||
.editor-styles-wrapper .wp-block-pullquote.has-background cite,
|
||||
.editor-styles-wrapper .has-background .wp-block-pullquote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* STYLE: SOLID COLOR */
|
||||
|
||||
.editor-styles-wrapper .wp-block-pullquote.is-style-solid-color {
|
||||
|
@ -687,6 +687,12 @@ hr.wp-block-separator.is-style-dots::before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-quote.has-text-color cite,
|
||||
.editor-styles-wrapper .wp-block-quote.has-background cite,
|
||||
.editor-styles-wrapper .has-background .wp-block-quote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-quote p {
|
||||
color: inherit;
|
||||
font-weight: 400;
|
||||
@ -887,6 +893,12 @@ hr.wp-block-separator.is-style-dots::before {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-pullquote.has-text-color cite,
|
||||
.editor-styles-wrapper .wp-block-pullquote.has-background cite,
|
||||
.editor-styles-wrapper .has-background .wp-block-pullquote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* STYLE: SOLID COLOR */
|
||||
|
||||
.editor-styles-wrapper .wp-block-pullquote.is-style-solid-color {
|
||||
|
@ -3241,6 +3241,12 @@ figure.wp-block-gallery.alignfull {
|
||||
margin-top: 1.2rem;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-color cite,
|
||||
.wp-block-pullquote.has-background cite,
|
||||
.has-background .wp-block-pullquote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
font-size: 2.8rem;
|
||||
@ -3359,6 +3365,12 @@ figure.wp-block-table.is-style-stripes {
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
.wp-block-quote.has-text-color cite,
|
||||
.wp-block-quote.has-background cite,
|
||||
.has-background .wp-block-quote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-quote[style="text-align:center"] {
|
||||
border-width: 0;
|
||||
padding: 0;
|
||||
|
@ -3261,6 +3261,12 @@ figure.wp-block-gallery.alignfull {
|
||||
margin-top: 1.2rem;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.has-text-color cite,
|
||||
.wp-block-pullquote.has-background cite,
|
||||
.has-background .wp-block-pullquote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
font-size: 2.8rem;
|
||||
@ -3379,6 +3385,12 @@ figure.wp-block-table.is-style-stripes {
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
.wp-block-quote.has-text-color cite,
|
||||
.wp-block-quote.has-background cite,
|
||||
.has-background .wp-block-quote cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-quote[style="text-align:center"] {
|
||||
border-width: 0;
|
||||
padding: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user