Skip to content

Commit

Permalink
fix: unwanted padding inside the page editor [#54]
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian-ungureanu committed Aug 21, 2023
1 parent aa43843 commit 9db882b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions assets/css/src/common/_generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@ footer {
* https://github.com/WordPress/gutenberg/issues/35884
*/

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
padding-left: var(--wp--custom--spacing--outer);
padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
Expand Down
3 changes: 1 addition & 2 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"horizontal": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 2.222vw, calc( 2 * var( --wp--custom--spacing--baseline ) ) )",
"vertical": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 3.333vw, calc( 3 * var( --wp--custom--spacing--baseline ) ) )"
},
"gutter": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 3.333vw, calc( 3 * var( --wp--custom--spacing--baseline ) ) )",
"outer": "var( --wp--custom--spacing--gutter )"
"gutter": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 3.333vw, calc( 3 * var( --wp--custom--spacing--baseline ) ) )"
},
"typography": {
"fontSmoothing": {
Expand Down

0 comments on commit 9db882b

Please sign in to comment.