Skip to content

Commit ddc2602

Browse files
Update pullquote styles
1 parent 740e871 commit ddc2602

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/block-library/src/pullquote/editor.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// .is-style-solid-color is deprecated.
2+
// This selector has not been scoped with `:root :where`, as global styles
3+
// does, to keep its specificity as it was at the time of deprecation.
24
.wp-block-pullquote.is-style-solid-color {
35
& blockquote p {
46
font-size: 32px;

packages/block-library/src/pullquote/style.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
text-align: center; // Default text-alignment where the `textAlign` attribute value isn't specified.
33
overflow-wrap: break-word; // Break long strings of text without spaces so they don't overflow the block.
44
box-sizing: border-box;
5+
margin: 0 0 1em 0;
6+
padding: 4em 0;
57

68
p,
79
blockquote,
@@ -35,12 +37,6 @@
3537
}
3638
}
3739

38-
// Lowest specificity to avoid overriding layout and global styles.
39-
:where(.wp-block-pullquote) {
40-
margin: 0 0 1em 0;
41-
padding: 4em 0;
42-
}
43-
4440
// Ensure that we are reasonably specific to override theme defaults.
4541
.wp-block-pullquote.has-text-align-left blockquote {
4642
text-align: left;
@@ -52,6 +48,8 @@
5248
}
5349

5450
// .is-style-solid-color is deprecated.
51+
// This selector has not been scoped with `:root :where`, as global styles
52+
// does, to keep its specificity as it was at the time of deprecation.
5553
.wp-block-pullquote.is-style-solid-color {
5654
border: none;
5755
blockquote {

0 commit comments

Comments
 (0)