Improved code block rendering when not using line numbers

This commit is contained in:
Igor Kulman 2018-10-19 14:03:44 +02:00
parent ad50c09fb6
commit fd911c39d2
No known key found for this signature in database
GPG Key ID: 9D77BAA2C356DFA2

View File

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