Skip to content

Instantly share code, notes, and snippets.

@mochsner
Created November 3, 2021 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mochsner/a66157efd754f32586749011726a50f1 to your computer and use it in GitHub Desktop.
Save mochsner/a66157efd754f32586749011726a50f1 to your computer and use it in GitHub Desktop.
smart-edit-checkboxes.scss
/* Gist to generate checklists with decreasing intensity in edit mode on Obisidian.md */
$color:(
1: #000000,
);
$variations: (
1: 30%,
2: 50%,
3: 70%,
4: 75%,
5: 80%,
6: 85%,
7: 90%
);
@each $name, $hex in $color {
@each $n, $v in $variations {
span > .cm-hmd-list-indent-#{$n} ~ span {
color: lighten($hex, $v);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment