Skip to content

Commit

Permalink
Add some visual debugging for nested overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 14, 2019
1 parent effe011 commit 5ee69d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/stylesheets/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $z-layers: (

// Small screen inner blocks overlay must be displayed above drop zone,
// settings menu, and movers.
".block-editor-inner-blocks__small-screen-overlay:after": 120,
".block-editor-inner-blocks.has-overlay:after": 120,

// Show sidebar above wp-admin navigation bar for mobile viewports:
// #wpadminbar { z-index: 99999 }
Expand Down
10 changes: 9 additions & 1 deletion packages/block-editor/src/components/inner-blocks/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
right: 0;
bottom: 0;
left: 0;
z-index: z-index(".block-editor-inner-blocks__small-screen-overlay:after");
z-index: z-index(".block-editor-inner-blocks.has-overlay:after");
}

.block-editor-inner-blocks.has-overlay {
background-color: #00a0d2;

.block-editor-inner-blocks.has-overlay {
background-color: #4ab866;
}
}

0 comments on commit 5ee69d0

Please sign in to comment.