Skip to content

Commit 3a34a3e

Browse files
committed
fix(syntax): code blocks with line numbers do not have the correct border radius
1 parent 0b50ab1 commit 3a34a3e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

static/css/code.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ div.highlight {
22
margin-bottom: 20px;
33
border-radius: var(--borderRadius);
44
}
5+
td.code div.highlight {
6+
border-radius: 0 var(--borderRadius) var(--borderRadius) 0;
7+
}
58
pre {
69
overflow: auto;
710
white-space: pre;
@@ -28,9 +31,6 @@ td {
2831
text-align: right;
2932
overflow: hidden;
3033
}
31-
td.code .highlight pre {
32-
border-radius: 0 var(--borderRadius) var(--borderRadius) 0;
33-
}
3434
td.code {
3535
width: 100%;
3636
}
@@ -48,4 +48,3 @@ table.highlighttable td {
4848
table.highlighttable tbody > tr:nth-child(odd) > td {
4949
background-color: transparent;
5050
}
51-

0 commit comments

Comments
 (0)