mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-27 05:28:49 +01:00
web: fix PageNavTab & SidebarTab bg flicker on selection
it used to be: normal-> hover -> pressed -> hover -> active but now it's: normal -> hover -> pressed -> active
This commit is contained in:
parent
24a75eaf80
commit
0ae5cad2f5
2 changed files with 6 additions and 3 deletions
|
@ -129,12 +129,14 @@
|
||||||
background-color: var(--button-hover-transparent);
|
background-color: var(--button-hover-transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab:active:not(.active) {
|
.sidebar-tab:active:not(.active),
|
||||||
|
.sidebar-tab:focus:hover:not(.active) {
|
||||||
background-color: var(--button-press-transparent);
|
background-color: var(--button-press-transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab:hover:not(.active),
|
.sidebar-tab:hover:not(.active),
|
||||||
.sidebar-tab:active:not(.active) {
|
.sidebar-tab:active:not(.active),
|
||||||
|
.sidebar-tab:focus:hover:not(.active) {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
box-shadow: 0 0 0 1.5px var(--sidebar-stroke) inset;
|
box-shadow: 0 0 0 1.5px var(--sidebar-stroke) inset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.subnav-tab:active {
|
.subnav-tab:active,
|
||||||
|
.subnav-tab:focus:hover:not(.active) {
|
||||||
background: var(--button-press-transparent);
|
background: var(--button-press-transparent);
|
||||||
box-shadow: var(--button-box-shadow);
|
box-shadow: var(--button-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue