fix: contain focused Related Stories cards

This commit is contained in:
chrnx committed 2026-08-12 23:20:13 -05:00
1 parent 67850849d1
commit 8fb87bf221
2 files changed
+18 -2

No files matched your search

+8 -2
View File
@@ -123,9 +123,12 @@ html[data-theme="light"] .chrnx-related-posts {
@media (hover: hover) {
.chrnx-related-posts.is-layout-carousel .chrnx-related-card:hover {
transform: none;
}
.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,9 +150,12 @@ html[data-theme="light"] .chrnx-related-posts {
@media (hover: hover) {
.chrnx-related-posts.is-layout-adaptive .chrnx-related-card:hover {
transform: none;
}
.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;
}
}
}