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