From 21a7537babc4ba3408b26be25a3b682826366e8d Mon Sep 17 00:00:00 2001 From: Joe Roe Date: Tue, 29 Aug 2023 09:52:01 +0200 Subject: [PATCH] Fix overflow of code blocks with line numbers. Fixes #41 --- NEWS.md | 2 ++ static/css/typography.css | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/NEWS.md b/NEWS.md index aecadde..c8ec289 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # risotto (development version) +* Fix overflow of code blocks with line numbers (#41) + # risotto 0.3.0 * Added support for favicons (#57) diff --git a/static/css/typography.css b/static/css/typography.css index 6369cf0..fcf63b6 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -154,6 +154,12 @@ pre { margin: 0 0 1.5rem 0; } +/* Fix overflow when config markup.highlight.lineNos is true */ +/* See https://github.com/joeroe/risotto/issues/41 */ +.highlight div { + overflow-x: auto; +} + /* Emphasis */ b, strong {