Skip to content

Commit

Permalink
Site editor: remove canvas box shadow (#50374)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored May 9, 2023
1 parent f134db0 commit eef6fe9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions packages/edit-site/src/components/block-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,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;
}
Expand Down
2 changes: 0 additions & 2 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -134,7 +133,6 @@

& > div {
border-radius: 0;
box-shadow: none;
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/edit-site/src/components/list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;

Expand Down

0 comments on commit eef6fe9

Please sign in to comment.