Skip to content

Commit 17de998

Browse files
committed
Chroma: Added code to bound the width of the codeblock
fix: Handled case of shell
1 parent 0ea5f51 commit 17de998

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

assets/css/v2/style.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,26 @@ blockquote p:last-child {
978978
}
979979

980980
/* Codeblocks */
981+
.highlight {
982+
position: relative;
983+
z-index: -1;
984+
985+
code .line {
986+
position: relative;
987+
988+
.c1 {
989+
white-space: normal;
990+
}
991+
}
992+
993+
code.language-shell {
994+
/* Special case for shell commands */
995+
.cl {
996+
white-space: normal;
997+
}
998+
}
999+
}
1000+
9811001
.highlight-mf {
9821002
grid-column: 1 / -1 !important;
9831003
position: relative;

0 commit comments

Comments
 (0)