fix code blocks on mobile
This commit is contained in:
parent
77bfaf2e97
commit
630b8772e1
1 changed files with 6 additions and 2 deletions
|
@ -21,11 +21,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
padding: 1rem 0.5rem;
|
padding: 0.5rem 0.75rem;
|
||||||
margin: 0.5rem 0 ;
|
margin: 0.5rem 0 ;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
color: rgb(var(--ctp-text));
|
color: rgb(var(--ctp-text));
|
||||||
background-color: rgb(var(--ctp-base));
|
background-color: rgb(var(--ctp-crust));
|
||||||
outline: 1px solid rgb(var(--ctp-surface0));
|
outline: 1px solid rgb(var(--ctp-surface0));
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
font-family: monospace, monospace;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue