Skip to content

Commit f49154e

Browse files
Twenty Sixteen: Ensure the Quote block inherits group color settings.
The purpose of this change is to ensure that the quote block and the quote block cite inherits the text color from the parent block, if: * The parent has a text color set in the block settings, and * The quote block does not have a text color set in the block settings. Follow-up to [43799], [56087]. Props poena, melchoyce, sabernhardt, mukesh27, apermo, SergeyBiryukov. Fixes #51236. git-svn-id: https://develop.svn.wordpress.org/trunk@61441 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5a8baa4 commit f49154e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/wp-content/themes/twentysixteen/css/blocks.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ p.has-drop-cap:not(:focus)::first-letter {
7777
.wp-block-quote {
7878
border-width: 0 0 0 4px;
7979
}
80-
80+
8181
:where(.rtl) .wp-block-quote {
8282
border-width: 0 4px 0 0;
8383
}
@@ -106,6 +106,11 @@ p.has-drop-cap:not(:focus)::first-letter {
106106
color: inherit;
107107
}
108108

109+
.has-text-color .wp-block-quote:not(.has-text-color),
110+
.has-text-color .wp-block-quote:not(.has-text-color) cite {
111+
color: inherit;
112+
}
113+
109114
.wp-block-quote cite:before {
110115
content: "\2014\00a0";
111116
}

src/wp-content/themes/twentysixteen/css/editor-blocks.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ figure[class*="wp-block-"] > figcaption {
321321
margin-bottom: 1.4736842105em;
322322
}
323323

324-
.wp-block-quote__citation {
324+
.wp-block-quote__citation,
325+
.wp-block-quote cite {
325326
color: #1a1a1a;
326327
display: block;
327328
font-size: 16px;
@@ -333,6 +334,11 @@ figure[class*="wp-block-"] > figcaption {
333334
color: inherit;
334335
}
335336

337+
.has-text-color .wp-block-quote:not(.has-text-color),
338+
.has-text-color .wp-block-quote:not(.has-text-color) cite {
339+
color: inherit;
340+
}
341+
336342
.wp-block-quote__citation:before {
337343
content: "\2014\00a0";
338344
}
@@ -550,7 +556,7 @@ figure[class*="wp-block-"] > figcaption {
550556
.wp-block-pullquote[style*="font-size"] cite {
551557
font-size: inherit;
552558
}
553-
559+
554560
.wp-block-pullquote[style*="line-height"] blockquote,
555561
.wp-block-pullquote[style*="line-height"] blockquote p,
556562
.wp-block-pullquote[style*="line-height"] cite {

0 commit comments

Comments
 (0)