Hello, I’ve been looking at other people’s CSS snippets to customize their bullet points. I’ve stumbled across this code that changes the default bullet points to ‘»’ :
/* replace the default "bullet" with "chevron" icon, unset default bullet */
:is(.cm-fold-indicator:hover,*) ~ .cm-formatting.cm-formatting-list .list-bullet::after,
.list-bullet::after {
content:'»';
width: unset; height: unset;
background-color: unset;
box-shadow: none;
}
/* add text color and replace the collapsed state of the default like bg and box shadow */
.is-collapsed ~ .cm-formatting-list .list-bullet::after,
li.is-collapsed .list-bullet::after {
color: var(--list-marker-color-collapsed);
box-shadow: none;
background-color: transparent;
}
However, I want this code to only apply to the topmost-level unordered list. I’ve tried a bunch of times, but couldn’t quite get it to work the way I intended. How do I edit this code to achieve what I want?