mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
Prevent wrapping in code blocks
Use horizontal scrolling for long lines of code rather than wrapping. Fix #467
This commit is contained in:
1 parent
793d91e5c6
commit
a5a0037c68
1 file changed
+5
-1
@@ -171,11 +171,15 @@ code {
|
||||
|
||||
pre {
|
||||
margin: 0 0 1rem 0;
|
||||
overflow: auto;
|
||||
background-color: rgb(248, 248, 248); /* Match default highlight theme. */
|
||||
border-color: rgb(248, 248, 248);
|
||||
}
|
||||
|
||||
pre code {
|
||||
white-space: pre; /* Override Bootstrap to preserve line breaks in code. */
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
height: 1px;
|
||||
|
||||
Reference in new issue
Block a user