List Style

List Style Type

Can I use ?Can I use ?
classproperties
list-style-type:typelist-style-type: type
list-style:disclist-style-type: disc
list-style:decimallist-style-type: decimal

Overview

The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.

<p class="">
list-style:none
  1. First
  2. Second
  3. Third
list-style:disc
  1. First
  2. Second
  3. Third
list-style:decimal
  1. First
  2. Second
  3. Third
list-style:circle
  1. First
  2. Second
  3. Third
list-style:square
  1. First
  2. Second
  3. Third
list-style:decimal-leading-zero
  1. First
  2. Second
  3. Third
list-style:lower-roman
  1. First
  2. Second
  3. Third
list-style:lower-greek
  1. First
  2. Second
  3. Third
list-style:lower-alpha
  1. First
  2. Second
  3. Third
list-style:lower-latin
  1. First
  2. Second
  3. Third
list-style:upper-roman
  1. First
  2. Second
  3. Third
list-style:upper-alpha
  1. First
  2. Second
  3. Third
list-style:upper-latin
  1. First
  2. Second
  3. Third
list-style:arabic-indic
  1. First
  2. Second
  3. Third
list-style:armenian
  1. First
  2. Second
  3. Third
list-style:bengali
  1. First
  2. Second
  3. Third
list-style:cambodian/khmer
  1. First
  2. Second
  3. Third
list-style:cjk-earthly-branch
  1. First
  2. Second
  3. Third
list-style:cjk-heavenly-stem
  1. First
  2. Second
  3. Third
list-style:devanagari
  1. First
  2. Second
  3. Third
list-style:georgian
  1. First
  2. Second
  3. Third
list-style:gurmukhi
  1. First
  2. Second
  3. Third
list-style:kannada
  1. First
  2. Second
  3. Third
list-style:lao
  1. First
  2. Second
  3. Third
list-style:malayalam
  1. First
  2. Second
  3. Third
list-style:myanmar
  1. First
  2. Second
  3. Third
list-style:oriya
  1. First
  2. Second
  3. Third
list-style:telugu
  1. First
  2. Second
  3. Third
list-style:thai
  1. First
  2. Second
  3. Third

Applying with functions

<div class="list-style-type:$(value)">...</div>

Master supports native CSS variables and functions, just add var(--key) or use shorthand$(key) for variables.

You can also use calc(expression), env(expression) and other CSS functions if the property supports it.

To learn more, see the Functions documentation.

Conditionally apply

States and selectors

<div class="list-style-type:circle:hover">...</div>

Master supports all native CSS selectors, just add :hover, :disabled, chaining, combinators and other CSS selectors as usual.

To learn more, see the Selectors documentation.

Responsive breakpoints

<div class="list-style-type:circle@sm">...</div>

Responsive breakpoints can be applied to all styles. Some available breakpoints are 3xs, 2xs, xs, sm,md, lg, xl, 2xl, 3xl, 4xl. Arbitrary breakpoints can be specified through comparison operators >, >=, <, <=.

To learn more, see the Breakpoints documentation.

<div class="list-style-type:circle@print">...</div>

Master supports media types like print, screen, speech, all, and other media queries.

To learn more, see the Media Queries documentation.

Dark mode and color schemes

<div class="list-style-type:circle@dark">...</div>

Master uses the selector html.dark to support color schemes. Now, you can easily fine-tune your style for the color schemes.

To learn more, see the Color Schemes documentation.


© Aoyue Design LLC.
關於此頁的問題
編輯自AronLola