Skip to content

CSS: stacking

.--stack-topmost — utilitats de profunditat z-index — .--stack-<level> (deepest, below, above, topmost) — es pot usar sol o encadenat a qualsevol component, perquè les capes s'apilin de manera previsible en lloc d'utilitzar números ajustats manualment.

Source: index.ts

Ús

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

Exemples

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

Modificadors

ModificadorDescripció
.--stack-abovePer sobre del flux per defecte.
.--stack-belowPer sota del flux per defecte.
.--stack-deepestLa profunditat d'apilat més baixa.
.--stack-topmostLa profunditat d'apilat més alta (superposicions, menús).

Tokens consumits

TokenTipusValor
--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