baselinewidely| Class | CSS |
|---|---|
| wm:htb | writing-mode: horizontal-tb; |
| wm:slr | writing-mode: sideways-lr; |
| wm:srl | writing-mode: sideways-rl; |
| wm:vlr | writing-mode: vertical-lr; |
| wm:vrl | writing-mode: vertical-rl; |
Variants
Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:wm:srl.
Breakpoints
Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.
| @xs:wm:srl | From 32rem up. |
| @sm:wm:srl | From 40rem up. |
| @md:wm:srl | From 48rem up. |
| @lg:wm:srl | From 64rem up. |
| @xl:wm:srl | From 80rem up. |
| @xxl:wm:srl | From 96rem up. |
Containers
Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.
| @c:xs:wm:srl | Container from 32rem up. |
| @c:sm:wm:srl | Container from 40rem up. |
| @c:md:wm:srl | Container from 48rem up. |
| @c:lg:wm:srl | Container from 64rem up. |
| @c:xl:wm:srl | Container from 80rem up. |
| @c:xxl:wm:srl | Container from 96rem up. |
Media
Apply a class when the device or the page matches a condition, or on the first frame an element renders.
| @pc:wm:srl | On a touch screen. |
| @prm:wm:srl | With reduced motion on. |
| @st:wm:srl | On the first frame. |
States
Apply a class only while the element is in a state, such as hovered, focused or checked.
| h:wm:srl | On :hover. |
| f:wm:srl | On :focus. |
| fv:wm:srl | On :focus-visible. |
| a:wm:srl | On :active. |
| d:wm:srl | On :disabled. |
| fc:wm:srl | On :first-child. |
| c:wm:srl | On :checked. |
| e:wm:srl | On :empty. |
| fw:wm:srl | On :focus-within. |
| i:wm:srl | On :invalid. |
| in:wm:srl | On :indeterminate. |
| lc:wm:srl | On :last-child. |
| nc:wm:srl | On :nth-child. |
| r:wm:srl | On :required. |
| ro:wm:srl | On :read-only. |
| v:wm:srl | On :valid. |
Pseudo Elements
Style a part of the element rather than the element itself, such as its placeholder or the selected text.
| a::wm:srl | On ::after. |
| b::wm:srl | On ::before. |
| p::wm:srl | On ::placeholder. |
| s::wm:srl | On ::selection. |