Skip to main content

List Style Position

Set the position of the list item marker.

View as Markdown
baselinewidely
ClassCSS
lsp:ilist-style-position: inside;
lsp:olist-style-position: outside;

Variants

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

Breakpoints

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

@xs:lsp:oFrom 32rem up.
@sm:lsp:oFrom 40rem up.
@md:lsp:oFrom 48rem up.
@lg:lsp:oFrom 64rem up.
@xl:lsp:oFrom 80rem up.
@xxl:lsp:oFrom 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:lsp:oContainer from 32rem up.
@c:sm:lsp:oContainer from 40rem up.
@c:md:lsp:oContainer from 48rem up.
@c:lg:lsp:oContainer from 64rem up.
@c:xl:lsp:oContainer from 80rem up.
@c:xxl:lsp:oContainer 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:lsp:oOn a touch screen.
@prm:lsp:oWith reduced motion on.
@st:lsp:oOn the first frame.

States

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

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

Pseudo Elements

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

a::lsp:oOn ::after.
b::lsp:oOn ::before.
p::lsp:oOn ::placeholder.
s::lsp:oOn ::selection.