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