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