PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.2
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.2
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / wordpress / base-styles / _z-index.scss

_z-index.scss in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.2, at gutenberg/wordpress/base-styles/_z-index.scss

150 lines 6.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Stores a list of z-index values in a central location. For clarity, when a
2 // specific value is needed, add a comment explaining why (what other rules the
3 // value is designed to work with).
4
5 $z-layers: (
6 ".block-editor-block-list__block::before": 0,
7 ".block-editor-block-switcher__arrow": 1,
8 ".block-editor-block-list__block {core/image aligned wide or fullwide}": 20,
9 ".block-library-classic__toolbar": 31, // When scrolled to top this toolbar needs to sit over block-editor-block-toolbar
10 ".block-editor-block-list__layout .reusable-block-indicator": 1,
11 ".block-editor-block-list__block-selection-button": 22,
12 ".components-form-toggle__input": 1,
13 ".components-panel__header.edit-post-sidebar__panel-tabs": -1,
14 ".edit-post-sidebar .components-panel": -2,
15 ".edit-post-text-editor__toolbar": 1,
16 ".block-editor-inserter__tabs": 1,
17 ".edit-post-sidebar__panel-tab.is-active": 1,
18 ".block-editor-inserter__tab.is-active": 1,
19 ".components-panel__header": 1,
20 ".components-modal__header": 10,
21 ".edit-post-meta-boxes-area.is-loading::before": 1,
22 ".edit-post-meta-boxes-area .spinner": 5,
23 ".components-popover__close": 5,
24 ".block-editor-block-list__insertion-point": 6,
25 ".block-editor-warning": 5,
26 ".block-library-gallery-item__inline-menu": 20,
27 ".block-editor-url-input__suggestions": 30,
28 ".edit-post-layout__footer": 30,
29 ".interface-interface-skeleton__header": 30,
30 ".edit-site-header": 62,
31 ".edit-widgets-header": 30,
32 ".block-library-button__inline-link .block-editor-url-input__suggestions": 6, // URL suggestions for button block above sibling inserter
33 ".wp-block-cover__inner-container": 1, // InnerBlocks area inside cover image block
34 ".wp-block-cover.has-background-dim::before": 1, // Overlay area inside block cover need to be higher than the video background.
35 ".wp-block-cover__video-background": 0, // Video background inside cover block.
36 ".wp-block-template-part__placeholder-preview-filter-input": 1,
37
38 // Active pill button
39 ".components-button {:focus or .is-primary}": 1,
40
41 // The draggable element should show up above the entire UI
42 ".components-draggable__clone": 1000000000,
43
44 ".block-editor-block-list__block .reusable-block-edit-panel *": 1,
45
46 // Show drop zone above most standard content, but below any overlays
47 ".components-drop-zone": 40,
48 ".components-drop-zone__content": 50,
49
50 // The floated blocks should be above the other blocks to allow selection.
51 "{core/image aligned left or right} .wp-block": 21,
52
53 // Small screen inner blocks overlay must be displayed above drop zone,
54 // settings menu, and movers.
55 ".block-editor-block-list__layout.has-overlay::after": 60,
56
57 // The toolbar, when contextual, should be above any adjacent nested block click overlays.
58 ".block-editor-block-contextual-toolbar": 61,
59
60 // The block mover, particularly in nested contexts,
61 // should overlap most block content.
62 ".block-editor-block-list__block.is-{selected,hovered} .block-editor-block-mover": 61,
63
64 // Show sidebar above wp-admin navigation bar for mobile viewports:
65 // #wpadminbar { z-index: 99999 }
66 ".interface-interface-skeleton__sidebar": 100000,
67 ".edit-post-layout__toogle-sidebar-panel": 100000,
68 ".edit-site-sidebar": 100000,
69 ".edit-widgets-sidebar": 100000,
70 ".edit-post-layout .edit-post-post-publish-panel": 100001,
71 // For larger views, the wp-admin navbar dropdown should be at top of
72 // the Publish Post sidebar.
73 ".edit-post-layout .edit-post-post-publish-panel {greater than small}": 99998,
74
75 ".entities-saved-states__panel": 100001,
76 // For larger views, the wp-admin navbar dropdown should be on top of
77 // the multi-entity saving sidebar.
78 ".entities-saved-states__panel {greater than small}": 99998,
79 ".edit-site-editor__toggle-save-panel": 100000,
80
81 // Show sidebar in greater than small viewports above editor related elements
82 // but bellow #adminmenuback { z-index: 100 }
83 ".interface-interface-skeleton__sidebar {greater than small}": 90,
84 ".edit-site-sidebar {greater than small}": 90,
85 ".edit-widgets-sidebar {greater than small}": 90,
86
87 // Show notices below expanded editor bar
88 // .edit-post-header { z-index: 30 }
89 ".components-notice-list": 29,
90
91 // Above the block list and the header.
92 ".block-editor-block-list__block-popover": 31,
93
94 // Under the block popover (block toolbar).
95 ".block-editor-block-list__insertion-point-popover": 28,
96
97 // Show snackbars above everything (similar to popovers)
98 ".components-snackbar-list": 100000,
99
100 // Show modal under the wp-admin menus and the popover
101 ".components-modal__screen-overlay": 100000,
102
103 // Show popovers above wp-admin menus and submenus and sidebar:
104 // #adminmenuwrap { z-index: 9990 }
105 ".components-popover": 1000000,
106
107 // ...Except for popovers immediately beneath wp-admin menu on large breakpoints
108 ".components-popover.block-editor-inserter__popover": 99999,
109 ".components-popover.table-of-contents__popover": 99998,
110 ".components-popover.block-editor-block-navigation__popover": 99998,
111 ".components-popover.edit-post-more-menu__content": 99998,
112 ".components-popover.edit-site-more-menu__content": 99998,
113 ".components-popover.block-editor-rich-text__inline-format-toolbar": 99998,
114 ".components-popover.block-editor-warning__dropdown": 99998,
115
116 ".components-autocomplete__results": 1000000,
117
118 ".skip-to-selected-block": 100000,
119 ".interface-interface-skeleton__actions": 100000,
120
121 // Show NUX tips above popovers, wp-admin menus, submenus, and sidebar:
122 ".nux-dot-tip": 1000001,
123
124 // Show tooltips above NUX tips, wp-admin menus, submenus, and sidebar:
125 ".components-tooltip": 1000002,
126
127 // Make sure corner handles are above side handles for ResizableBox component
128 ".components-resizable-box__handle": 2,
129 ".components-resizable-box__side-handle": 2,
130 ".components-resizable-box__corner-handle": 2,
131
132 // Make sure block manager sticky category titles appear above the options
133 ".edit-post-manage-blocks-modal__category-title": 1,
134
135 // Needs to appear bellow other color circular picker related UI elements.
136 ".components-circular-option-picker__option-wrapper::before": -1,
137
138 ".components-circular-option-picker__option.is-pressed": 1,
139 // Needs to be higher than .components-circular-option-picker__option.is-pressed.
140 ".components-circular-option-picker__option.is-pressed + svg": 2
141 );
142
143 @function z-index( $key ) {
144 @if map-has-key( $z-layers, $key ) {
145 @return map-get( $z-layers, $key );
146 }
147
148 @error "Error: Specified z-index `#{$key}` does not exist in the mapping";
149 }
150