give <code> outside of <pre> a bg/border too
This commit is contained in:
parent
037384723d
commit
0a0c5468f7
1 changed files with 13 additions and 7 deletions
|
@ -216,18 +216,24 @@ td, th {
|
|||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
code {
|
||||
|
||||
pre, code {
|
||||
font-family: PragmataPro;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
pre, :not(pre) > code {
|
||||
background: hsla(0deg 0% 100% / 40%);
|
||||
border: 2px dotted color-mix(in srgb, currentcolor 75%, transparent);
|
||||
}
|
||||
|
||||
:not(pre) > code { padding: 0 5px; }
|
||||
|
||||
pre {
|
||||
clear: both;
|
||||
width: min-content;
|
||||
margin: 0.5em auto;
|
||||
padding: 0.5em 0.8em;
|
||||
border: 1px solid var(--fg);
|
||||
background: hsla(0deg, 0%, 100%, 40%);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue