- you
- can
- make
- really
- cool markers
- with
- Blades
Content List helpers
List markers #
Customize markers using inline style="--list-marker:..." on <ul>/<ol> or even individual <li>:
How it works:
ul,
ol {
&[style*="--list-marker:"] {
list-style-type: var(--list-marker);
> li {
list-style-type: inherit;
}
}
li[style*="--list-marker:"] {
list-style-type: var(--list-marker);
}
li[data-marker]::marker {
content: attr(data-marker) " "; /* ⚠️ Chrome and Firefox only */
}
}
Unlist #
.unlist removes list styling:
- One:
1 - Two:
2 - Three:
3
.unlist-all also removes styling from all nested lists.
How it works:
ul,
ol {
&.unlist,
&.unlist-all,
.unlist-all & {
padding-inline-start: 0;
> li {
list-style: none;
}
}
}