Skip to content

Commit

Permalink
Move the override to editor-styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed May 13, 2020
1 parent fadc504 commit ef1c14f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -600,12 +600,3 @@
.is-dragging-components-draggable .components-tooltip {
display: none;
}

// The editor-styles.scss file adds 10px padding all around the canvas, to ensure blocks aren't edge to edge on mobile.
// For full-wide blocks, we compensate for these 10px.
.block-editor-block-list__layout.is-root-container {
> .wp-block[data-align="full"] {
margin-left: -10px;
margin-right: -10px;
}
}
7 changes: 7 additions & 0 deletions packages/editor/src/editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ body {
padding: 10px;
}

// For full-wide blocks, we compensate for these 10px.
.block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"] {
margin-left: -10px;
margin-right: -10px;
}


/* Headings */
// These follow a Major Third type scale
// https://type-scale.com/?size=16&scale=1.250&text=A%20Visual%20Type%20Scale&font=Noto%20Serif&fontweight=600
Expand Down

0 comments on commit ef1c14f

Please sign in to comment.