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