mgmeyers / obsidian-list-callouts

Create callouts in lists in Obsidian.
GNU General Public License v3.0
301 stars 10 forks source link

[FR] Have no marker when using the callouts. #21

Closed ndharari closed 1 year ago

ndharari commented 1 year ago

I just dont like the bullet beside the callouts. It would be nice if It could be hidden. Thats all!

Erik-Handeland commented 1 year ago

Should be able to hide it with CSS snippet, This is what I did for mine:

.lc-list-callout .cm-formatting-list-ul{
display: none;
}
ndharari commented 1 year ago

Oh, Thank you, this is great. I did a little more work and got this snippet (maybe it helps someone else):

/* No Marker in Live Preview*/
.lc-list-callout .cm-formatting-list-ul {
  display: none;
}

/* No Marker in Reading but markers in subitems*/
.lc-list-callout>.list-bullet:first-child:after {
  height: 0px;
  width: 0px;
  border-radius: 0%;
}

/* No Marker in Print but markers in subitems*/
@media print {
li.lc-list-callout:first-child::marker {
    content: none;
  }
}