fix: polish Related Stories interactions
This commit is contained in:
3 files changed
+145
-14
No files matched your search
@@ -108,6 +108,23 @@ html[data-theme="light"] .chrnx-related-posts {
|
||||
box-shadow: 0 0 0 3px var(--chrnx-related-focus-ring);
|
||||
}
|
||||
|
||||
.chrnx-related-posts__controls button:not(:disabled):hover {
|
||||
border-color: var(--chrnx-related-focus-ring);
|
||||
background: color-mix(in srgb, var(--chrnx-related-control-background) 88%, var(--chrnx-related-control-text));
|
||||
}
|
||||
|
||||
.chrnx-related-posts__controls button:not(:disabled):active {
|
||||
background: color-mix(in srgb, var(--chrnx-related-control-background) 74%, var(--chrnx-related-control-text));
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
|
||||
.chrnx-related-posts.is-layout-carousel .chrnx-related-card:hover {
|
||||
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chrnx-green) 62%, transparent);
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
|
||||
.chrnx-related-posts.is-layout-adaptive .chrnx-related-posts__items {
|
||||
@@ -123,6 +140,14 @@ html[data-theme="light"] .chrnx-related-posts {
|
||||
flex: 0 0 calc(100% - clamp(3rem, 12vw, 7rem));
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
|
||||
.chrnx-related-posts.is-layout-adaptive .chrnx-related-card:hover {
|
||||
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chrnx-green) 62%, transparent);
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 901px) {
|
||||
|
||||
Reference in new issue
Block a user