Adding margin/padding to headings in Minimal theme for Obsidian Publish docs

Hi there, I’m trying to get some extra padding or margin above my headings to show in an Obsidian Publish note, while using the Minimal theme.

I’ve tried all the existing Minimal theme settings but there doesn’t seem to be a setting for this. I searched and found a css snippet from @gregp that I added to my snippets folder and it does the job perfectly in the app’s preview mode, but doesn’t affect the published note for some reason.

So, my question is: where would I put this snippet of css code so it works on the published note? Somewhere in the Minimal css? In Publish.css? I’m not a dev and I have basic css skills so I would need a fairly prescriptive (simple) answer.

Any guidance much appreciated!


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