fix(frontend): animate full race list row on hover (li, not inner link)
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
Move scale/shadow transition to .race-card--action; keyboard focus ring on link. Version 0.4.2. Made-with: Cursor
This commit is contained in:
@@ -321,6 +321,15 @@ a {
|
||||
.race-card--action {
|
||||
padding: 0;
|
||||
overflow: visible;
|
||||
transition:
|
||||
transform 0.15s ease,
|
||||
box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.race-card--action:hover,
|
||||
.race-card--action:focus-within {
|
||||
transform: scale(1.02);
|
||||
box-shadow: var(--shadow-card-lift);
|
||||
}
|
||||
|
||||
.race-card__link-surface {
|
||||
@@ -333,16 +342,12 @@ a {
|
||||
border-radius: var(--radius-sm);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
transform 0.15s ease,
|
||||
box-shadow 0.15s ease;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.race-card--action:hover .race-card__link-surface,
|
||||
.race-card--action:focus-within .race-card__link-surface {
|
||||
transform: scale(1.02);
|
||||
box-shadow: var(--shadow-card-lift);
|
||||
outline: none;
|
||||
.race-card__link-surface:focus-visible {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.race-card__title-text {
|
||||
|
||||
Reference in New Issue
Block a user