Skip to content

Commit 27a7c49

Browse files
committed
changes to code blocks
1 parent 53cc397 commit 27a7c49

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/blog.html

+19
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,25 @@
198198
margin: 10px;
199199
}
200200
}
201+
202+
/* Code block styling */
203+
pre {
204+
background-color: #3b4252;
205+
padding: 16px;
206+
overflow-x: auto;
207+
border-left: 4px solid #81a1c1;
208+
border-radius: 8px;
209+
margin: 1em 0;
210+
}
211+
212+
pre code {
213+
display: block;
214+
font-family: 'Fira Code', monospace;
215+
font-size: 0.95em;
216+
line-height: 1.5;
217+
color: #eceff4;
218+
white-space: pre;
219+
}
201220
</style>
202221
</head>
203222

0 commit comments

Comments
 (0)