Skip to content

Commit 7efe01d

Browse files
committed
Fix formatting issues in pre and codeblock styles
1 parent e5cc49c commit 7efe01d

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

assets/scss/styles.scss

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,20 @@ section {
291291
border-radius: 6px;
292292
}
293293

294+
pre {
295+
line-height: 24px;
296+
background-color: #272822;
297+
border-radius: 10px;
298+
padding: 15px;
299+
300+
code {
301+
background-color: initial;
302+
padding: initial;
303+
border-radius: initial;
304+
}
305+
margin-bottom: 20px;
306+
}
307+
294308
.highlight {
295309
overflow-x: auto;
296310
width: 100%;
@@ -300,10 +314,18 @@ section {
300314
-moz-text-size-adjust: 100%;
301315
-webkit-text-size-adjust: 100%;
302316

317+
pre {
318+
line-height: initial;
319+
background-color: initial;
320+
border-radius: initial;
321+
padding: initial;
322+
margin: 0;
323+
}
324+
303325
div {
304326
border-radius: 10px;
305327
padding: 15px;
306-
width: min-content;
328+
width: fit-content;
307329
}
308330

309331
code {

0 commit comments

Comments
 (0)