web/Toggle: make the toggle stretchy
Some checks failed
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled

This commit is contained in:
wukko 2024-11-20 16:06:48 +06:00
parent b8c1c1fe51
commit 1374693c2f
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -34,7 +34,7 @@
background: var(--white);
border-radius: 100px;
transform: translateX(0%);
transition: transform 0.2s;
transition: transform 0.2s, width 0.2s;
}
.toggle.enabled {
@ -44,4 +44,8 @@
.toggle.enabled .toggle-switcher {
transform: translateX(var(--enabled-pos));
}
:global(.toggle-container:active .toggle:not(.enabled) .toggle-switcher) {
width: calc(var(--base-size) * 1.3);
}
</style>