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