@bison-lab/tokens 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/base.css +16 -2
- package/package.json +1 -1
package/css/base.css
CHANGED
|
@@ -15,12 +15,26 @@
|
|
|
15
15
|
--font-weight-bold: 700;
|
|
16
16
|
--font-weight-extrabold: 800;
|
|
17
17
|
|
|
18
|
-
/* Locked z-index defaults (overridable via CSS custom properties)
|
|
19
|
-
|
|
18
|
+
/* Locked z-index defaults (overridable via CSS custom properties)
|
|
19
|
+
*
|
|
20
|
+
* Hierarchy (ascending):
|
|
21
|
+
* Sticky/fixed chrome (100–200) — page-level UI
|
|
22
|
+
* Modal backdrop + content (300–400) — blocks main UI when open
|
|
23
|
+
* Dropdown / popover (500) — floating menus; above modals
|
|
24
|
+
* so Select/DropdownMenu inside a
|
|
25
|
+
* Dialog render correctly
|
|
26
|
+
* Tooltip (600) — always-on-top hint
|
|
27
|
+
* Toast (700) — notifications over everything
|
|
28
|
+
*
|
|
29
|
+
* Previous scheme had --z-dropdown: 50 which sat BELOW sticky (100),
|
|
30
|
+
* fixed (200), and modal (400) — breaking DropdownMenu/Select when opened
|
|
31
|
+
* inside sticky headers or modals. Dropdown + popover now at 500.
|
|
32
|
+
*/
|
|
20
33
|
--z-sticky: 100;
|
|
21
34
|
--z-fixed: 200;
|
|
22
35
|
--z-modal-backdrop: 300;
|
|
23
36
|
--z-modal: 400;
|
|
37
|
+
--z-dropdown: 500;
|
|
24
38
|
--z-popover: 500;
|
|
25
39
|
--z-tooltip: 600;
|
|
26
40
|
--z-toast: 700;
|