Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
smooth bg transition
  • Loading branch information
ntsekouras committed Sep 7, 2022
commit 6e50a75ff50ac2a0485f6c2aae5075dcd3e5e3a1
16 changes: 8 additions & 8 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,14 @@
.block-editor-iframe__body {
background: $white;
transition: all 0.3s;
}

.block-editor-iframe__body.is-zoomed-out {
transform-origin: top center;
transform: scale(0.45);
margin-bottom: -70%;
}
&.is-zoomed-out {
transform-origin: top center;
transform: scale(0.45);
margin-bottom: -70%;

.block-editor-iframe__body.is-zoomed-out > .block-list-appender {
display: none;
> .block-list-appender {
display: none;
}
}
}
8 changes: 5 additions & 3 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ function Iframe(
<head ref={ headRef }>
{ head }
<style>
{ isZoomedOut
? `html { transition: padding 0.3s; background: #2f2f2f; padding: 100px 0; }`
: `html { transition: padding 0.3s; }` }
{ `html { transition: padding 0.3s, background 0.3s; ${
isZoomedOut
? `background: #2f2f2f; padding: 100px 0;`
: ''
} }` }
</style>
</head>
<body
Expand Down