Change color of the hovered navbar element, remove underline on all navbar elements

This commit is contained in:
Jeder 2023-09-03 22:15:15 +02:00 committed by Laura Hausmann
parent bfc452658a
commit fb4848f960
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -388,6 +388,10 @@ function more(ev: MouseEvent) {
> .middle {
flex: 0.1;
> a {
text-decoration: none;
}
> .divider {
margin: 16px 16px;
border-top: solid 0.5px var(--divider);
@ -427,17 +431,6 @@ function more(ev: MouseEvent) {
text-overflow: ellipsis;
}
&:hover,
&:focus-within {
text-decoration: none;
color: var(--navHoverFg);
transition: all 0.4s ease;
}
&.active {
color: var(--navActive);
}
&:hover,
&:focus-within,
&.active {
@ -456,6 +449,18 @@ function more(ev: MouseEvent) {
right: 0;
bottom: 0;
border-radius: 999px;
}
}
&:hover,
&:focus-within {
&:before {
background: var(--panelHighlight);
}
}
&.active {
&:before {
background: var(--accentedBg);
}
}
@ -568,6 +573,10 @@ function more(ev: MouseEvent) {
> .middle {
flex: 0.1;
> a {
text-decoration: none;
}
> .divider {
margin: 8px auto;
width: calc(100% - 32px);
@ -620,7 +629,6 @@ function more(ev: MouseEvent) {
right: 0;
bottom: 0;
border-radius: 999px;
background: var(--accentedBg);
}
> .icon,
@ -628,6 +636,19 @@ function more(ev: MouseEvent) {
opacity: 1;
}
}
&:hover,
&:focus-within {
&:before {
background: var(--panelHighlight);
}
}
&.active {
&:before {
background: var(--accentedBg);
}
}
}
}
}