mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-08-10 10:34:17 +02:00
Fixed: In code blocks, scroll bars looked screwed up together with the borders
This commit is contained in:
@@ -67,14 +67,21 @@
|
|||||||
pre {
|
pre {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
|
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre > code {
|
pre > code {
|
||||||
display: block;
|
display: block;
|
||||||
border: 1px solid #CCCCCC;
|
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 15px 10px;
|
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 {
|
code .hljs-tag {
|
||||||
|
Reference in New Issue
Block a user