Skip to content

Commit fd6adc3

Browse files
WasabiFandlech
authored andcommitted
Scroll <pre>s horizontally instead of wrapping
1 parent 4a5c59f commit fd6adc3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stylesheets/bootstrap.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,14 @@
7272
// Custom breadcrumb separator
7373
.breadcrumb > li + li::before {
7474
content: ">"
75+
}
76+
77+
// Horizontally-scrollable <pre>
78+
// thanks http://stackoverflow.com/a/32772238/2422874
79+
pre, pre > code {
80+
overflow: auto;
81+
-ms-word-wrap: normal;
82+
word-wrap: normal;
83+
overflow-wrap: normal;
84+
white-space: pre;
7585
}

0 commit comments

Comments
 (0)