Skip to main content

Flex Direction

Set the direction for flex items.

View as Markdown
baselinewidely
ClassCSS
fd:cflex-direction: column;
fd:crflex-direction: column-reverse;
fd:rflex-direction: row;
fd:rrflex-direction: row-reverse;

Variants

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

Breakpoints

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

@xs:fd:rFrom 32rem up.
@sm:fd:rFrom 40rem up.
@md:fd:rFrom 48rem up.
@lg:fd:rFrom 64rem up.
@xl:fd:rFrom 80rem up.
@xxl:fd:rFrom 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:fd:rContainer from 32rem up.
@c:sm:fd:rContainer from 40rem up.
@c:md:fd:rContainer from 48rem up.
@c:lg:fd:rContainer from 64rem up.
@c:xl:fd:rContainer from 80rem up.
@c:xxl:fd:rContainer 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:fd:rOn a touch screen.
@prm:fd:rWith reduced motion on.
@st:fd:rOn the first frame.

States

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

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

Pseudo Elements

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

a::fd:rOn ::after.
b::fd:rOn ::before.
p::fd:rOn ::placeholder.
s::fd:rOn ::selection.