Skip to content

Commit 3d12e70

Browse files
authored
Merge pull request #3 from AmyFoxFN/scroll-enhance
update switch UI
2 parents 836870e + 1de5dfa commit 3d12e70

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

example/components/input-option/input-option.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
height: 100%
3838
justify-content space-between
3939
align-items stretch
40-
padding-left: 15px
4140
.name
4241
flex: 0 0 auto
43-
width: 8rem
42+
width: 120px
43+
padding-left: 10px
4444
display inline-flex
4545
align-items center
4646
input
4747
flex: 1 1 auto
48-
padding-left: 0.8rem
48+
padding-left: 10px
4949
background-color: $color-white
5050
border-left: 1px solid rgba(0, 0, 0, .1)
5151
box-shadow: 0 0 1px 1px #eee inset

example/components/select-option/select-option.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
height: 100%
4444
justify-content space-between
4545
align-items stretch
46-
padding-left: 15px
4746
.name
4847
flex: 0 0 auto
49-
width: 8rem
48+
width: 120px
5049
display inline-flex
50+
padding-left: 10px
5151
align-items center
5252
select
5353
flex: 1 1 auto
54-
padding-left: 0.8rem
54+
padding-left: 10rem
5555
background-color: $color-white
5656
border: none
5757
border-left: 1px solid rgba(0, 0, 0, .1)

example/components/switch-option/switch-option.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
margin-top: 5px
5555
display: inline-block
5656
position: relative
57-
height: 31px
58-
width: 51px
57+
height: 22px
58+
width: 36px
5959
background-color: $color-white
6060
border-radius: 1000px
6161
border: 2px solid rgba(0, 0, 0, .1)
@@ -67,8 +67,8 @@
6767
.switch-circle
6868
position: absolute
6969
display: inline-block
70-
height: 27px
71-
width: 27px
70+
height: 20px
71+
width: 20px
7272
background: white
7373
border-radius: 50%
7474
border: 1px solid rgba(0, 0, 0, .1)
@@ -77,7 +77,9 @@
7777
left: 0
7878
transition: all 0.3s
7979
&.active
80-
left: 21px
81-
transition: all 0.4s ease 0.1s
80+
left: 14px
81+
border: 1px solid $color-white
82+
box-shadow: -1px 1px 1px $color-dark-orange
83+
transition: all 0.3s ease 0.05s
8284
8385
</style>

0 commit comments

Comments
 (0)