Adjust styles for monospace text and code blocks
This commit is contained in:
parent
618d3f096f
commit
1f2cea72fc
|
@ -112,17 +112,20 @@ figcaption {
|
|||
}
|
||||
|
||||
code {
|
||||
font-family: var(--ff-monospace), ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; ;
|
||||
font-family: var(--ff-monospace), ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
|
||||
}
|
||||
|
||||
:not(pre) > code {
|
||||
color: var(--clr-bold-txt);
|
||||
padding: 0 0.15em;
|
||||
padding: 0.125em 0.25em;
|
||||
}
|
||||
|
||||
:not(pre) > code,
|
||||
pre {
|
||||
background-color: var(--clr-code-bg);
|
||||
}
|
||||
|
||||
pre {
|
||||
border: 0.07em solid var(--clr-code-border);
|
||||
background: var(--clr-code-bg);
|
||||
border: 0.1em solid var(--clr-code-border);
|
||||
max-width: 90vw;
|
||||
overflow: auto;
|
||||
padding: 1rem;
|
||||
|
|
Loading…
Reference in New Issue