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