Z-index utilities.
Classes:
z-index values: .z-auto, .z-0, .z-10, .z-20, etc. (raw values from $z-indexes) Named z-index levels: .z-base, .z-dropdown, .z-modal, etc. (var(--wu-z-*) tokens from $z-index-levels) Responsive: all utilities support responsive variants with the @breakpoint suffix:
.z-10@md, .z-dropdown@lg, etc. Generated from the doc blocks in the core source when the site is built, so it always matches the current release of @wovenui/core. Every example is compiled against core during the build; open Compiled CSS under an example to see its output. Guide: Z-index . The A to Z index lists every public mixin and function.
Source: utilities/_z-index.scss
Mixins z-index z-index-utilities z-base z-hover z-dropdown z-sticky z-fixed z-drawer z-modal z-popover z-tooltip z-overlay z-toast z-max z-auto
z-index mixin Sets z-index from a numbered key (raw value), a named level (var(--wu-z-*) token), an integer, auto, calc() or var(); other values raise an error.
Parameter Type Default Description $valueNumber|StringRequired Numbered key (10), named level (modal), integer, auto, calc() or var()
Example
@include z-index ( modal ) ; // z-index: var(--wu-z-modal)
@include z-index ( 10 ) ; // z-index: 10
Compiled CSS z-index : var ( --wu-z-modal );
z-index on MDN
See also: z-modal , z-dropdown . Source: utilities/_z-index.scss:40
z-index-utilities mixin Emits the .z-{key} and .z-{level} classes; with a breakpoint it adds the @breakpoint suffix but does not wrap them in a media query.
@mixin z-index-utilities ( $breakpoint : null )
Parameter Type Default Description $breakpointString|NullnullBreakpoint name used as the class suffix
Example
@media ( min-width : 768 px ) {
@include z-index-utilities ( md ) ;
Compiled CSS @media ( min-width : 768 px ) {
z-index : var ( --wu-z-base );
z-index : var ( --wu-z-hover );
z-index : var ( --wu-z-dropdown );
z-index : var ( --wu-z-sticky );
z-index : var ( --wu-z-fixed );
z-index : var ( --wu-z-overlay );
z-index : var ( --wu-z-drawer );
z-index : var ( --wu-z-modal );
z-index : var ( --wu-z-popover );
z-index : var ( --wu-z-tooltip );
z-index : var ( --wu-z-toast );
z-index : var ( --wu-z-max );
Source: utilities/_z-index.scss:92
z-base mixin Sets z-index to the base level token.
Output z-index: var(--wu-z-base)Example
Compiled CSS z-index : var ( --wu-z-base );
See also: z-index . Source: utilities/_z-index.scss:120
z-hover mixin Sets z-index to the hover level token.
Output z-index: var(--wu-z-hover)Example
Compiled CSS z-index : var ( --wu-z-hover );
See also: z-index . Source: utilities/_z-index.scss:131
z-dropdown mixin Sets z-index to the dropdown level token.
Output z-index: var(--wu-z-dropdown)Example
Compiled CSS z-index : var ( --wu-z-dropdown );
See also: z-index . Source: utilities/_z-index.scss:142
z-sticky mixin Sets z-index to the sticky level token.
Output z-index: var(--wu-z-sticky)Example
Compiled CSS z-index : var ( --wu-z-sticky );
See also: z-index . Source: utilities/_z-index.scss:153
z-fixed mixin Sets z-index to the fixed level token.
Output z-index: var(--wu-z-fixed)Example
Compiled CSS z-index : var ( --wu-z-fixed );
See also: z-index . Source: utilities/_z-index.scss:164
z-drawer mixin Sets z-index to the drawer level token.
Output z-index: var(--wu-z-drawer)Example
Compiled CSS z-index : var ( --wu-z-drawer );
See also: z-index . Source: utilities/_z-index.scss:175
z-modal mixin Sets z-index to the modal level token.
Output z-index: var(--wu-z-modal)Example
Compiled CSS z-index : var ( --wu-z-modal );
See also: z-index . Source: utilities/_z-index.scss:186
z-popover mixin Sets z-index to the popover level token.
Output z-index: var(--wu-z-popover)Example
Compiled CSS z-index : var ( --wu-z-popover );
See also: z-index . Source: utilities/_z-index.scss:197
Sets z-index to the tooltip level token.
Output z-index: var(--wu-z-tooltip)Example
Compiled CSS z-index : var ( --wu-z-tooltip );
See also: z-index . Source: utilities/_z-index.scss:208
z-overlay mixin Sets z-index to the overlay level token.
Output z-index: var(--wu-z-overlay)Example
Compiled CSS z-index : var ( --wu-z-overlay );
See also: z-index . Source: utilities/_z-index.scss:219
z-toast mixin Sets z-index to the toast level token.
Output z-index: var(--wu-z-toast)Example
Compiled CSS z-index : var ( --wu-z-toast );
See also: z-index . Source: utilities/_z-index.scss:230
z-max mixin Sets z-index to the max level token.
Output z-index: var(--wu-z-max)Example
Compiled CSS z-index : var ( --wu-z-max );
See also: z-index . Source: utilities/_z-index.scss:241
z-auto mixin Sets z-index to auto.
See also: z-index . Source: utilities/_z-index.scss:251