Skip to content

Commit

Permalink
Hide code block flair box if it's empty
Browse files Browse the repository at this point in the history
This adheres to how Obsidian default theme behaves
  • Loading branch information
krokofant committed Oct 31, 2022
1 parent fc46a51 commit 5c5a61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ h6 a.tag {
| CODE FENCE STYLING
**--------------------**/

.cm-s-obsidian span.code-block-flair {
.cm-s-obsidian span.code-block-flair:not(:empty) {
color: var(--text-accent);
font-weight: 600;
text-transform: uppercase;
Expand Down

0 comments on commit 5c5a61d

Please sign in to comment.