Skip to content

CSS: stacking

.--stack-topmost — z-index depth utilities — .--stack-<level> (deepest, below, above, topmost) — usable bare or chained onto any component, so layers stack predictably instead of by hand-tuned numbers.

Source: index.ts

Utilisation

css
@import "@pantoken/components/utilities.css";

Exemples

html
<div class="--stack-topmost">Always on top.</div>

Modificateurs

ModificateurDescription
.--stack-aboveAu-dessus du flux par défaut.
.--stack-belowAu-dessous du flux par défaut.
.--stack-deepestLa profondeur d'empilement la plus basse.
.--stack-topmostLa profondeur d'empilement la plus élevée (superpositions, menus).

Tokens consommés

TokenTypeValeur
--instui-component-view-stacking-above<integer>1
--instui-component-view-stacking-below<integer>-1
--instui-component-view-stacking-deepest<integer>-9999
--instui-component-view-stacking-topmost<integer>9999