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.
This commit is contained in:
Tom Willemse 2023-12-07 22:14:21 -08:00
parent 2a68a3850c
commit 0739882bfa

View file

@ -2,8 +2,8 @@
pre.src { pre.src {
overflow: auto; overflow: auto;
margin: 0; margin: 0.5rem 0;
padding: 1rem; padding: 0.5rem 0;
} }
.content-wrapper { .content-wrapper {