-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkihon.css
96 lines (81 loc) · 1.42 KB
/
kihon.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
:root {
--c-neutral-one: whitesmoke;
--c-neutral-two: #212121;
--c-neutral-three: #fff;
--c-accent: #3D9970;
}
@media (prefers-color-scheme: dark) {
:root {
--c-neutral-one: #212121;
--c-neutral-two: whitesmoke;
--c-neutral-three: #111;
--c-accent: #01FF70;
}
}
html,
body {
height: 100%;
}
body {
background-color: var(--c-neutral-one);
color: var(--c-neutral-two);
font-family: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
display: flex;
flex-flow: column;
font-size: 18px;
margin: auto;
max-width: 48rem;
line-height: 1.6;
padding: 0 1rem;
}
@media (min-width: 49rem) {
body {
padding: 0;
}
}
:lang(ja) {
font-family: "游ゴシック体", YuGothic, "ヒラギノ丸ゴ", "Hiragino Sans", "Yu Gothic UI", "Meiryo UI", "MS Gothic", Roboto, Noto, "Noto Sans CJK JP", sans-serif;
}
main {
flex: 1 0 auto;
}
header,
footer {
text-align: center;
}
nav {
display: flex;
justify-content: space-around;
padding: 0.8rem 0;
}
h1,
h2,
h3 {
color: var(--c-accent);
line-height: 1.2;
font-family: Athelas, Constantia, Georgia, serif;
}
img {
max-width: 100%;
}
a {
color: var(--c-accent);
}
img,
pre,
code {
border-radius: 0.2rem;
}
pre,
code {
background-color: var(--c-neutral-three);
color: var(--c-accent);
font-family: "Andale Mono", Consolas, monospace;
}
pre {
padding: 0.5rem 1rem;
white-space: pre-wrap;
}
code {
padding: 0.1rem 0.3rem;
}