Skip to content

Commit c184aeb

Browse files
committed
Improve styling
1 parent 8ca1503 commit c184aeb

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

build.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<link rel=\"stylesheet\" href=\"/css/styles.css\">
2828
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
2929
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
30-
<link href=\"https://fonts.googleapis.com/css2?family=Baskervville:wght@700&family=Fira+Code:wght@300..700&family=Sen:wght@400..800&display=swap\" rel=\"stylesheet\">
30+
<link href=\"https://fonts.googleapis.com/css2?family=Baskervville:wght@700&family=JetBrains+Mono:wght@300..700&family=Sen:wght@400..800&display=swap\" rel=\"stylesheet\">
3131
"
3232
;; When doing syntax highlighting, output as CSS classes instead of the default
3333
;; inline CSS. The color theme is defined in ./content/css/htmlize-styles.css. To get

content/css/styles.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ a:visited {
3333
}
3434

3535
.content {
36-
max-width: 800px;
3736
margin: 0 auto;
38-
padding: 0 20px;
37+
padding: 0 4px;
3938
font-family: Sen, sans-serif;
4039
font-size: 16px;
40+
color: #222;
41+
line-height: 1.5;
42+
}
43+
@media (min-width: 800px) {
44+
.content {
45+
max-width: 640px;
46+
}
4147
}
4248
table {
4349
margin: 0 auto;
@@ -93,8 +99,8 @@ div.figure {
9399
margin: 1.5rem 0;
94100
}
95101
code, pre {
96-
font-family: "Fira Code", monospace;
97-
font-size: 14px;
102+
font-family: "JetBrains Mono", monospace;
103+
font-size: 12px;
98104

99105
}
100106
code {border: 1px solid #e5e5e5;}

0 commit comments

Comments
 (0)