improve code display styles
This commit is contained in:
parent
142e8cbf2f
commit
6fad724420
1 changed files with 7 additions and 1 deletions
|
|
@ -148,9 +148,15 @@ code {
|
|||
background: var(--bg);
|
||||
border: 1px solid var(--fg);
|
||||
border-radius: var(--roundness);
|
||||
margin: 0.2em;
|
||||
padding: 0 0.2em;
|
||||
|
||||
& pre,
|
||||
pre & {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.2em;
|
||||
}
|
||||
|
||||
&.pre {
|
||||
white-space: pre;
|
||||
display: block;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue