forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoggle.mat.styl
More file actions
36 lines (33 loc) · 897 Bytes
/
toggle.mat.styl
File metadata and controls
36 lines (33 loc) · 897 Bytes
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
$toggle-width = 40px
$toggle-height = 21px
$toggle-handle-size = $toggle-height
$toggle-base-height = round($toggle-handle-size / 1.7)
.q-toggle-base
transition all .45s cubic-bezier(.23, 1, .32, 1)
width 100%
height $toggle-base-height
border-radius 30px
background currentColor
opacity .5
.q-toggle-handle
background rgb(245, 245, 245)
transition all 450ms cubic-bezier(.23, 1, .32, 1)
box-shadow $shadow-1
border-radius 50%
position absolute
top 0
left 0
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
padding round(($toggle-height - $toggle-base-height) / 2) 0
&.active
.q-toggle-handle
background currentColor
left ($toggle-width - $toggle-handle-size)
.q-toggle-icon
color white