1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-02 14:07:47 +00:00

headers: link it up

This commit is contained in:
RGBCube 2025-06-02 23:04:08 +03:00
parent 585e171415
commit 99c21c01c7
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
3 changed files with 69 additions and 29 deletions

View file

@ -160,19 +160,35 @@
}
a {
@apply inline-block wrap-anywhere text-[red] dark:text-[yellow] px-1 pb-0.75
border-2 border-[transparent] border-dashed;
@apply px-1 pb-0.75;
* {
@apply wrap-anywhere;
}
&:hover {
@apply border-[red] dark:border-[yellow];
& :where(h1, h2, h3, h4, h5, h6) {
@apply before:underline before:underline-offset-4;
* {
@apply inline-block;
}
&:hover::before {
@apply italic text-[red] dark:text-[yellow];
}
}
&:active {
@apply border-[fuchsia] dark:border-[springgreen] animate-to-the-future;
&:not(:has(h1, h2, h3, h4, h5, h6)) {
@apply inline-block wrap-anywhere text-[red] dark:text-[yellow] border-2
border-[transparent] border-dashed;
&:hover {
@apply border-[red] dark:border-[yellow];
}
&:active {
@apply border-[fuchsia] dark:border-[springgreen] animate-to-the-future;
}
}
}