Skip to main content

Grid Row

Set the size & position of items across grid rows.

View as Markdown
baselinewidely

The same values work with gre & grs, as in grs:5.

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

a::gr-s:4On ::after.
b::gr-s:4On ::before.
p::gr-s:4On ::placeholder.
s::gr-s:4On ::selection.