baselinewidely| Class | CSS |
|---|---|
| ws:bs | white-space: break-spaces; |
| ws:n | white-space: normal; |
| ws:nw | white-space: nowrap; |
| ws:p | white-space: pre; |
| ws:pl | white-space: pre-line; |
| ws:pw | white-space: pre-wrap; |
Variants
Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:ws:p.
Breakpoints
Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.
| @xs:ws:p | From 32rem up. |
| @sm:ws:p | From 40rem up. |
| @md:ws:p | From 48rem up. |
| @lg:ws:p | From 64rem up. |
| @xl:ws:p | From 80rem up. |
| @xxl:ws:p | 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:ws:p | Container from 32rem up. |
| @c:sm:ws:p | Container from 40rem up. |
| @c:md:ws:p | Container from 48rem up. |
| @c:lg:ws:p | Container from 64rem up. |
| @c:xl:ws:p | Container from 80rem up. |
| @c:xxl:ws:p | 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:ws:p | On a touch screen. |
| @prm:ws:p | With reduced motion on. |
| @st:ws:p | On the first frame. |
States
Apply a class only while the element is in a state, such as hovered, focused or checked.
| h:ws:p | On :hover. |
| f:ws:p | On :focus. |
| fv:ws:p | On :focus-visible. |
| a:ws:p | On :active. |
| d:ws:p | On :disabled. |
| fc:ws:p | On :first-child. |
| c:ws:p | On :checked. |
| e:ws:p | On :empty. |
| fw:ws:p | On :focus-within. |
| i:ws:p | On :invalid. |
| in:ws:p | On :indeterminate. |
| lc:ws:p | On :last-child. |
| nc:ws:p | On :nth-child. |
| r:ws:p | On :required. |
| ro:ws:p | On :read-only. |
| v:ws:p | On :valid. |
Pseudo Elements
Style a part of the element rather than the element itself, such as its placeholder or the selected text.
| a::ws:p | On ::after. |
| b::ws:p | On ::before. |
| p::ws:p | On ::placeholder. |
| s::ws:p | On ::selection. |