Skip to content

Commit

Permalink
moved css to block editor
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Apr 19, 2024
1 parent 8cdca14 commit f074bc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 8 additions & 3 deletions packages/block-editor/src/components/block-canvas/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ iframe[name="editor-canvas"] {
width: 100%;
height: 100%;
display: block;
}

iframe[name="editor-canvas"]:not(.has-editor-padding):not(.is-zoomed-out) {
background-color: $white;
&:not(.has-editor-padding):not(.is-zoomed-out) {
background-color: $white;
}

&.is-zoomed-out {
background-color: $gray-300;
}
}


iframe[name="editor-canvas"].has-editor-padding {
padding: $grid-unit-30 $grid-unit-30 0;
}
3 changes: 0 additions & 3 deletions packages/edit-site/src/components/block-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
width: 100%;
height: 100%;
background: $white;
&.is-zoomed-out {
background: #ddd;
}
}

.edit-site-visual-editor__editor-canvas {
Expand Down

0 comments on commit f074bc7

Please sign in to comment.