Skip to content

Instantly share code, notes, and snippets.

@uphy
Created September 24, 2021 01:08
Show Gist options
  • Save uphy/924b84f4c238b9d513d1851a6d788cf6 to your computer and use it in GitHub Desktop.
Save uphy/924b84f4c238b9d513d1851a6d788cf6 to your computer and use it in GitHub Desktop.
Hide Obsidian's fold marker
.CodeMirror-gutter-elt {
display: none;
}
.CodeMirror-activeline .CodeMirror-gutter-elt {
display: block;
}
@uphy
Copy link
Author

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