mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-02 08:26:22 +01:00
web/Toggle: make the toggle stretchy
This commit is contained in:
parent
b8c1c1fe51
commit
1374693c2f
1 changed files with 5 additions and 1 deletions
|
@ -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