Skip to main content

Cursor

Set the cursor style when hovering over an element.

View as Markdown
baselinelimited

Variants

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

Breakpoints

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

@xs:c:noneFrom 32rem up.
@sm:c:noneFrom 40rem up.
@md:c:noneFrom 48rem up.
@lg:c:noneFrom 64rem up.
@xl:c:noneFrom 80rem up.
@xxl:c:noneFrom 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:c:noneContainer from 32rem up.
@c:sm:c:noneContainer from 40rem up.
@c:md:c:noneContainer from 48rem up.
@c:lg:c:noneContainer from 64rem up.
@c:xl:c:noneContainer from 80rem up.
@c:xxl:c:noneContainer 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:c:noneOn a touch screen.
@prm:c:noneWith reduced motion on.
@st:c:noneOn the first frame.

States

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

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

Pseudo Elements

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

a::c:noneOn ::after.
b::c:noneOn ::before.
p::c:noneOn ::placeholder.
s::c:noneOn ::selection.