From 0739882bfaae726cdcb0674d902d301546372dca Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 7 Dec 2023 22:14:21 -0800 Subject: [PATCH] Use both padding and margin for source code blocks Share the amount of space used between the source code blocks and other elements. This way (in Firefox) the horizontal scroll bar isnt' pushed all the way over to the next element, but stays in between. This still reduces overlap while also not making the scroll bar crowd the next element. This also fixes a little style bug that the padding was given all around, this is only meant to apply to the top and bottom of the element. --- src/scss/include/_components.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scss/include/_components.scss b/src/scss/include/_components.scss index 5e519ad..27aa9ea 100644 --- a/src/scss/include/_components.scss +++ b/src/scss/include/_components.scss @@ -2,8 +2,8 @@ pre.src { overflow: auto; - margin: 0; - padding: 1rem; + margin: 0.5rem 0; + padding: 0.5rem 0; } .content-wrapper {