Skip to main content

Text Decoration Line

Set the type of decorative lines used on text.

View as Markdown
baselinewidely
ClassCSS
tdl:lttext-decoration-line: line-through;
tdl:nonetext-decoration-line: none;
tdl:otext-decoration-line: overline;
tdl:utext-decoration-line: underline;

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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