Skip to content

CSS: list.item

.instui-list — รายการหนึ่ง (InstUI List.Item).

ตัวแก้ไข -size-sm/-size-lg, -ordered, และ -delimiter-solid/-delimiter-dashed ของ list ต้นทางจะปรับสไตล์สมาชิกนี้ — ดูเอกสารของ list สำหรับตัวแก้ไขเหล่านั้น.

การใช้งาน

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

ตัวปรับแต่ง

ตัวปรับแต่งคำอธิบาย
.-delimiter-dashedแยกรายการด้วยเส้นคั่นแบบเส้นประ. @affects list.item — เพิ่มกฎตัวคั่นระหว่างรายการ.
.-delimiter-solidแยกรายการด้วยเส้นคั่นแบบเส้นทึบ. @affects list.item — เพิ่มกฎตัวคั่นระหว่างรายการ.
.-orderedการกำหนดหมายเลขสำหรับรายการที่มีลำดับ. @affects list.item — เพิ่มความหนาของมาร์กเกอร์และการเยื้อง.
.-size-largeชื่อแบบยาวของ -size-lg.
.-size-mediumชื่อแบบยาวของ -size-md.
.-size-smallชื่อแบบยาวของ -size-sm.

องค์ประกอบเทียม

องค์ประกอบเทียมคำอธิบาย
::markerแสดงเครื่องหมายหัวข้อของรายการหรือหมายเลขของรายการที่มีลำดับ.

โทเค็นที่ใช้

Tokenชนิดค่า
--instui-component-list-item-color<color>LightDarklight-dark(#273540, #ffffff)
--instui-component-list-item-delimiter-dashed-border-color<color>LightDarklight-dark(#E8EAEC, #2D3D49)
--instui-component-list-item-delimiter-dashed-border-styledashed
--instui-component-list-item-delimiter-dashed-border-width<length>0.0625rem
--instui-component-list-item-delimiter-solid-border-color<color>LightDarklight-dark(#E8EAEC, #2D3D49)
--instui-component-list-item-delimiter-solid-border-stylesolid
--instui-component-list-item-delimiter-solid-border-width<length>0.0625rem
--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-ordered-number-font-weight<integer>600
--instui-component-list-ordered-number-margin<length>0.5rem