From 123f4dba34bcb310858504a00911097a89085cdf Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 5 May 2023 12:48:45 +0100 Subject: [PATCH] Site editor: remove canvas box shadow --- .../src/components/block-editor/style.scss | 16 +++++++++------- .../edit-site/src/components/layout/style.scss | 2 -- .../edit-site/src/components/list/style.scss | 4 ++++ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/edit-site/src/components/block-editor/style.scss b/packages/edit-site/src/components/block-editor/style.scss index 6bcdc727d55fba..397970487c1d7d 100644 --- a/packages/edit-site/src/components/block-editor/style.scss +++ b/packages/edit-site/src/components/block-editor/style.scss @@ -54,14 +54,16 @@ overflow: auto; } - /* - Temporary to hide the contextual toolbar in view mode. - See: https://github.com/WordPress/gutenberg/pull/46298 - This rule can possibly be removed once the - contextual toolbar has been redesigned. - See: https://github.com/WordPress/gutenberg/issues/40450 - */ &.is-view-mode { + box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.8); + + /* + Temporary to hide the contextual toolbar in view mode. + See: https://github.com/WordPress/gutenberg/pull/46298 + This rule can possibly be removed once the + contextual toolbar has been redesigned. + See: https://github.com/WordPress/gutenberg/issues/40450 + */ .block-editor-block-contextual-toolbar { display: none; } diff --git a/packages/edit-site/src/components/layout/style.scss b/packages/edit-site/src/components/layout/style.scss index 4bcab85d80062a..6192ccf2e86534 100644 --- a/packages/edit-site/src/components/layout/style.scss +++ b/packages/edit-site/src/components/layout/style.scss @@ -108,7 +108,6 @@ & > div { color: $gray-900; - box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.8); } @include break-medium { @@ -134,7 +133,6 @@ & > div { border-radius: 0; - box-shadow: none; } } } diff --git a/packages/edit-site/src/components/list/style.scss b/packages/edit-site/src/components/list/style.scss index 8682b9f79181ff..72b13b3a588be7 100644 --- a/packages/edit-site/src/components/list/style.scss +++ b/packages/edit-site/src/components/list/style.scss @@ -33,6 +33,10 @@ .edit-site { .edit-site-list { + background: $white; + border-radius: $radius-block-ui * 4; + box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.8); + .interface-interface-skeleton__editor { min-width: 100%;