From f074bc76ad4b508b7458e8058edcbda6c90c3f8f Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Fri, 19 Apr 2024 12:41:51 +0200 Subject: [PATCH] moved css to block editor --- .../src/components/block-canvas/style.scss | 11 ++++++++--- .../edit-site/src/components/block-editor/style.scss | 3 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/block-editor/src/components/block-canvas/style.scss b/packages/block-editor/src/components/block-canvas/style.scss index ea1358c3c08d7c..b35c746e9ce3ab 100644 --- a/packages/block-editor/src/components/block-canvas/style.scss +++ b/packages/block-editor/src/components/block-canvas/style.scss @@ -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; } diff --git a/packages/edit-site/src/components/block-editor/style.scss b/packages/edit-site/src/components/block-editor/style.scss index 9145f25a765e6b..fa7fd7e13df3e4 100644 --- a/packages/edit-site/src/components/block-editor/style.scss +++ b/packages/edit-site/src/components/block-editor/style.scss @@ -32,9 +32,6 @@ width: 100%; height: 100%; background: $white; - &.is-zoomed-out { - background: #ddd; - } } .edit-site-visual-editor__editor-canvas {