-
Notifications
You must be signed in to change notification settings - Fork 7
/
style.css
54 lines (51 loc) · 1.72 KB
/
style.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
/* color scheme */
body {
--bg-color: white; --text-color: #202020; --text-secondary: #888; --emph-color: #101010;
--link-color: #1a0dab; --vlink-color: #681da8;
--text-danger: #dc3545; --text-warning: #ffc107; --text-success: #198754;
}
@media (prefers-color-scheme: dark) {
body {
--bg-color: #1b1e20; --text-color: #c8c8c8; --emph-color: #e4e4e4;
--link-color: #8ab4f8; --vlink-color: #c58af9;
--text-danger: #e74c3c; --text-warning: #f39c12; --text-success: #00bc8c;
}
img {filter: brightness(.8) contrast(1.2);}
}
/* basic */
body {
font-family: BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
margin: 0; padding: 0 2.5em; line-height: 1.5; font-size: 1.1em;
color: var(--text-color); background-color: var(--bg-color);
}
a:not(:hover) {text-decoration: none;}
a {color: var(--link-color);}
a:visited {color: var(--vlink-color);}
@media (max-width: 820px) {
body {padding: 0 1em;}
ul {padding-left: 1em;}
ol {padding-left: 1.2em;}
}
table {border-collapse: collapse;}
td, th {border: 1px solid var(--text-secondary); padding: 0.1rem 0.5rem;}
/* extra */
h1, h2, h3, h4, h5, h6 {line-height: initial; color: var(--emph-color);}
strong, em {color: var(--emph-color);}
.danger {color: var(--text-danger);}
.warning {color: var(--text-warning);}
.success {color: var(--text-success);}
/* numbered headings */
body {counter-reset: section;}
body h2 {counter-reset: subsection;}
body h2::before {
counter-increment: section;
content: counter(section) ". ";
}
body h3::before {
counter-increment: subsection;
content: counter(section) "." counter(subsection) ". ";
}
body h2::before, body h3::before {
color: var(--text-secondary);
font-size: 0.9em;
}