-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
168 lines (158 loc) · 3.77 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
:root {
--a: #fffef3;
--b: #cccbc3;
--c: #555;
--d: #222;
--s: 2rem;
--t: 1rem;
--f: "InterVariable","Inter",-apple-system,BlinkMacSystemFont,"San Francisco",Roboto,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
--e: Menlo,Consolas,Monaco,"Liberation Mono","Lucida Console",monospace;
}
::selection { color: #222; background: #bcbeb4 }
@media(prefers-color-scheme:dark) {
:root {
--a: #000;
--b: #252525;
--c: #bcbbb5;
--d: #cccbc3;
}
::selection { color: #222; background: #bcbeb4 }
}
html {
height: 100%;
scroll-behavior: smooth;
box-sizing: border-box;
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
*, *::before, *::after {
box-sizing: inherit;
}
body {
word-break: break-word;
max-width: 600px;
min-height: 100vh;
margin: var(--t) auto; padding: 0 var(--s) var(--s);
font-family: var(--f);
font-size: 16px;
font-weight: 400;
line-height: 1.6;
background: var(--a);
color: var(--c);
}
/*text styles*/
h1,h2,h3,h4,h5,h6 {
font-weight: 400;
font-family: "Lora",serif;
text-wrap: balance;
line-height: 1.1;
color: var(--d);
margin-block-end: 1em;
margin-bottom: 1em;
}
h1 { font-size: 1.476rem }
h2 { font-size: 1.383rem }
h3 { font-size: 1.296rem }
h4 { font-size: 1.215rem }
h5 { font-size: 1.138rem }
h6 { font-size: 1.067rem }
b, strong { font-weight: 600 }
ul, ol { padding-inline-start: var(--t) }
li { padding-inline-start: calc(var(--t)/4) }
li::marker { color: var(--d) }
blockquote {
display: block;
font-family: inherit;
font-style: italic;
font-weight: normal;
padding: calc(var(--t)/4) var(--t);
margin: 0;
border-right: none;
border-left: 2px solid var(--b);
border-inline-start: 2px solid var(--b);
border-inline-end: none;
}
blockquote p {
margin: var(--t) 0;
color: var(--c);
}
blockquote footer {
margin-top: calc(1rem * 0.5);
color: var(--d);
}
/*header + footer + nav*/
body header, body footer { padding: var(--s) 0 }
body header nav p,
body footer p {
display: flex;
column-gap: calc(var(--t) * 0.75);
text-transform: lowercase;
}
body header nav p a,
body footer p a {
font-weight: 600;
color: var(--c);
text-decoration: none;
}
body header nav p a:hover {
color: var(--d);
}
/*code styles*/
code {
font-family: var(--e);
font-size: calc(1rem - 2px);
font-weight: normal;
padding: 2px 4px;
}
pre code {
background: transparent;
display: block;
padding: var(--t);
line-height: 1.3;
overflow-x: auto;
overflow-y: hidden;
border: 1px solid var(--b);
border-radius: 8px;
}
/*misc*/
img,picture,video { max-width: 100%; margin: var(--t) 0; display: block; border-radius: 8px }
hr { box-sizing: content-box; height: 0; border: 0; border-top: 2px solid var(--b) }
/*link styles*/
a {
color: var(--d);
text-decoration: underline;
text-decoration-color: var(--b);
text-decoration-thickness: 1px;
text-underline-offset: .15rem;
text-decoration-style: solid;
}
a:hover, a:active, a:focus {
color: var(--d);
text-decoration-color: var(--c);
}
a[href]:not(:where(
/* exclude hash only links */
[href^="#"],
/* exclude relative but not double slash only links */
[href^="/"]:not([href^="//"]),
[href^="./"]:not([href^=".//"]),
/* domains to exclude */
[href*="//zakaria.org"]
))::after {
content: ' \2197';
font-size: 75%;
display: inline-block;
position: relative;
bottom: 0.75ch;
right: 0px;
}
/*tables*/
table { border-collapse: collapse; overflow-x: auto; table-layout: fixed }
td, th { padding: 0.3rem 1ch }
th { border-bottom: 2px solid var(--c); color: var(--d); font-weight: 500; text-align: inherit }
td:first-child, th:first-child { padding-left: 0 }
td:last-child, th:first-child { padding-right: 0; white-space: nowrap; }
/*index table*/
td.postdate { white-space: nowrap; width: 10ch; font-family: var(--e) }
td.postlink { white-space: normal }