tomchristie/mkdocs — pull request #40 by jkmacc (2014-02-28 15:53:16+00:00)
Title: Add scrolling horizontal overflow to code blocks, split bootstrap css into multiple lines.

Changes:

1. Add auto scroll for horizontal overflow on pre/code blocks.
* Eliminate any `word-wrap:break-word` css rules. This broke scrolling.
* Change all `white-space:pre-wrap` to `white-space:pre`. This broke scrolling.
* Add `overflow-x:auto` rule to `pre` blocks. This allowed scrolling.
2. Put css rules on their own lines indent multi-line rules. It makes css more versionable and readable.

Made changes to all `mkdocs/themes/*/css/bootstrap*.css` files
with the following python script, run inside mkdocs/themes:

```python
import os
replacements = [('word-wrap:break-word;', ''),
('white-space:pre-wrap', 'white-space:pre'),
('pre{white-space:pre}', 'pre{white-space:pre;overflow-x:auto}'),
('}', '}\n'),
(';', ';\n ')]

for dirpath, dirnames, filenames in os.walk('.'):
for filename in filenames:
if 'bootstrap' in filename and filename.endswith('.css'):
inlines = open(dirpath + '/' + filename).readlines()
outfile = open(dirpath + '/' + filename, 'w')
for line in inlines:
for src, target in replacements:
line = line.replace(src, target)
outfile.write(line)
outfile.close()
```

Changes are actually in separate commits, so feel free to tell me to only send a PR for one of them.