give <code> outside of <pre> a bg/border too

This commit is contained in:
rhiannon morris 2024-09-26 15:56:31 +02:00
parent 037384723d
commit 0a0c5468f7

View file

@ -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%);
}