Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update padding styles
  • Loading branch information
t-hamano committed Nov 17, 2022
commit e828e422e61a7163b6211980da3f4d67c5dba184
8 changes: 8 additions & 0 deletions packages/block-library/src/pullquote/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@
"typography": {
"fontSize": "1.5em",
"lineHeight": "1.6"
},
"spacing": {
"padding": {
"top": "4em",
"right": "0",
"bottom": "4em",
"left": "0"
}
}
}
},
Expand Down
9 changes: 8 additions & 1 deletion packages/block-library/src/pullquote/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.wp-block-pullquote {
margin: 0 0 1em 0;
padding: 3em 0;
text-align: center; // Default text-alignment where the `textAlign` attribute value isn't specified.
overflow-wrap: break-word; // Break long strings of text without spaces so they don't overflow the block.
box-sizing: border-box;
Expand All @@ -15,6 +14,14 @@
margin: 0;
}

p {
margin-top: 0;

&:last-child {
margin-bottom: 0;
}
}

&.alignleft,
&.alignright {
max-width: $content-width * 0.5;
Expand Down