1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-29 20:17:46 +00:00

css: fix border transparency stuff

This commit is contained in:
RGBCube 2025-06-25 18:28:49 +03:00
parent 5e66ce06ce
commit 3d082a541d
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -171,7 +171,7 @@ body {
@apply wrap-anywhere;
}
&:not(:has(> code:only-child)):not(:has(> img)) {
&:not(:has(> code:only-child), :has(> img)) {
@apply px-1;
&:not(.font-mono) {
@ -230,8 +230,8 @@ body {
code:not(pre > code) {
@apply border-1 border-dotted px-2 py-0.5 border-black dark:border-white;
a:hover &:not(:only-child, :is(h1, h2, h3, h4, h5, h6) *),
a:active &:not(:only-child, :is(h1, h2, h3, h4, h5, h6) *) {
a:is(:hover, :active) /* TODO: :only-child selector doesn't have effect. */
&:not(:where(h1, h2, h3, h4, h5, h6) code):only-child {
@apply border-transparent;
}
}