Skip to content

Commit

Permalink
Site Editor: Animate the radius of the frame (#60415)
Browse files Browse the repository at this point in the history
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jameskoster <[email protected]>
  • Loading branch information
3 people authored Apr 3, 2024
1 parent 99597b1 commit acf21a7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,13 @@
top: $canvas-padding;
bottom: $canvas-padding;
width: calc(100% - #{$canvas-padding});
transition: border-radius 0.4s;
// This ensure the radius work properly.
overflow: hidden;

& > div {
.edit-site-layout:not(.is-full-canvas) & {
border-radius: $radius-block-ui * 4;
// Not sure why this is necessary.
.edit-site-layout:not(.is-full-canvas) & .edit-site-visual-editor__editor-canvas,
.edit-site-layout:not(.is-full-canvas) & .interface-interface-skeleton__content {
border-radius: $radius-block-ui * 4;
}
}

}

.edit-site-layout.is-full-canvas & {
Expand Down

0 comments on commit acf21a7

Please sign in to comment.