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