1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

css: fix border disappearing on code elements under headers

This commit is contained in:
RGBCube 2025-06-03 05:48:11 +03:00
parent 6cff5052a5
commit 5373cfa5df
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -230,10 +230,12 @@ html, body {
code:not(pre > code) { code:not(pre > code) {
@apply border-1 border-dotted px-2 py-0.5 border-black dark:border-white; @apply border-1 border-dotted px-2 py-0.5 border-black dark:border-white;
&:not(a code) {
a:hover &, a:active & { a:hover &, a:active & {
@apply border-transparent; @apply border-transparent;
} }
} }
}
pre code, pre code * { pre code, pre code * {
@apply whitespace-pre; @apply whitespace-pre;