-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlive_preview_number_headings.css
44 lines (36 loc) · 1.71 KB
/
live_preview_number_headings.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* -----------------------------------------------------------------------------
Desc: Display numbers for headings, without including them in the file.
Only works for live preview.
Auth: Nicklas Vraa
----------------------------------------------------------------------------- */
/* Numbered headings. ------------------------------------------------------- */
.cm-content { counter-reset: H2live H3live H4live H5live H6live !important; }
.HyperMD-header-1 { counter-reset: H2live !important; }
.HyperMD-header-2 { counter-reset: H3live !important; }
.HyperMD-header-2:before {
counter-increment: H2live !important;
content: counter(H2live) ".\0000a0\0000a0\0000a0" !important;
}
.HyperMD-header-3 { counter-reset: H4live !important; }
.HyperMD-header-3:before {
counter-increment: H3live !important;
content: counter(H2live) "." counter(H3live) ".\0000a0\0000a0\0000a0" !important;
}
.HyperMD-header-4 { counter-reset: H5live !important; }
.HyperMD-header-4:before {
counter-increment: H4live !important;
content: counter(H2live) "." counter(H3live) "." counter(H4live) ".\0000a0\0000a0\0000a0" !important;
}
.HyperMD-header-5 { counter-reset: H6live !important; }
.HyperMD-header-5:before {
counter-increment: H5live !important;
content: counter(H2live) "." counter(H3live) "." counter(H4live) "." counter(H5live) ".\0000a0\0000a0\0000a0" !important;
}
.HyperMD-header-6:before {
counter-increment: H6live !important;
content: counter(H2live) "." counter(H3live) "." counter(H4live) "." counter(H5live) "." counter(H6live) ".\0000a0\0000a0\0000a0" !important;
}
.markdown-source-view.mod-cm6 .cm-fold-indicator .collapse-indicator {
padding-right: 2px !important;
display: none;
}