Skip to content

CSS: stacking

.--stack-topmost — z-index 深度ユーティリティ — .--stack-<level> (deepest, below, above, topmost) — 単体でも任意のコンポーネントにチェーンしても使用できるため、手作業で数値を調整するのではなくレイヤーが予測可能に重なります。

Source: index.ts

使用法

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

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

修飾子

修飾子説明
.--stack-aboveデフォルトのフローより上。
.--stack-belowデフォルトのフローより下。
.--stack-deepest最も低いスタッキング深度。
.--stack-topmost最も高いスタッキング深度(オーバーレイ、メニュー)。

使用トークン

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