Skip to main content

Grid Column

Set the size & position of items across grid columns.

View as Markdown
baselinewidely

The same values work with gce & gcs, as in gcs:5.

Variants

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

Breakpoints

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

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

States

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

h:gc-s:4On :hover.
f:gc-s:4On :focus.
fv:gc-s:4On :focus-visible.
a:gc-s:4On :active.
d:gc-s:4On :disabled.
fc:gc-s:4On :first-child.
c:gc-s:4On :checked.
e:gc-s:4On :empty.
fw:gc-s:4On :focus-within.
i:gc-s:4On :invalid.
in:gc-s:4On :indeterminate.
lc:gc-s:4On :last-child.
nc:gc-s:4On :nth-child.
r:gc-s:4On :required.
ro:gc-s:4On :read-only.
v:gc-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::gc-s:4On ::after.
b::gc-s:4On ::before.
p::gc-s:4On ::placeholder.
s::gc-s:4On ::selection.