Skip to content

Commit

Permalink
Merge pull request eduardoboucas#206 from igorkulman/code-block-forma…
Browse files Browse the repository at this point in the history
…tting

Improved code block rendering when not using line numbers
  • Loading branch information
halogenica authored Oct 26, 2018
2 parents cc4b60a + fd911c3 commit f92ddf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/css/codeblock.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ 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;
border-bottom-right-radius: unset;
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;
}
}

0 comments on commit f92ddf5

Please sign in to comment.