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