Skip to main content

Row Gap

Set the spacing between rows in a grid layout.

View as Markdown
baselinewidely

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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