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