Skip to content

Commit 956bdb4

Browse files
author
Ian VanSchooten
committed
Fix: Scroll long code instead of wrapping (fixes eslint#126)
1 parent 216b09d commit 956bdb4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

styles/overrides.css

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
.btn-getting-started {
22
margin-top: 30px;
33
}
4+
5+
/* Prevent long code from wrapping, scroll instead */
6+
code[data-lang] {
7+
white-space: pre;
8+
}
9+
10+
main.doc .highlight pre {
11+
overflow-x: auto;
12+
word-wrap: normal;
13+
}

0 commit comments

Comments
 (0)