Browse Source

Merge pull request #6458 from ostezer/docs-code-block-scrolling

Issue #5279 -> Introduce horizontal scrolling to code-blocks
James Turnbull 11 years ago
parent
commit
69a1f53e70
1 changed files with 5 additions and 0 deletions
  1. 5 0
      docs/theme/mkdocs/css/docs.css

+ 5 - 0
docs/theme/mkdocs/css/docs.css

@@ -249,6 +249,11 @@ ol li {
   border-radius: 4px;
   -webkit-border-radius: 4px;
   -moz-border-radius: 4px;
+  overflow-x: auto;
+}
+.content-body pre code {
+  overflow-wrap: normal;
+  white-space: pre;
 }
 
 #leftnav .nav.nav-tabs li a {