Created
May 30, 2024 20:40
-
-
Save kepano/64a4843c4e54ce04987efc970cb0407c to your computer and use it in GitHub Desktop.
Obsidian drop caps
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
/* Obsidian CSS snippet that adds drop caps to the first paragraph of a note. */ | |
.dropcaps .cm-content .cm-line:nth-child(2):first-letter, | |
.dropcaps .markdown-preview-sizer > div:nth-child(4) p:first-letter { | |
float: left; | |
font-weight: 600; | |
font-size: 300%; | |
line-height: 1; | |
margin-inline-end: 0.1em; | |
margin-bottom: -0.5rem; | |
padding: 0 0.05em; | |
border-radius: 4px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment