Skip to content

Commit

Permalink
Fix editor view mode canvas shadow (#61688)
Browse files Browse the repository at this point in the history
* Remove ineffectual shadow

* Reapply shadow

* Try a little cleanup

Co-authored-by: stokesman <presstoke@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
  • Loading branch information
3 people committed May 16, 2024
1 parent 52c2827 commit 4fb90bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions packages/edit-site/src/components/block-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
& > .components-resizable-box__container {
margin: 0 auto;
}

&.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);
}
}

.resizable-editor__drag-handle {
Expand Down
7 changes: 2 additions & 5 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
justify-content: flex-end;
}

& > div {
.edit-site-resizable-frame__inner {
color: $gray-900;
}

Expand All @@ -128,6 +128,7 @@
width: calc(100% - #{$canvas-padding});

.edit-site-resizable-frame__inner-content {
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.8);
transition: border-radius 0.4s;
// This ensure the radius work properly.
overflow: hidden;
Expand All @@ -142,10 +143,6 @@
top: 0;
bottom: 0;
width: 100%;

& > div {
border-radius: 0;
}
}
}

Expand Down

0 comments on commit 4fb90bc

Please sign in to comment.