aboutsummaryrefslogtreecommitdiff
path: root/template/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'template/style.css')
-rwxr-xr-xtemplate/style.css275
1 files changed, 275 insertions, 0 deletions
diff --git a/template/style.css b/template/style.css
new file mode 100755
index 0000000..4ca2932
--- /dev/null
+++ b/template/style.css
@@ -0,0 +1,275 @@
1:root {
2 --base-document-width: 740px;
3 --base-font-size: 18px;
4 --base-color: #111111;
5
6 --link-color: #111111;
7 --link-color-hover: #111111;
8
9 --label-color: #828282;
10
11 --border-color: #eeeeee;
12
13 --badge-background-color: #eeeeee;
14 --badge-label-color: #111111;
15}
16
17* {
18 box-sizing: border-box;
19}
20
21body {
22 background: white;
23 font-family: TimesNewRoman,Times New Roman,Times,Baskerville,Georgia,serif;
24 color: var(--base-color);
25 font-size: var(--base-font-size);
26 line-height: 1.7em;
27 padding: 0;
28 margin: 0;
29 padding-bottom: 100px;
30}
31
32
33::selection {
34 background: #ff0;
35 color: #000;
36}
37
38::-moz-selection {
39 background: #ff0;
40 color: #000;
41}
42
43/* width of the page */
44
45.wrapper {
46 max-width: var(--base-document-width);
47 margin: 0 auto;
48}
49
50
51/* headings */
52
53h1 { font-size: 220%; }
54h2 { font-size: 180%; }
55h3 { font-size: 160%; }
56h4 { font-size: 140%; }
57h5 { font-size: 120%; }
58h6 { font-size: 100%; }
59
60h1[itemtype="headline"] {
61 padding-bottom: 0;
62 margin-bottom: 20px;
63 font-size: 260%;
64 line-height: 1.2em;
65}
66
67/* tables */
68
69table {
70 width: 100%;
71}
72
73table, th, td {
74 border: 1px solid black;
75 text-align: left;
76}
77
78th, td {
79 padding: 5px 10px;
80}
81
82
83/* quotes */
84
85blockquote {
86 position: relative;
87 margin-block-start: 30px;
88 margin-block-end: 30px;
89 margin-right: 0;
90}
91
92blockquote:before {
93 content: ' ';
94 background-image: url('/assets/general/alert.svg');
95 background-size: 30px 30px;
96 height: 30px;
97 width: 30px;
98 position: absolute;
99 left: -40px;
100 top: 6px;
101}
102
103blockquote p {
104 padding-left: 10px;
105}
106
107
108/* header navigation */
109
110.navigation {
111 /*border-bottom: 1px dotted var(--border-color);*/
112 margin-bottom: 50px;
113}
114
115.navigation header {
116 display: flex;
117 align-items: center;
118}
119
120.navigation header .home {
121 font-size: 130%;
122}
123
124.navigation header .home a {
125 text-decoration: none;
126 color: var(--base-color);
127}
128
129.navigation header .home a:hover {
130 text-decoration: underline;
131}
132
133.navigation header nav {
134 flex-grow: 1;
135 text-align: right;
136}
137
138.navigation header nav a {
139 padding: 0 10px;
140 text-decoration: none;
141 color: var(--link-color-hover);
142}
143
144.navigation header nav a:hover {
145 text-decoration: underline;
146 color: var(--link-color-hover);
147}
148
149
150/* index post list */
151
152.post-list {
153 list-style-type: none;
154 padding: 0;
155 margin: 0;
156}
157
158.post-list li {
159 margin: 0 0 20px 0;
160 text-decoration: none;
161}
162
163.post-list li a {
164 text-decoration: none;
165 color: var(--link-color);
166}
167
168.post-list li a:hover {
169 text-decoration: underline;
170 color: var(--link-color-hover);
171}
172
173.post-list li a h2 {
174 font-weight: 400;
175 font-size: 130%;
176 margin: 0;
177}
178
179
180/* project list */
181
182.project-list {
183 margin-top: 60px;
184}
185
186.project-list a {
187 text-decoration: none;
188 color: var(--link-color);
189}
190
191.project-list li a:hover {
192 text-decoration: underline;
193 color: var(--link-color-hover);
194}
195
196
197/* tag badges */
198
199.tags {
200 margin-top: 5px;
201}
202
203.tags a {
204 font-size: 80%;
205 padding: 2px 10px;
206 border-radius: 20px;
207
208 background: var(--badge-background-color);
209 color: var(--badge-label-color) !important;
210 text-decoration: none !important;
211}
212
213.tags a:hover {
214 filter: brightness(90%);
215 text-decoration: none !important;
216}
217
218
219/* helpers */
220
221.top-margin {
222 margin-top: 60px;
223}
224
225code {
226 background: rgb(255, 241, 177);
227 padding: 2px 5px;
228 font-size: 14px;
229}
230
231pre > code {
232 background: unset;
233 padding: unset;
234}
235
236pre {
237 font-size: 14px;
238}
239
240img, video {
241 max-width: 100%;
242 margin: 30px auto;
243 display: block;
244}
245
246time {
247 color: var(--label-color);
248 font-size: 90%;
249}
250
251/* footer */
252
253.footer {
254 border-top: 1px solid var(--border-color);
255 margin-top: 70px;
256 padding-top: 20px;
257 padding-bottom: 50px;
258}
259
260
261/* responsive */
262
263@media only screen and (max-width: 960px) {
264 main { padding: 0 20px; }
265 footer { padding: 0 20px; }
266 h1[itemtype="headline"] { font-size: 220%; }
267 .navigation header { padding: 0 20px; }
268}
269
270
271/* light/dark mode */
272
273@media (prefers-color-scheme: light) { }
274
275@media (prefers-color-scheme: dark) { }