mirror of https://github.com/vector-im/riot-web
Merge pull request #4546 from JorikSchellekens/joriks/font-scaling-regressions
Fix slider toggle regression.pull/21833/head
commit
d62e6ed05d
|
@ -34,7 +34,7 @@ $font-16px: 1.067rem;
|
|||
$font-17px: 1.133rem;
|
||||
$font-18px: 1.200rem;
|
||||
$font-19px: 1.267rem;
|
||||
$font-20px: 1.333rem;
|
||||
$font-20px: 1.3333333rem;
|
||||
$font-21px: 1.400rem;
|
||||
$font-22px: 1.467rem;
|
||||
$font-23px: 1.533rem;
|
||||
|
|
|
@ -24,11 +24,6 @@ limitations under the License.
|
|||
|
||||
background-color: $togglesw-off-color;
|
||||
opacity: 0.5;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mx_ToggleSwitch_enabled {
|
||||
|
@ -38,16 +33,18 @@ limitations under the License.
|
|||
|
||||
.mx_ToggleSwitch.mx_ToggleSwitch_on {
|
||||
background-color: $togglesw-on-color;
|
||||
|
||||
> .mx_ToggleSwitch_ball {
|
||||
left: calc(100% - $font-20px);
|
||||
}
|
||||
}
|
||||
|
||||
.mx_ToggleSwitch_ball {
|
||||
transition: left 0.15s ease-out 0.1s;
|
||||
position: relative;
|
||||
width: $font-20px;
|
||||
height: $font-20px;
|
||||
border-radius: $font-20px;
|
||||
background-color: $togglesw-ball-color;
|
||||
}
|
||||
|
||||
.mx_ToggleSwitch_on {
|
||||
flex-direction: row-reverse;
|
||||
transition: left 0.15s ease-out 0.1s;
|
||||
left: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue