Skip to content

Commit 32d5192

Browse files
committed
style: code font size & background
1 parent b9db10e commit 32d5192

File tree

1 file changed

+35
-34
lines changed

1 file changed

+35
-34
lines changed

assets/style.css

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ p:has(+ pre) {
2121
margin-bottom: 0;
2222
}
2323

24-
p + pre {
25-
margin-top: 5px;
26-
}
27-
2824
pre {
2925
overflow: auto;
30-
border-top: 1px solid var(--border);
31-
border-bottom: 1px solid var(--border);
32-
padding: 4px 0;
26+
padding: 4px 5px;
27+
background: #8888880a;
28+
}
29+
30+
pre:has(+ pre) {
31+
margin-bottom: 10px;
3332
}
3433

3534
pre code {
3635
tab-size: 4;
3736
-moz-tab-size: 4;
3837
}
38+
3939
code {
40-
font-variant-ligatures: none;
41-
font-feature-settings: "liga" 0;
42-
font-family: "JetBrains Mono", monospace;
40+
font-family: monospace;
41+
font-size: 14px;
4342
}
4443

4544
.center {
@@ -86,11 +85,11 @@ body {
8685
margin-left: auto;
8786
text-align: right;
8887
}
89-
#prev-next > :first-child span::before{
88+
#prev-next > :first-child span::before {
9089
content: "←";
9190
}
9291

93-
#prev-next > :last-child span::after{
92+
#prev-next > :last-child span::after {
9493
content: "→";
9594
}
9695

@@ -100,12 +99,13 @@ a {
10099
display: inline-block;
101100
}
102101

103-
image, img {
102+
image,
103+
img {
104104
max-width: 100%;
105105
display: block;
106106
}
107107

108-
figure{
108+
figure {
109109
margin: 1rem;
110110
}
111111

@@ -189,10 +189,10 @@ html {
189189
}
190190

191191
@media screen and (max-width: 800px) {
192-
.toc{
192+
.toc {
193193
display: none;
194194
}
195-
.article{
195+
.article {
196196
padding-left: 0;
197197
}
198198
}
@@ -229,29 +229,30 @@ html {
229229
text-decoration: none;
230230
font-weight: bold;
231231
}
232-
.toc{
233-
display: none;
234-
position: fixed;
235-
top: var(--mobile-header-height);
236-
left: 0;
237-
right: 0;
238-
bottom: 0;
239-
width: auto;
240-
min-width: auto;
241-
padding: 8px 12px;
242-
background: var(--bg);
243-
z-index: 999;
244-
border-top: 1px solid var(--border);
245-
overflow-y: auto;
246-
}
232+
.toc {
233+
display: none;
234+
position: fixed;
235+
top: var(--mobile-header-height);
236+
left: 0;
237+
right: 0;
238+
bottom: 0;
239+
width: auto;
240+
min-width: auto;
241+
padding: 8px 12px;
242+
background: var(--bg);
243+
z-index: 999;
244+
border-top: 1px solid var(--border);
245+
overflow-y: auto;
246+
}
247247
body.toc-open .toc {
248248
display: block;
249249
}
250-
.body{
250+
.body {
251251
padding-left: 0;
252252
padding-top: calc(var(--mobile-header-height) + 8px);
253253
}
254-
h1{
254+
h1 {
255255
margin: 0;
256256
}
257-
}
257+
}
258+

0 commit comments

Comments
 (0)