Skip to content

Commit 98435ef

Browse files
committed
highlight active card when spoilers are hidden
1 parent 2cef7f3 commit 98435ef

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

frontend/src/app.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ input[type="checkbox"]:checked::after {
168168
rect.card,
169169
line.arrow,
170170
// "line.arrow +" is required to override leaflet's style for "svg path" with "pointer-events: none"
171-
line.arrow+path.arrow {
171+
line.arrow + path.arrow {
172172
@extend %pointer;
173173

174174
pointer-events: auto;
@@ -195,7 +195,7 @@ line.arrow:hover,
195195
// hover on arrow head
196196
line.arrow:has(+ path.arrow:hover),
197197
// connection is active
198-
svg.active>line.arrow {
198+
svg.active > line.arrow {
199199
stroke: $arrow-color-hover;
200200

201201
& + path.arrow {
@@ -308,7 +308,10 @@ main.hide-spoilers {
308308
fill: list.nth($other-color, 1);
309309
}
310310

311-
& svg:hover > .card {
311+
// card is hovered
312+
& svg:hover > .card,
313+
// card is opened
314+
& svg.active > .card {
312315
fill: list.nth($other-color, 2);
313316
}
314317
}

0 commit comments

Comments
 (0)