Improved code block rendering when not using line numbers
This commit is contained in:
parent
ad50c09fb6
commit
fd911c39d2
@ -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;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user