Skip to main content

Scale Z

Set the depth scale 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:sz:50.

Breakpoints

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

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

States

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

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

Pseudo Elements

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

a::sz:50On ::after.
b::sz:50On ::before.
p::sz:50On ::placeholder.
s::sz:50On ::selection.

Negative

Put a minus after the colon to negate a value.

sz:-5A minus after the colon.