fix: preserve Related Stories focus on hover

This commit is contained in:
chrnx committed 2026-08-12 23:13:15 -05:00
1 parent 5957bd566b
commit 67850849d1
2 files changed
+57 -3

No files matched your search

+3 -3
View File
@@ -44,7 +44,7 @@ html[data-theme="light"] .chrnx-related-posts {
min-width: 0;
}
.chrnx-related-card:focus-within {
.chrnx-related-posts .chrnx-related-card:focus-within {
box-shadow: inset 0 0 0 3px var(--chrnx-related-focus-ring);
}
@@ -123,7 +123,7 @@ html[data-theme="light"] .chrnx-related-posts {
@media (hover: hover) {
.chrnx-related-posts.is-layout-carousel .chrnx-related-card:hover {
.chrnx-related-posts.is-layout-carousel .chrnx-related-card:hover:not(:focus-within) {
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chrnx-green) 62%, transparent);
transform: none;
}
@@ -147,7 +147,7 @@ html[data-theme="light"] .chrnx-related-posts {
@media (hover: hover) {
.chrnx-related-posts.is-layout-adaptive .chrnx-related-card:hover {
.chrnx-related-posts.is-layout-adaptive .chrnx-related-card:hover:not(:focus-within) {
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chrnx-green) 62%, transparent);
transform: none;
}