Skip to content

Instantly share code, notes, and snippets.

@uphy
Created Sep 24, 2021
Embed
What would you like to do?
Hide Obsidian's fold marker
.CodeMirror-gutter-elt {
display: none;
}
.CodeMirror-activeline .CodeMirror-gutter-elt {
display: block;
}
@uphy

This comment has been minimized.

Copy link
Owner Author

@uphy uphy commented Sep 24, 2021

About

Obsidian has a feature to fold list items, headings.
The fold marker is always visible.

image

With this css, fold marker is visible only when the line is active.
image

How to apply this css

  1. Create directory <your vault dir>/.obsidian/snippets and put the file to the directory.
  2. Enable the css snippet from Obsidian Setting > Appearance > CSS snippets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment