Skip to main content

Pointer Events

Set how an item responds to pointer events.

View as Markdown
baselinewidely
ClassCSS
pe:autopointer-events: auto;
pe:nonepointer-events: none;

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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