mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-29 17:58:27 +00:00
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
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:
parent
b8c1c1fe51
commit
1374693c2f
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue