Merge pull request #206 from igorkulman/code-block-formatting

Improved code block rendering when not using line numbers
This commit is contained in:
Michael Romero 2018-10-26 00:43:20 -07:00 committed by GitHub
commit f92ddf535d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ pre code.hljs {
border-radius: 4px;
}
.highlight td:first-child pre {
.highlight td:first-child pre, .highlight pre {
border-top-left-radius: 4px;
border-top-right-radius: unset;
border-bottom-left-radius: 4px;
@ -24,10 +24,10 @@ pre code.hljs {
overflow: hidden;
}
.highlight td:last-child pre {
.highlight td:last-child pre, .highlight pre {
border-radius: unset;
}
.highlight td:last-child pre code {
.highlight td:last-child pre code, .highlight pre code {
white-space: pre;
}