Skip to main content

Background Repeat

Set the repeat behavior for background images.

View as Markdown
baselinewidely
ClassCSS
br:nrbackground-repeat: no-repeat;
br:rbackground-repeat: repeat;
br:robackground-repeat: round;
br:rxbackground-repeat: repeat-x;
br:rybackground-repeat: repeat-y;
br:sbackground-repeat: space;

Variants

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

Breakpoints

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

@xs:br:rxFrom 32rem up.
@sm:br:rxFrom 40rem up.
@md:br:rxFrom 48rem up.
@lg:br:rxFrom 64rem up.
@xl:br:rxFrom 80rem up.
@xxl:br:rxFrom 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:br:rxContainer from 32rem up.
@c:sm:br:rxContainer from 40rem up.
@c:md:br:rxContainer from 48rem up.
@c:lg:br:rxContainer from 64rem up.
@c:xl:br:rxContainer from 80rem up.
@c:xxl:br:rxContainer 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:br:rxOn a touch screen.
@prm:br:rxWith reduced motion on.
@st:br:rxOn the first frame.

States

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

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

Pseudo Elements

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

a::br:rxOn ::after.
b::br:rxOn ::before.
p::br:rxOn ::placeholder.
s::br:rxOn ::selection.