aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorJackson Chen <jackson@jacksonchen666.com>2023-04-16 20:40:16 +0200
committerJackson Chen <jackson@jacksonchen666.com>2023-04-16 20:40:16 +0200
commit76007c07dee8500a6ce993be2a29ae1bb550bb22 (patch)
treef11b8a8f2dc84d915ecf8a6cd902e4ab470f4e6f /layouts/partials
parent341d731293ca0b3365005423afe7b98f6e0efca8 (diff)
Make code blocks scrollable in case of overflow
Fixes #263 References: https://github.com/cstate/cstate/issues/263
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/meta.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index c8381a9..577f4a0 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -107,6 +107,10 @@
padding: 16px;
}
+ .contain pre {
+ overflow-x: scroll;
+ }
+
.contain--more { max-width: 680px; }
.center { text-align: center; }