From db80e6b78a5dd7799a34c5e929a3599c040145a5 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Thu, 17 Oct 2019 11:12:42 +0200
Subject: 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.
---
css/main.less | 5 +++++
1 file changed, 5 insertions(+)
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;
--
cgit v1.1