chetachiezikeuzor / Yin-and-Yang-Theme

An Obsidian.md theme with a stark contrast between dark mode and light mode, much like the Yin and Yang symbol ☯️.
Mozilla Public License 2.0
536 stars 42 forks source link

Update heading size styling to work with v0.13.30 #89

Closed whatisjasongoldstein closed 2 years ago

whatisjasongoldstein commented 2 years ago

Some of the classes appear to have changed in the latest version, breaking heading font-sizes on most themes. I added this as additions since I'm sure entirely sure what's for the new editor, old editor, what's going on with mobile, etc, and didn't want to break compatibility.

This worked for me. Happy to alter it if there's a method to the selectors that I'm not seeing.

Cheers!

kylestratis commented 2 years ago

Tried these changes locally and they just made every header the same size as the original h1, rather than different sizes to respect the headings themselves.

ChriiMoral commented 2 years ago

Tried these changes locally and they just made every header the same size as the original h1, rather than different sizes to respect the headings themselves.

Not sure why you got this result. I tried the fix and it works just fine. The portion that needs to be added under each header's segment is .HyperMD-header-#, (# being the number of header in question).

I could totally be misinterpreting your comment. Do feel free to elaborate.