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:
parent
2a68a3850c
commit
0739882bfa
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue