Skip to content
Closed
Changes from all commits
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
5 changes: 4 additions & 1 deletion packages/edit-post/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
// In the mean time, if a user has a small screen and lots of plugin-added menu items in the navigation menu,
// they have to be able to scroll. To accommodate the flyout menus, we scroll the `body` element for this.
@include break-medium() {
transition: margin-right 0.1s cubic-bezier(0, 0, 0.2, 1);
will-change: transform;

// Because the body element scrolls the navigation sidebar, we have to use position fixed here.
// Otherwise you would scroll the editing canvas out of view when you scroll the sidebar.
position: fixed;
Expand Down Expand Up @@ -173,7 +176,7 @@
width: $sidebar-width;
border-left: $border-width solid $light-gray-500;
transform: translateX(+100%);
animation: edit-post-post-publish-panel__slide-in-animation 0.1s forwards;
animation: edit-post-post-publish-panel__slide-in-animation 0.1s forwards cubic-bezier(0, 0, 0.2, 1);

body.is-fullscreen-mode & {
top: 0;
Expand Down