Oh, I shouldn’t read this one before going to bed! …
I had never used " * " for the bulletin before, so this was the first time. At first, I didn’t see any difference in how HTML is rendered. This is my list (sorry, already with applied style)
first list has " - " and second " * " … and are seen as I put the cursor next to it
Thanks for the detailed reply (and before bedtime!).
I did try the CSS snippet, but didn’t notice any difference in my bullets’ colors.
So I went to the console to compare our elements, but I couldn’t find find “text-indent” or “padding-inline-start” in my Console/Elements/Styles… I’ll post what shows up, if that’s any help:
UPDATE: I discovered text-indent and padding-inline…and it works!
I was able to apply your solution…but the indent pixels does change depending on the zoom level. As someone who zooms a lot while working, do you think there’s a solution that won’t vary with zooms? I can create instances for most zoom levels, but I’m curious if there’s a more convenient workaround.
It’s not what we’re looking for, but it’s working. One solution would be to use SCSS, but Obsidian snippets support only CSS (the way they’re handled, I guess it’s the only way).
Just in case, SCSS code block …
$max-levels: 10; // Adjust based on how many levels you expect
$base-indent-1: -22px;
$base-padding-1: 22px;
$base-indent-2: -23px;
$base-padding-2: 23px;
$increment: 36px;
@for $i from 0 through $max-levels {
div[style*="text-indent: #{$base-indent-1 + (-$i * $increment)}px"]
[style*="padding-inline-start: #{$base-padding-1 + ($i * $increment)}px"] {
color: red;
}
div[style*="text-indent: #{$base-indent-2 + (-$i * $increment)}px"]
[style*="padding-inline-start: #{$base-padding-2 + ($i * $increment)}px"] {
color: green;
}
}
This needs to be compiled from SCSS into CSS using a tool like Sass.