Merge pull request #204 from azriel91/improve-code-rendering

Improved codeblock rendering.
This commit is contained in:
Michael Romero 2018-10-16 23:48:19 -07:00 committed by GitHub
commit 96c6488f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,33 @@
/* --- Code blocks --- */
.chroma .ln {
margin-right: 0.8em;
padding: 0 0.4em 0 0.4em;
.chroma .ln {
margin-right: 0.8em;
padding: 0 0.4em 0 0.4em;
}
pre code.hljs {
padding: 9.5px;
}
.highlight tr, .highlight pre {
border: none;
}
.highlight div:first-child {
border-radius: 4px;
}
.highlight td:first-child pre {
border-top-left-radius: 4px;
border-top-right-radius: unset;
border-bottom-left-radius: 4px;
border-bottom-right-radius: unset;
overflow: hidden;
}
.highlight td:last-child pre {
border-radius: unset;
}
.highlight td:last-child pre code {
white-space: pre;
}