Skip to main content

Text Decoration Style

Set the style of decorative lines on text.

View as Markdown
baselinewidely
ClassCSS
tds:dtext-decoration-style: dashed;
tds:stext-decoration-style: solid;
tds:wtext-decoration-style: wavy;

Variants

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

Breakpoints

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

@xs:tds:sFrom 32rem up.
@sm:tds:sFrom 40rem up.
@md:tds:sFrom 48rem up.
@lg:tds:sFrom 64rem up.
@xl:tds:sFrom 80rem up.
@xxl:tds:sFrom 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:tds:sContainer from 32rem up.
@c:sm:tds:sContainer from 40rem up.
@c:md:tds:sContainer from 48rem up.
@c:lg:tds:sContainer from 64rem up.
@c:xl:tds:sContainer from 80rem up.
@c:xxl:tds:sContainer 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:tds:sOn a touch screen.
@prm:tds:sWith reduced motion on.
@st:tds:sOn the first frame.

States

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

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

Pseudo Elements

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

a::tds:sOn ::after.
b::tds:sOn ::before.
p::tds:sOn ::placeholder.
s::tds:sOn ::selection.