Skip to content

Commit 10d93a2

Browse files
author
venizelou andreas
committed
Menu filter, indicator
1 parent 2514d51 commit 10d93a2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Protest/Front/ui.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@
177177

178178
#menufilterdot {
179179
position: absolute;
180+
z-index: -1;
180181
left: 156px;
181182
top: 112px;
182183
background-color: var(--clr-accent);
@@ -189,6 +190,16 @@
189190
transition-timing-function: cubic-bezier(.2,.8,.3,1.2);
190191
}
191192

193+
#menufilterdot.focused::before {
194+
content: "";
195+
position: absolute;
196+
width: 100%;
197+
height: 32px;
198+
border-radius: 4px;
199+
background-color: var(--clr-transparent);
200+
transform: translateY(-35px);
201+
}
202+
192203
#menulist {
193204
position: absolute;
194205
left: 6px;

Protest/Front/ui.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,8 @@ keyMux:
12391239
break;
12401240
}
12411241

1242+
menufilterdot.className = MENU.index === -1 ? "focused" : "";
1243+
12421244
if (MENU.list.length > 0
12431245
&& MENU.index > -1
12441246
&& (event.key==="ArrowUp" || event.key==="ArrowDown" || event.key==="ArrowLeft" || event.key==="ArrowRight")) { //scroll into view

0 commit comments

Comments
 (0)