Skip to content

Commit

Permalink
Pullquote block: remove font definition from the default block styles (
Browse files Browse the repository at this point in the history
…#43195)

* Pullquote block: remove font definition from the default block styles to make it customizable using theme.json

* Relative unit

* Pullquote: removing default css from the editor conflicting with theme.json definitions
  • Loading branch information
matiasbenedetto authored Aug 16, 2022
1 parent a71779d commit 82509b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
6 changes: 6 additions & 0 deletions packages/block-library/src/pullquote/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
"style": true,
"width": true
}
},
"__experimentalStyle": {
"typography": {
"fontSize": "1.5em",
"lineHeight": "1.6"
}
}
},
"editorStyle": "wp-block-pullquote-editor",
Expand Down
16 changes: 0 additions & 16 deletions packages/block-library/src/pullquote/editor.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
.wp-block-pullquote.has-text-align-left,
.wp-block-pullquote.has-text-align-right,
.wp-block[data-align="left"] > .wp-block-pullquote,
.wp-block[data-align="right"] > .wp-block-pullquote {
& p {
font-size: 20px;
}
}

.wp-block-pullquote {
& blockquote p {
font-size: 28px;
line-height: 1.6;
}
}

// .is-style-solid-color is deprecated.
.wp-block-pullquote.is-style-solid-color {
& blockquote p {
Expand Down
9 changes: 0 additions & 9 deletions packages/block-library/src/pullquote/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
&.alignleft,
&.alignright {
max-width: $content-width * 0.5;

p {
font-size: 1.25em;
}
}

p {
font-size: 1.75em;
line-height: 1.6;
}

cite,
Expand Down

0 comments on commit 82509b6

Please sign in to comment.