-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
77 lines (70 loc) · 1.52 KB
/
style.css
File metadata and controls
77 lines (70 loc) · 1.52 KB
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
:root {
--page-bg-color: white;
--text-color: #222;
--link-color: #06d;
--visited-link-color: #91e;
--code-color: #456658;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root {
--page-bg-color: #141414;
--text-color: #eee;
--link-color: #2af;
--visited-link-color: #c5f;
--code-color: #c5eddc;
/* Ask browser to render elements like inputs & scrollbars per dark theme */
color-scheme: dark;
}
}
* {
box-sizing: border-box;
}
html {
margin: 0;
padding: 0;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
}
html,
body,
input,
button,
select,
textarea {
font-family: system-ui, sans-serif;
}
body {
padding: calc(0.5em + 0.5vmin);
margin: 0 auto;
max-width: 40em;
background-color: var(--page-bg-color);
color: var(--text-color);
/* Good defaults for handling too-long words; won't help in most tables */
overflow-wrap: break-word;
}
:link {
color: var(--link-color);
}
:visited {
color: var(--visited-link-color);
}
code,
tt,
kbd,
pre {
font-family: "JetBrains Mono", "IBM Plex Mono", "Source Code Pro",
"Cascadia Code", ui-monospace, Menlo, "Ubuntu Monospace", "Inconsolata",
"Fira Code", "Deja Vu Sans Mono", "Bitstream Vera Sans Mono", Monaco,
"Segoe UI Mono", "Roboto Mono", "Oxygen Mono", Consolas, monospace;
/* Fight famous 'code too big' problem */
font-size: 90%;
color: var(--code-color);
}
pre code,
pre tt,
pre kbd {
/* We don't want 90% of 90% for <pre><code> */
font-size: 100%;
}