-
Notifications
You must be signed in to change notification settings - Fork 0
/
userstyle.css
108 lines (90 loc) · 2.4 KB
/
userstyle.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* For styling the rendered Markdown */
/* Styling for Dark Theme */
/* Change the font size to 14px */
body, th, td, .inline-code {
font-size: 14px;
}
/* Colors for different mark tags */
/* ==mark== */
mark {
background-color: #BBDD66;
padding: 1px 2px;
}
/* Occurrences of search term */
mark[data-markjs] {
background-color: #F3B717;
padding: 0;
}
/* Current search term (local search) */
mark[data-markjs].mark-selected {
background-color: #CF3F00;
}
/* Add background and padding to preformatted text */
pre {
padding: 0.5em;
background: #282c34;
}
/* Headings: change background and padding */
h1, h2, h3, h4, h5, h6 {
background-color: #444444;
padding-bottom: .1em;
padding-top: .2em;
padding-left: .4em;
border-bottom: unset;
}
/* Headings: use nested counters */
body { counter-reset: h1counter; }
h1 { counter-reset: h2counter; }
h2 { counter-reset: h3counter; }
h3 { counter-reset: h4counter; }
h4 { counter-reset: h5counter; }
h5 { counter-reset: h6counter; }
h6 {}
h1:before {
counter-increment: h1counter;
content: counter(h1counter) ".\0000a0\0000a0";
}
h2:before {
counter-increment: h2counter;
content: counter(h1counter) "." counter(h2counter) ".\0000a0\0000a0";
}
h3:before {
counter-increment: h3counter;
content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) ".\0000a0\0000a0";
}
h4:before {
counter-increment: h4counter;
content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) "." counter(h4counter) ".\0000a0\0000a0";
}
h5:before {
counter-increment: h5counter;
content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) "." counter(h4counter) "." counter(h5counter) ".\0000a0\0000a0";
}
h6:before {
counter-increment: h6counter;
content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) "." counter(h4counter) "." counter(h5counter) "." counter(h6counter) ".\0000a0\0000a0";
}
/* TOC: use nested counters for list items */
.table-of-contents ol {
counter-reset: list-item;
}
.table-of-contents li {
display: block; counter-increment: list-item;
}
.table-of-contents li:before {
content: counters(list-item,'.') '.\0000a0';
}
/* Better alignment for resource icons */
.resource-icon {
top: .4em !important;
}
/* Print: Adjustments for printing and PDF export */
@media print {
pre {
padding: unset;
background: unset;
}
h1, h2, h3, h4, h5, h6 {
background-color: #eeeeee;
}
}