diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-06-30 20:57:52 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-06-30 20:57:52 +0300 |
commit | 6eb5a7416412dddcf231c88ca2d3a51b38567cfc (patch) | |
tree | 1dfb8cad4559cc98f47f8dd2f9dd8ec2dfbd22e1 | |
parent | static-vs: namespace { (diff) | |
download | blog-6eb5a7416412dddcf231c88ca2d3a51b38567cfc.tar.gz blog-6eb5a7416412dddcf231c88ca2d3a51b38567cfc.zip |
add horizontal scrollbars to <pre> elements
-rw-r--r-- | css/common/footer.css | 7 | ||||
-rw-r--r-- | css/common/misc.css | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/css/common/footer.css b/css/common/footer.css index 417b3d9..d3c3884 100644 --- a/css/common/footer.css +++ b/css/common/footer.css @@ -6,6 +6,13 @@ html, body { height: 100%; width: 100%; display: table; + + /* + Without this property, scrollbars inside <pre> elements don't work if + display's width is less than 750px. + God, I hate CSS. + */ + table-layout: fixed; } .footer-wrapper-collapse { display: table-row; diff --git a/css/common/misc.css b/css/common/misc.css index 960e910..33dba8f 100644 --- a/css/common/misc.css +++ b/css/common/misc.css @@ -17,3 +17,10 @@ h6 a { span.badge { margin-left: .5em; } +pre { + overflow-x: auto; +} +pre code { + white-space: pre; + word-wrap: normal; +} |