Skip to content

Commit 4879071

Browse files
committed
Twenty Sixteen: Fixes pullquote block typography not working.
The pullquote block was not reflecting the typography changes. This updated patch keeps the size and also fixes the line height. Props pranitdugad, nidhidhandhukiya, jorbin, darshitrayaguru97, yurajsinj2211, ankit-k-gupta, poena, sabernhardt, shailu25. Fixes #59919. git-svn-id: https://develop.svn.wordpress.org/trunk@58907 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 39ce3bc commit 4879071

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,21 @@ p.has-drop-cap:not(:focus)::first-letter {
216216
text-transform: none;
217217
}
218218

219+
.wp-block-pullquote[class*="-font-size"] blockquote,
220+
.wp-block-pullquote[class*="-font-size"] blockquote p,
221+
.wp-block-pullquote[class*="-font-size"] cite,
222+
.wp-block-pullquote[style*="font-size"] blockquote,
223+
.wp-block-pullquote[style*="font-size"] blockquote p,
224+
.wp-block-pullquote[style*="font-size"] cite {
225+
font-size: inherit;
226+
}
227+
228+
.wp-block-pullquote[style*="line-height"] blockquote,
229+
.wp-block-pullquote[style*="line-height"] blockquote p,
230+
.wp-block-pullquote[style*="line-height"] cite {
231+
line-height: inherit;
232+
}
233+
219234
.wp-block-pullquote cite:before {
220235
content: "\2014\00a0";
221236
}

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,21 @@ figure[class*="wp-block-"] > figcaption {
538538
color: inherit;
539539
}
540540

541+
.wp-block-pullquote[class*="-font-size"] blockquote,
542+
.wp-block-pullquote[class*="-font-size"] blockquote p,
543+
.wp-block-pullquote[class*="-font-size"] cite,
544+
.wp-block-pullquote[style*="font-size"] blockquote,
545+
.wp-block-pullquote[style*="font-size"] blockquote p,
546+
.wp-block-pullquote[style*="font-size"] cite {
547+
font-size: inherit;
548+
}
549+
550+
.wp-block-pullquote[style*="line-height"] blockquote,
551+
.wp-block-pullquote[style*="line-height"] blockquote p,
552+
.wp-block-pullquote[style*="line-height"] cite {
553+
line-height: inherit;
554+
}
555+
541556
.wp-block-pullquote .wp-block-pullquote__citation:before {
542557
content: "\2014\00a0";
543558
}

0 commit comments

Comments
 (0)