Created
November 3, 2021 05:45
-
-
Save mochsner/a66157efd754f32586749011726a50f1 to your computer and use it in GitHub Desktop.
smart-edit-checkboxes.scss
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
/* 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