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