Skip to content

Commit

Permalink
Twenty Fourteen: Correctly reflect text color changes in Pullquote bl…
Browse files Browse the repository at this point in the history
…ock.

This changeset ensures text color changes on Pullquote block are reflected on both front-end and in the editor.

Props umesh84, audrasjb, sabernhardt, bgoewert, ruchirj, amitbarai013, robinwpdeveloper, shamayel007.
Fixes #56006.


git-svn-id: https://develop.svn.wordpress.org/trunk@55228 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Feb 6, 2023
1 parent 1a028cc commit 2188788
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/wp-content/themes/twentyfourteen/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ p.has-drop-cap:not(:focus)::first-letter {
text-transform: none;
}

.wp-block-pullquote.has-text-color blockquote,
.wp-block-pullquote.has-background blockquote,
.has-background .wp-block-pullquote blockquote,
.wp-block-pullquote.has-text-color cite,
.has-background .wp-block-pullquote cite,
.has-text-color .wp-block-pullquote__citation {
color: inherit;
}

.wp-block-pullquote.alignleft {
margin-right: 1em;
}
Expand Down
14 changes: 13 additions & 1 deletion src/wp-content/themes/twentyfourteen/css/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,13 @@ p.has-drop-cap:not(:focus)::first-letter {
/* Pullquote */

.wp-block-pullquote {
border: 0;
margin: 0;
}

.editor-styles-wrapper .wp-block-pullquote {
border: 0;
}

.wp-block-pullquote .wp-block-pullquote__citation {
color: #2b2b2b;
font-size: 16px;
Expand All @@ -376,6 +379,15 @@ p.has-drop-cap:not(:focus)::first-letter {
text-transform: none;
}

.wp-block-pullquote.has-text-color blockquote,
.wp-block-pullquote.has-background blockquote,
.has-background .wp-block-pullquote blockquote,
.wp-block-pullquote.has-text-color cite,
.has-background .wp-block-pullquote cite,
.has-text-color .wp-block-pullquote__citation {
color: inherit;
}

.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
font-size: 20px;
Expand Down

0 comments on commit 2188788

Please sign in to comment.