mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 18:46:09 +00:00
web/SidebarTab: fix double scale on press, hold, release
This commit is contained in:
parent
dfaef913c4
commit
a7b61dd24c
|
@ -67,6 +67,8 @@
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab :global(svg) {
|
.sidebar-tab :global(svg) {
|
||||||
|
@ -84,10 +86,12 @@
|
||||||
background: var(--sidebar-highlight);
|
background: var(--sidebar-highlight);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: none;
|
transform: none;
|
||||||
|
transition: none;
|
||||||
animation: pressButton 0.3s;
|
animation: pressButton 0.3s;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab:active {
|
.sidebar-tab:not(.active):active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue