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:95.

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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

Negative

Put a minus after the colon to negate a value.

sz:-5A minus after the colon.