Skip to content

Commit 76cfcf5

Browse files
committed
improve styling
1 parent 003bd7e commit 76cfcf5

File tree

3 files changed

+18
-21
lines changed

3 files changed

+18
-21
lines changed

_includes/layout.tsx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ export default function Layout(
4343
}
4444
4545
body {
46-
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
46+
font-family: "Times New Roman", Times, serif;
4747
line-height: 1.6;
4848
margin: 0;
4949
padding: 0;
5050
background: ${background || "#fff"};
5151
color: #333;
52+
font-size: 18px;
5253
}
5354
5455
body.dark {
@@ -57,9 +58,9 @@ export default function Layout(
5758
}
5859
5960
.container {
60-
max-width: 640px;
61+
max-width: 680px;
6162
margin: 0 auto;
62-
padding: 2rem 1rem;
63+
padding: 3rem 2rem;
6364
}
6465
6566
.header {
@@ -69,7 +70,6 @@ export default function Layout(
6970
position: relative;
7071
}
7172
72-
7373
.avatar {
7474
width: 80px;
7575
height: 80px;
@@ -118,7 +118,7 @@ export default function Layout(
118118
}
119119
120120
.theme-toggle:hover, .back-button:hover {
121-
background: #f5f;
121+
background: #f8f8f8;
122122
color: #333;
123123
text-decoration: none;
124124
}
@@ -152,13 +152,10 @@ export default function Layout(
152152
153153
@media (max-width: 640px) {
154154
.header {
155-
flex-direction: column;
156-
text-align: center;
157155
gap: 1rem;
158156
}
159157
160158
.avatar {
161-
margin-right: 0;
162159
width: 64px;
163160
height: 64px;
164161
}
@@ -191,7 +188,6 @@ export default function Layout(
191188
font-size: 2.25rem;
192189
}
193190
194-
195191
h2 { font-size: 1.875rem; }
196192
h3 { font-size: 1.5rem; }
197193
@@ -218,7 +214,6 @@ export default function Layout(
218214
max-height: 350px;
219215
}
220216
221-
222217
.post-list {
223218
list-style: none;
224219
padding: 0;
@@ -235,9 +230,8 @@ export default function Layout(
235230
font-weight: 600;
236231
}
237232
238-
239233
.content p {
240-
margin-bottom: 1rem;
234+
margin-bottom: 1.5rem;
241235
}
242236
243237
.content blockquote {
@@ -252,7 +246,7 @@ export default function Layout(
252246
}
253247
254248
.content pre {
255-
background-color: #f5f;
249+
background-color: #f8f8f8;
256250
padding: 1.5rem;
257251
border-radius: 0.375rem;
258252
overflow-x: auto;
@@ -261,24 +255,27 @@ export default function Layout(
261255
}
262256
263257
body.dark .content pre {
264-
background-color: #222;
258+
background-color: #1a1a1a;
265259
}
266260
267261
.content code {
268-
background-color: #f5f;
262+
background-color: #f8f8f8;
269263
padding: 0.125rem 0.25rem;
270264
border-radius: 0.25rem;
271265
font-size: 0.875em;
272266
}
273267
274268
body.dark .content code {
275-
background-color: #222;
269+
background-color: #1a1a1a;
276270
}
277271
278-
279272
@media (max-width: 640px) {
280273
.container {
281-
padding: 1rem 0.75rem;
274+
padding: 2rem 1.5rem;
275+
}
276+
277+
body {
278+
font-size: 16px;
282279
}
283280
284281
h1, .post-title { font-size: 1.875rem; }

feed.xml.page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const url = "/feed.xml";
22

3-
export default function() {
3+
export default function () {
44
return `<!DOCTYPE html>
55
<html>
66
<head>
@@ -10,4 +10,4 @@ export default function() {
1010
<p>Redirecting to <a href="/feed">/feed</a>...</p>
1111
</body>
1212
</html>`;
13-
}
13+
}

optimistic_nihilism.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const url = "/optimistic_nihilism";
22

3-
export default function() {
3+
export default function () {
44
return `<!DOCTYPE html>
55
<html>
66
<head>

0 commit comments

Comments
 (0)