-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
106 lines (91 loc) · 1.79 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
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
/* -*- css-indent-offset: 2; -*- */
:root {
--light: #FAFAFA;
--lighter: #CCC;
--darker: #111;
--dark: #222;
--dark-accent: #444;
--dark-lighter: #888;
--link: #07A;
--link-visited-light-theme: #941352;
--link-visited-dark-theme: #9f4f76;
color-scheme: light dark;
}
html {
height: 100%;
}
body {
min-height: 100%;
display: grid;
grid-template-rows: 1fr auto;
margin: 0 auto;
max-width: 672px;
line-height: 1.6;
font-size: 18px;
color: var(--dark);
background-color: var(--light);
padding: 0 10px;
font-family: "Open Sans";
}
@media screen and (min-width: 680px) {
main {
margin: 40px 0;
}
}
h1, h2 {
line-height: 1.2;
}
footer {
grid-row-start: 2;
grid-row-end: 3;
color: var(--dark-lighter);
font-size: 9px;
}
a {
color: var(--link);
}
a:visited {
color: var(--link-visited-light-theme);
}
footer > a {
color: var(--dark-lighter) !important;
}
blockquote {
background: var(--light);
border-left: 10px solid var(--dark-lighter);
margin: 1.5em 10px;
padding: 0.5em 10px;
font-family: monospace;
}
blockquote p {
display: inline;
}
@media screen and (min-width: 400px) {
blockquote {
display: table;
}
blockquote > * {
display: table-cell;
}
blockquote > .name {
padding-right: 8px;
}
}
/* Dark mode *****************************************************************/
@media (prefers-color-scheme: dark) {
body {
color: var(--light);
background: var(--dark);
}
footer{
color: var(--lighter);
}
blockquote {
background: var(--darker);
color: var(--lighter);
border-left-color: var(--dark-accent);
}
a:visited {
color: var(--link-visited-dark-theme);
}
}