Skip to main content

Appearance

Set the appearance for native form controls.

View as Markdown
baselinewidely
ClassCSS
a:autoappearance: auto;
a:noneappearance: none;

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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