Skip to content

Commit 994c7f6

Browse files
authored
Let's be silly with stylesheets (#19)
* Update * Update base style
1 parent c3b9002 commit 994c7f6

1 file changed

Lines changed: 32 additions & 8 deletions

File tree

_layouts/base.html

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,49 @@
2323
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
2424
<link rel="alternate" type="application/rss+xml" title="CB341.DEV RSS Feed" href="/rss.xml">
2525
<style>
26+
html, body { margin: 0; padding: 0; }
2627
body {
2728
overflow-y: scroll;
29+
background: #e9ecef;
30+
color: #1c1c1a;
31+
font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
32+
font-size: 15px;
33+
line-height: 1.55;
34+
letter-spacing: -0.01em;
2835
}
2936

3037
.wrapper {
31-
max-width: 80ch;
32-
margin-left: auto;
33-
margin-right: auto;
38+
max-width: 68ch;
39+
margin: 24px auto;
40+
background: #fafaf8;
41+
padding: 36px 40px;
42+
border: 1px solid #ececea;
3443
}
35-
36-
p img {
37-
width: 100%;
38-
height: auto;
44+
@media (max-width: 600px) {
45+
.wrapper { margin: 0; padding: 18px 16px; border-left: 0; border-right: 0; }
3946
}
4047

48+
p img { width: 100%; height: auto; }
49+
blockquote { margin: 1.2em 2em; font-style: italic; }
50+
51+
hr { border: 0; border-top: 1px solid #e6e6e2; margin: .6em 0; }
52+
53+
code {
54+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
55+
font-size: .88em;
56+
background: #f1f1ee;
57+
padding: 1px 4px;
58+
border-radius: 2px;
59+
}
4160
pre {
4261
overflow-x: auto;
62+
background: #f1f1ee;
63+
border: 1px solid #e6e6e2;
64+
padding: 10px 12px;
65+
font-size: .88em;
66+
line-height: 1.5;
4367
}
44-
68+
pre code { background: transparent; padding: 0; }
4569
</style>
4670
{%- if page.math -%}
4771
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css" crossorigin="anonymous">

0 commit comments

Comments
 (0)