Skip to content

CSS: stacking

.--stack-topmost — utility di profondità z-index — .--stack-<level> (deepest, below, above, topmost) — utilizzabile da solo o concatenato a qualsiasi componente, così gli strati si impilano in modo prevedibile invece di usare numeri tarati a mano.

Source: index.ts

Uso

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

Esempi

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

Modificatori

ModificatoreDescrizione
.--stack-aboveSopra il flusso predefinito.
.--stack-belowSotto il flusso predefinito.
.--stack-deepestLa profondità di impilamento più bassa.
.--stack-topmostLa profondità di impilamento più alta (overlay, menu).

Token consumati

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