forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoggle.ios.styl
More file actions
42 lines (39 loc) · 1.15 KB
/
toggle.ios.styl
File metadata and controls
42 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$toggle-width = 50px
$toggle-height = 32px
$toggle-span = 2px
$toggle-handle-size = $toggle-height - 2 * $toggle-span
.q-toggle-base
transition all .45s cubic-bezier(.23, 1, .32, 1)
width 100%
height $toggle-height
color $grey-2
background currentColor
border-radius 16px
border 2px solid $light
border 2px solid var(--q-color-light)
.q-toggle-base-dark
color darken($light, 10%)
color var(--q-color-light-d)
.q-toggle-handle
background white
box-shadow 0 3px 3px rgba(0, 0, 0, .2), 0 0 0 2px $light // @stylint ignore
box-shadow 0 3px 3px rgba(0, 0, 0, .2), 0 0 0 2px var(--q-color-light) // @stylint ignore
transition all 450ms cubic-bezier(.23, 1, .32, 1)
border-radius 50%
position absolute
top $toggle-span
left $toggle-span
width $toggle-handle-size
height $toggle-handle-size
line-height $toggle-handle-size
.q-toggle .q-option-inner
height $toggle-height
width $toggle-width
min-width $toggle-width
&.active
.q-toggle-base
color currentColor
border 0
.q-toggle-handle
box-shadow $shadow-2
left ($toggle-width - $toggle-handle-size - $toggle-span)