mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 22:11:56 +08:00
Chore: fix switch style
This commit is contained in:
parent
69bcbe07ee
commit
4320bc737b
@ -19,7 +19,7 @@ $width: 32px;
|
|||||||
background-color: $color-primary;
|
background-color: $color-primary;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
transform: translateX(-$switch-offset);
|
transform: translateX($width - $switch-radius + $switch-offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,13 +47,13 @@ $width: 32px;
|
|||||||
background-color: $color-white;
|
background-color: $color-white;
|
||||||
box-shadow: 0 0 8px rgba($color-primary-dark, 0.4);
|
box-shadow: 0 0 8px rgba($color-primary-dark, 0.4);
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
transform: translateX($width - $switch-radius + $switch-offset);
|
transform: translateX(-$switch-offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.switch-icon {
|
.switch-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
transform: translateX(13px) scale(0.4);
|
transform: translateX(-1px) scale(0.4);
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
line-height: $height;
|
line-height: $height;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user