Frontmatter "cssclass" property for live preview in 0.13.20

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 :slightly_smiling_face:

Thanks
Andreas

.gloss .cm-header-2 { ... }

This should work (for font layout) in live- and edit-mode.

Great, thanks a lot :slightly_smiling_face: It works

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.