slightly improved code line highlight
- at least the highlight covers all text now
This commit is contained in:
parent
545cf9c857
commit
85e433aa5d
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,6 @@ const codeCSS = css`
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* https://stackoverflow.com/a/48694906/12979111 */
|
|
||||||
pre > code {
|
pre > code {
|
||||||
font-family: ${theming.font.code};
|
font-family: ${theming.font.code};
|
||||||
border: ${(props) =>
|
border: ${(props) =>
|
||||||
|
@ -77,6 +76,7 @@ const codeCSS = css`
|
||||||
})};
|
})};
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
|
min-width: min-content;
|
||||||
margin: 0 -1rem;
|
margin: 0 -1rem;
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue