Skip to content

CSS: view

.instui-view — 表示プリミティブ:背景、境界線、角丸、影、表示方法、配置、オーバーフロー、カーソルのためのキー=値修飾子を持つ中立的なボックス。これらの修飾子はいずれもグローバル(単独、または任意の他のコンポーネントにチェーンして)で利用可能です — background/border/shadow/display/position/overflow/cursor ユーティリティを参照してください。

Source: view.css

使用法

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

html
<div class="instui-view -background-secondary -border-radius-medium -shadow-resting">
  A card-like surface.
</div>

修飾子

修飾子説明
.-background-alertアラート用サーフェスの背景。
.-background-brandブランド用サーフェスの背景。
.-background-danger危険(デンジャー)用サーフェスの背景。
.-background-info情報(インフォ)用サーフェスの背景。
.-background-primaryプライマリ用サーフェスの背景。
.-background-primary-inverse反転プライマリ用サーフェスの背景。
.-background-secondaryセカンダリ用サーフェスの背景。
.-background-success成功(サクセス)用サーフェスの背景。
.-background-transparent透過背景。
.-background-warning警告(ウォーニング)用サーフェスの背景。
.-border-color-brandブランドのストローク(境界線)色。
.-border-color-dangerエラーのストローク(境界線)色。
.-border-color-info情報のストローク(境界線)色。
.-border-color-primaryベースのストローク(境界線)色。
.-border-color-success成功のストローク(境界線)色。
.-border-color-warning警告のストローク(境界線)色。
.-border-radius-circle完全な円形(50%)の角丸。
.-border-radius-large大きめの角丸。
.-border-radius-medium中くらいの角丸。
.-border-radius-pillピル(全丸)角丸。
.-border-radius-small小さめの角丸。
.-border-width-largeベースのストローク色による大きい実線の境界線。
.-border-width-mediumベースのストローク色による中くらいの実線の境界線。
.-border-width-smallベースのストローク色による小さい実線の境界線。
.-cursor-autocursor: auto.
.-cursor-defaultcursor: default.
.-cursor-grabcursor: grab.
.-cursor-movecursor: move.
.-cursor-not-allowedcursor: not-allowed.
.-cursor-pointercursor: pointer.
.-cursor-textcursor: text.
.-cursor-waitcursor: wait.
.-display-blockdisplay: block.
.-display-flexdisplay: flex.
.-display-inlinedisplay: inline.
.-display-inline-blockdisplay: inline-block.
.-display-inline-flexdisplay: inline-flex.
.-display-nonedisplay: none.
.-overflow-x-autooverflow-x: auto.
.-overflow-x-clipoverflow-x: clip.
.-overflow-x-hiddenoverflow-x: hidden.
.-overflow-x-scrolloverflow-x: scroll.
.-overflow-x-visibleoverflow-x: visible.
.-overflow-y-autooverflow-y: auto.
.-overflow-y-clipoverflow-y: clip.
.-overflow-y-hiddenoverflow-y: hidden.
.-overflow-y-scrolloverflow-y: scroll.
.-overflow-y-visibleoverflow-y: visible.
.-position-absoluteposition: absolute.
.-position-fixedposition: fixed.
.-position-relativeposition: relative.
.-position-staticposition: static.
.-position-stickyposition: sticky.
.-shadow-above上方(高め)のエレベーション影。
.-shadow-resting通常の(静止)エレベーション影。
.-shadow-topmost最前面(トップ)のエレベーション影。

使用トークン

Token
--instui-border-radius-full<length>999rem
--instui-border-radius-lg<length>0.75rem
--instui-border-radius-md<length>0.5rem
--instui-border-radius-sm<length>0.25rem
--instui-border-width-lg<length>0.25rem
--instui-border-width-md<length>0.125rem
--instui-border-width-sm<length>0.0625rem
--instui-color-stroke-base<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-color-stroke-brand<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-color-stroke-error<color>#E62429
--instui-color-stroke-info<color>#2B7ABC
--instui-color-stroke-success<color>#03893D
--instui-color-stroke-warning<color>#CF4A00
--instui-component-view-background-alert<color>#2B7ABC
--instui-component-view-background-brand<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-view-background-danger<color>#E62429
--instui-component-view-background-info<color>#2B7ABC
--instui-component-view-background-primary<color>LightDarklight-dark(#ffffff, #171B21)
--instui-component-view-background-primary-inverse<color>LightDarklight-dark(#334450, #F2F4F5)
--instui-component-view-background-secondary<color>LightDarklight-dark(#F2F4F5, #273540)
--instui-component-view-background-success<color>#03893D
--instui-component-view-background-warning<color>#CF4A00
--instui-elevation-abovenone | <shadow>#
--instui-elevation-restingnone | <shadow>#
--instui-elevation-topmostnone | <shadow>#