feat(article-link): reimplement card hover using ::before method

The previous method was not intuitive since there was nothing in the <a> tag,
and required group-xxx classes for every element.

The new pseudo element method fixes those problems, see:

https://kittygiraudel.com/2022/04/02/accessible-cards/
This commit is contained in:
ZhenShuo Leo
2025-09-06 14:50:24 +08:00
parent 8911ac843a
commit b1b7aa1f42
6 changed files with 89 additions and 101 deletions

View File

@@ -278,8 +278,3 @@ pre {
text-decoration-thickness: 3px;
text-underline-offset: 4px;
}
/* Cancel group hover if .group-hover-card contains .group-hover-cancel*/
.group-hover-card:hover:has(.group-hover-cancel:hover) .group-hover-card-title {
text-decoration: none !important;
}