fix: contain focused Related Stories cards
This commit is contained in:
2 files changed
+18
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user