Skip to content

Commit 31566d8

Browse files
committed
fix(blog): restore code block styling
1 parent 9f5572e commit 31566d8

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/app/global.css

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,17 @@ body {
168168
color: rgb(94 234 212);
169169
}
170170

171-
.blog-article-body :where(pre) {
171+
.blog-article-body :where(figure.shiki) {
172172
margin-block: 2rem;
173-
overflow-x: auto;
174-
border: 1px solid rgb(229 231 235);
175-
border-radius: 1rem;
176-
background: rgb(3 7 18);
177-
padding: 1rem;
178173
}
179174

180-
.dark .blog-article-body :where(pre) {
181-
border-color: rgb(31 41 55);
175+
.blog-article-body :where(:not(pre) > code) {
176+
font-size: 0.95em;
177+
border-radius: 0.375rem;
178+
background: rgba(15, 23, 42, 0.06);
179+
padding: 0.15rem 0.35rem;
182180
}
183181

184-
.blog-article-body :where(code) {
185-
font-size: 0.95em;
182+
.dark .blog-article-body :where(:not(pre) > code) {
183+
background: rgba(255, 255, 255, 0.08);
186184
}

0 commit comments

Comments
 (0)