Last active
January 29, 2023 06:58
-
-
Save JimmyLv/14864555ca3aa1b633ff3ac801a1eda3 to your computer and use it in GitHub Desktop.
Add Zettelkstan number system for Numbered List in Roam Research, It is best to apply this CSS only on the target [[π Zettelkasten]] page, via [[roam/css]]
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
.rm-level-0 { | |
counter-reset: top-counter; | |
} | |
.rm-level-0 > .roam-block-container:before { | |
counter-increment: top-counter; | |
content: counter(top-counter); | |
visibility: hidden; | |
height: 0; | |
} | |
[data-page-title="π Zettelkasten"] .rm-block-children:not(.rm-level-0) { | |
counter-reset: step-counter; | |
} | |
[data-page-title="π Zettelkasten"] .rm-block-children:not(.rm-level-0) span.rm-bullet__inner--numbered { | |
visibility: hidden; | |
display: flex; | |
} | |
[data-page-title="π Zettelkasten"] .rm-block-children:not(.rm-level-0) span.rm-bullet__inner--numbered:before { | |
visibility: visible; | |
counter-increment: step-counter; | |
content: counter(top-counter) "." counters(step-counter, "."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment