1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-08-09 10:06:34 +02:00

Fixed: In code blocks, scroll bars looked screwed up together with the borders

This commit is contained in:
til-schneider
2015-12-22 23:06:08 +01:00
parent 458ccc676f
commit db6b4e7276

View File

@@ -67,14 +67,21 @@
pre {
overflow: auto;
margin: 20px 0;
border: 1px solid #CCCCCC;
border-radius: 3px;
}
pre > code {
display: block;
border: 1px solid #CCCCCC;
line-height: 1.2;
margin: 0;
padding: 15px 10px;
// If the code element scrolls, the scroll bars look screwed up together with the border
// -> We put the border to the parent `pre` element
border: none;
border-radius: none;
}
code .hljs-tag {