Skip to content

CSS: view

.instui-view — A View primitív: egy semleges doboz kulcs-érték módosítókkal a háttérhez, szegélyhez, sugárhoz, árnyékhoz, megjelenítéshez, pozícióhoz, túlcsorduláshoz és kurzorhoz.

Forrás: view.ts

Használat

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

Példák

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

Módosítók

MódosítóLeírás
.-background-alertFigyelmeztetés felület háttere.
.-background-brandBrand felület háttere.
.-background-dangerVeszély felület háttere.
.-background-infoInformáció felület háttere.
.-background-primaryElsődleges felület háttere.
.-background-primary-inverseInverz elsődleges felület háttere.
.-background-secondaryMásodlagos felület háttere.
.-background-successSiker felület háttere.
.-background-transparentÁtlátszó háttér.
.-background-warningFigyelmeztetés felület háttere.
.-border-color-brandBrand vonás szegély szín.
.-border-color-dangerHiba vonás szegély szín.
.-border-color-infoInformáció vonás szegély szín.
.-border-color-primaryAlap vonás szegély szín.
.-border-color-successSiker vonás szegély szín.
.-border-color-warningFigyelmeztetés vonás szegély szín.
.-border-radius-circleTeljesen kör alakú (50%) sugár.
.-border-radius-largeNagy sarok sugár.
.-border-radius-mediumKözepes sarok sugár.
.-border-radius-pillKapszula (teljes) sugár.
.-border-radius-smallKis sarok sugár.
.-border-width-largeNagy szilárd szegély az alap vonás színben.
.-border-width-mediumKözepes szilárd szegély az alap vonás színben.
.-border-width-smallKis szilárd szegély az alap vonás színben.
.-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-aboveFeletti emelkedés árnyék.
.-shadow-restingPihenő emelkedés árnyék.
.-shadow-topmostLegfelső emelkedés árnyék.

Felhasznált tokenek

TokenTípusÉrték
--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>light-dark(#8D959F, #6A7883)LightDark
--instui-color-stroke-brand<color>light-dark(#1D354F, #EEF4FD)LightDark
--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>light-dark(#1D354F, #EEF4FD)LightDark
--instui-component-view-background-danger<color>#E62429
--instui-component-view-background-info<color>#2B7ABC
--instui-component-view-background-primary<color>light-dark(#ffffff, #171B21)LightDark
--instui-component-view-background-primary-inverse<color>light-dark(#334450, #F2F4F5)LightDark
--instui-component-view-background-secondary<color>light-dark(#F2F4F5, #273540)LightDark
--instui-component-view-background-success<color>#03893D
--instui-component-view-background-warning<color>#CF4A00
--instui-elevation-above[ inset? && <length>{2,4} && <color>? ]# | none
--instui-elevation-resting[ inset? && <length>{2,4} && <color>? ]# | none
--instui-elevation-topmost[ inset? && <length>{2,4} && <color>? ]# | none