Skip to content

Commit

Permalink
Site Editor: Improve the frame animation (#62676)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 19, 2024
1 parent 9da6486 commit 9097405
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/edit-site/src/components/block-editor/style.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */
::view-transition-old(frame),
::view-transition-new(frame) {
animation-duration: 0;
}
/* stylelint-enable */

.edit-site-visual-editor__editor-canvas {
/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */
view-transition-name: frame;
/* stylelint-enable */

&.is-focused {
outline: calc(2 * var(--wp-admin-border-width-focus)) solid var(--wp-admin-theme-color);
outline-offset: calc(-2 * var(--wp-admin-border-width-focus));
Expand Down
13 changes: 13 additions & 0 deletions packages/edit-site/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
@import "./components/pagination/style.scss";
@import "./components/global-styles/variations/style.scss";

/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */
::view-transition-image-pair(root) {
isolation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
animation: none;
mix-blend-mode: normal;
display: block;
}
/* stylelint-enable */

body.js #wpadminbar {
display: none;
}
Expand Down

0 comments on commit 9097405

Please sign in to comment.