Skip to content
Merged
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
14 changes: 14 additions & 0 deletions packages/media-editor/src/components/media-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@
flex-direction: column;
}

// The skeleton must always sit in the modal's flow (`top: auto`). The reset
// above sets that, but external rules can outrank its low specificity — e.g.
// the "Toolbar in editor" experiment (`gutenberg-admin-bar-in-editor`)
// offsets every `.interface-interface-skeleton` below the admin bar via a
// `body.has-admin-bar-in-editor.is-fullscreen-mode` rule, which would push
// the editor (and the fine-rotation ruler under the canvas) down inside our
// full-screen modal that already overlays the admin bar. Re-assert `top` at a
// specificity that beats such rules, anchored on the modal frame
// (`.media-editor` only ever renders inside `.media-editor-modal`) rather
// than on the experiment's class, which may change if it ever graduates.
.media-editor-modal & .interface-interface-skeleton.interface-interface-skeleton {
top: auto;
}

.interface-interface-skeleton__editor {
min-width: 0;
flex: 1;
Expand Down
Loading