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