We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f0075c commit 1b69982Copy full SHA for 1b69982
src/Indent headings.scss
@@ -1,7 +1,15 @@
1
-/* Indent headings v0.3.0
+/* Indent headings v0.3.1-dev
2
github.com/zamsyt */
3
+:root {
4
+ --heading-indent: 20px;
5
+ --heading-offset: -1;
6
+ --heading-offset-body: -1;
7
+}
8
:root:root .cm-content > div, .markdown-preview-view > * > div {
- margin-left: calc(max(0, var(--heading-level) - 1) * 20px) !important;
9
+ margin-left: calc(max(0, var(--heading-level) + var(--heading-offset-body)) * var(--heading-indent)) !important;
10
11
+:root .cm-content > div.HyperMD-header, .markdown-preview-view > * > div:has(> [data-heading]) {
12
+ margin-left: calc(max(0, var(--heading-level) + var(--heading-offset)) * var(--heading-indent)) !important;
13
}
14
15
$max-headings: 10;
0 commit comments