diff options
author | Patrick Spek <p.spek@tyil.nl> | 2019-10-17 11:12:42 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2019-10-17 11:12:42 +0200 |
commit | db80e6b78a5dd7799a34c5e929a3599c040145a5 (patch) | |
tree | 841782b5eb6e94853aa3e80ee1a568d87f31d475 /css | |
parent | 8904b0bc21a4b69739056b3ef67c97424f86e791 (diff) |
Small CSS fixes for code blocks
- Remove padding from code blocks, so the first line is properly aligned
with the rest of the code.
- Add a scrollbar to code blocks which are too small to properly contain
the entire code sample.
Diffstat (limited to 'css')
-rw-r--r-- | css/main.less | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/css/main.less b/css/main.less index c714b0e..12ca762 100644 --- a/css/main.less +++ b/css/main.less @@ -34,6 +34,7 @@ table { figure.highlight, pre.highlight { border: 2px solid @blockBorderColor; background-color: @blockBackgroundColor; + overflow-x: auto; pre, pre.pygments { margin: 0; @@ -51,6 +52,10 @@ code { padding: 2px; } +pre code { + padding: 0; +} + div.container { max-width: @mainWidth; margin: 0 auto 0.5em auto; |