mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
web/SidebarTab: yet another attempt to fix blurriness on small res screens
This commit is contained in:
@ -26,6 +26,11 @@
|
||||
|
||||
$: if (isTabActive && tab) {
|
||||
showTab(tab);
|
||||
|
||||
tab.classList.add("animate")
|
||||
setTimeout(() => {
|
||||
tab.classList.remove("animate")
|
||||
}, 220)
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -70,11 +75,14 @@
|
||||
color: var(--sidebar-bg);
|
||||
background: var(--sidebar-highlight);
|
||||
opacity: 1;
|
||||
animation: pressButton 0.2s;
|
||||
transition: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
:global(.sidebar-tab.animate) {
|
||||
animation: pressButton 0.2s;
|
||||
}
|
||||
|
||||
.sidebar-tab:active:not(.active) {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
Reference in New Issue
Block a user