Skip to main content

Rotate

Set the rotation for an element.

View as Markdown
baselinewidely

Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:ro:4.

Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

@xs:ro:4From 32rem up.
@sm:ro:4From 40rem up.
@md:ro:4From 48rem up.
@lg:ro:4From 64rem up.
@xl:ro:4From 80rem up.
@xxl:ro:4From 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:ro:4Container from 32rem up.
@c:sm:ro:4Container from 40rem up.
@c:md:ro:4Container from 48rem up.
@c:lg:ro:4Container from 64rem up.
@c:xl:ro:4Container from 80rem up.
@c:xxl:ro:4Container 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:ro:4On a touch screen.
@prm:ro:4With reduced motion on.
@st:ro:4On the first frame.

States

Apply a class only while the element is in a state, such as hovered, focused or checked.

h:ro:4On :hover.
f:ro:4On :focus.
fv:ro:4On :focus-visible.
a:ro:4On :active.
d:ro:4On :disabled.
fc:ro:4On :first-child.
c:ro:4On :checked.
e:ro:4On :empty.
fw:ro:4On :focus-within.
i:ro:4On :invalid.
in:ro:4On :indeterminate.
lc:ro:4On :last-child.
nc:ro:4On :nth-child.
r:ro:4On :required.
ro:ro:4On :read-only.
v:ro:4On :valid.

Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

a::ro:4On ::after.
b::ro:4On ::before.
p::ro:4On ::placeholder.
s::ro:4On ::selection.

Negative

Put a minus after the colon to negate a value.

ro:-4A minus after the colon.