Skip to content

CSS: list

.instui-list — רשימה עם ריווח פריטים המונחה על ידי טוקנים.

מגדיר את padding-inline-start שלו עבור השזחה ברשימה; שרשור של מתג ייעוד ריווח -p*/-padding* מתעלם מהערך המובנה הזה. עיין בחבר list.item לפריטים האישיים.

Source: list.css

שימוש

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

דוגמאות

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

מבנה

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;

מחליפים

מחליףתיאור
.-inlineסידור פריטים בשורה (אופקי).
.-size-largeגדול. @affects list.item — מתאים את קנה המידה של ריווח הפריטים בהתאם. כינוי ארוך של -size-lg.
.-size-lgגדול. @affects list.item — מתאים את קנה המידה של ריווח הפריטים בהתאם.
.-size-mdבינוני (ברירת מחדל). @affects list.item — מתאים את קנה המידה של ריווח הפריטים בהתאם.
.-size-mediumבינוני (ברירת מחדל). @affects list.item — מתאים את קנה המידה של ריווח הפריטים בהתאם. כינוי ארוך של -size-md.
.-size-smקטן. @affects list.item — מתאים את קנה המידה של ריווח הפריטים בהתאם.
.-size-smallקטן. @affects list.item — מתאים את קנה המידה של ריווח הפריטים בהתאם. כינוי ארוך של -size-sm.
.-unstyledהסר סמני רישום וריפוד.

אסימוני צריכה

Tokenסוגערך
--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

תת־רכיבים