From 7f73540fd7b15fb9efc984377fc86d5fc39efcc4 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Mon, 5 Aug 2024 21:42:24 +0200 Subject: [PATCH] Add rounded corners to codeblocks; also ensure horizontal scrolling to avoid overflow --- themes/hugo-theme-ipng/assets/styles.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/hugo-theme-ipng/assets/styles.scss b/themes/hugo-theme-ipng/assets/styles.scss index a8c63e9..52a5b2b 100644 --- a/themes/hugo-theme-ipng/assets/styles.scss +++ b/themes/hugo-theme-ipng/assets/styles.scss @@ -130,6 +130,11 @@ kbd, code { pre { background-color: $codeblock-background; padding: 0.5em; + overflow-x: auto; + font-weight: bold; + border: 1px solid #DDDDDD; + border-radius: 0.5em; + code { background-color: transparent; }