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