Skip to content

CSS: spinner

.instui-spinner — Rîng llwytho animeiddiedig; rhoddwch role="status" a anogaeth aria-label iddo.

-color-inverse yn ail-lunio dim ond segment y ffin uchaf animeiddiedig, nid y trac cyfan, felly mae’n dal i ddarllen yn gywir ar gerdyn tywyll heb angen lliw trac ar wahân.

Source: spinner.css

Hygyrchedd

Rhowch i’r spinner role="status" a aria-label fel y bydd darllenwyr sgrîn yn ei gyhoeddi fel statws llwytho byw.

Defnydd

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

Dangosfa

Enghreifftiau

html
<span class="instui-spinner" role="status" aria-label="Loading"></span>

Inverse color

html
<div class="instui-view instui-card -background-primary-inverse">
  <span class="instui-spinner -color-inverse" role="status" aria-label="Loading"></span>
</div>

Modyfiwyr

ModyfiwrDisgrifiad
.-color-inverseAr arwyneb tywyll.
.-size-largeMawr. Enw hir ffurf -size-lg.
.-size-lgMawr.
.-size-smBach.
.-size-smallBach. Enw hir ffurf -size-sm.
.-size-x-smallEithaf bach. Ail-enw hir o -size-xs.
.-size-xsEithaf bach.

Animeiddiadau

AnimeiddiadDisgrifiad
pantoken-spinner-rotate

Tocynnau a ddefnyddiwyd

TokenMathGwerth
--instui-component-spinner-color<color>LightDarklight-dark(#2871AF, #7FB4F1)
--instui-component-spinner-inverse-color<color>#ffffff
--instui-component-spinner-spinner-size-lg<length>4.5rem
--instui-component-spinner-spinner-size-md<length>3.5rem
--instui-component-spinner-spinner-size-sm<length>2rem
--instui-component-spinner-spinner-size-xs<length>1rem
--instui-component-spinner-stroke-width-lg<length>0.75em
--instui-component-spinner-stroke-width-md<length>0.5em
--instui-component-spinner-stroke-width-sm<length>0.375em
--instui-component-spinner-stroke-width-xs<length>0.25em
--instui-component-spinner-track-color<color>LightDarklight-dark(rgba(35,68,101,0.1), rgba(255,255,255,0.1))