Skip to content

CSS: list

.instui-list — He rārangi me te wāhi tūemi e ārahi ana e ngā tohu.

Ka tautuhia tōna ake padding-inline-start mō te urunga rārangi; mā te hono i tētahi kaitautoko wāhi -p*/-padding* ka whakawētea taua uara ā-taunoa. Tirohia te mema list.item mō ngā tūemi takitahi.

Source: list.css

Ngā Whakamahi

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

Ngā tauira

html
<ul class="instui-list">
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ul>

Hanganga

text
.instui-list
  li (0..n)
flowchart TD n0[".instui-list"]:::cssdoc-root n1("li"):::cssdoc-part n0 -->|0..n| n1 classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

Ngā Kaitī

KaiwhakatikatikaWhakamārama
.-inlineWhakarārangihia ngā tūemi i runga i tētahi raina kotahi (ā-whanui).
.-size-largeRahi. @affects list.item — Ka whakatairite i te wāhi tūemi kia rite. Ingā roa mō -size-lg.
.-size-lgRahi. @affects list.item — Ka whakatairite i te wāhi tūemi kia rite.
.-size-mdWaenganui (taumata taunoa). @affects list.item — Ka whakatairite i te wāhi tūemi kia rite.
.-size-mediumWaenganui (taumata taunoa). @affects list.item — Ka whakatairite i te wāhi tūemi kia rite. Ingā roa mō -size-md.
.-size-smItiti. @affects list.item — Ka whakatairite i te wāhi tūemi kia rite.
.-size-smallItiti. @affects list.item — Ka whakatairite i te wāhi tūemi kia rite. Ingā roa mō -size-sm.
.-unstyledTangohia ngā tohu me ngā wāhi tāpiri.

Ngā tohu i whakamahia

TokenMomoUara
--instui-component-list-item-color<color>LightDarklight-dark(#273540, #ffffff)
--instui-component-list-item-font-family[ <font-family-name> | <generic-font-family> ]#Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif
--instui-component-list-item-font-size-large<length>1.25rem
--instui-component-list-item-font-size-medium<length>1rem
--instui-component-list-item-font-size-small<length>0.875rem
--instui-component-list-item-font-weight<integer>400
--instui-component-list-item-line-height<percentage>150%
--instui-component-list-item-spacing-medium<length>1.5rem
--instui-component-list-list-padding<length>2.25rem

Ngā wāhanga-iti