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