I’m trying to apply some CSS modification on one specific file.
For example, consider the following CSS code:
.markdown-preview-view h1 { color: red; }
I know I can put that in a CSS snippet to change the header color, but what if I want to apply this code to one file only? I’m far from being an expert in CSS but I think I can do that through the cssclass YAML keyword of the specific file and by defining a custom CSS class (that would thus only apply to this one file), but I’m not too sure about the syntax. I’ve used cssclass successfully for other things (e.g. simply adding columns to a file) but now the syntax is different.
Is it possible to do that this way (or any other way for that matter)?
Hmm, this is weird. I’ve done exactly like you suggested but it doesn’t work for me. The heading remains black, unless I remove .customh1 in the snippet file (then it gets applied, but to all files).