Things I have tried
I have a CSS snippet “gloss.css” and added cssclass: gloss as a property in the YAML frontmatter in the note:
It should work for Live-preview mode.
I have two entries in gloss.css:
.gloss h2 {
color: #fff!important;
font-size: normal!important;
font-weight: 200;
}
.gloss .markdown-preview-view h2, .gloss .cm-s-obsidian .cm-header-2 {
color: #fff!important;
font-size: normal!important;
font-weight: 200;
}
The first one works in preview mode.
The second one should work in live-preview mode during editing. But it doesn’t.
Now I have no idea what is wrong and any help is appreciated
Thanks
Andreas