Last active
April 2, 2022 15:00
-
-
Save ahmetasabanci/3b8f14ef23bc8dacd06851af14fece18 to your computer and use it in GitHub Desktop.
This is a small CSS snippet for Obsidian Minimal Theme which will make links in headings inherit the heading color if you're using colorful headings option. Big thanks to gregp at Obsidian Members Group Discord for helping me to figure it out.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cm-header:not(.cm-hashtag):not(.cm-em).cm-header-1 { | |
color:var(--red); | |
} | |
.cm-header:not(.cm-hashtag):not(.cm-em).cm-header-2 { | |
color:var(--orange); | |
} | |
.cm-header:not(.cm-hashtag):not(.cm-em).cm-header-3 { | |
color:var(--yellow); | |
} | |
.cm-header:not(.cm-hashtag):not(.cm-em).cm-header-4 { | |
color:var(--green); | |
} | |
.cm-header:not(.cm-hashtag):not(.cm-em).cm-header-5 { | |
color:var(--blue); | |
} | |
.cm-header:not(.cm-hashtag):not(.cm-em).cm-header-6 { | |
color:var(--purple); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment