@@ -7,7 +7,7 @@ export default {
7
7
required: false ,
8
8
default: false
9
9
},
10
- },
10
+ }
11
11
};
12
12
</script >
13
13
@@ -54,9 +54,9 @@ export default {
54
54
border : solid 1px transparent ;
55
55
border-radius : 4px ;
56
56
cursor : pointer ;
57
- padding : 8px 14 px ;
58
- line-height : 28 px ;
59
- font-size : 20 px ;
57
+ padding : 8px 16 px ;
58
+ line-height : 1.9 rem ;
59
+ font-size : 1.4 rem ;
60
60
position : relative ;
61
61
-webkit-transition : all 0.2s ;
62
62
transition : all 0.2s ;
@@ -69,14 +69,14 @@ export default {
69
69
0 0 0 1.5px lightblue ;
70
70
}
71
71
.vue-loading-button :not (.loading ) {
72
- transition-delay : 0.3 s ;
72
+ transition-delay : 0.2 s ;
73
73
}
74
- .vue-loading-button > . spinner {
74
+ .spinner {
75
75
line-height : 1.15 ;
76
76
position : absolute ;
77
77
top : 50% ;
78
78
left : auto ;
79
- right : 1.2 em ;
79
+ right : 1.28 em ;
80
80
margin : -0.5em ;
81
81
-webkit-transition : all 0.2s ;
82
82
transition : all 0.2s ;
@@ -87,29 +87,46 @@ export default {
87
87
display : inline-block ;
88
88
position : absolute ;
89
89
right : 0 ;
90
- width : 20 px ;
91
- height : 20 px ;
90
+ width : 1.2 rem ;
91
+ height : 1.2 rem ;
92
92
opacity : 0 ;
93
- border : 4px solid #fff ;
93
+ border : 3. 4px solid #fff ;
94
94
border-radius : 50% ;
95
95
animation : spinner 1.2s cubic-bezier (0.5 , 0 , 0.5 , 1 ) infinite ;
96
96
border-color : #fff transparent transparent transparent ;
97
- -webkit-transition : opacity 0.3 s ;
98
- transition : opacity 0.3 s ;
97
+ -webkit-transition : opacity 0.2 s ;
98
+ transition : opacity 0.2 s ;
99
99
transition-timing-function : ease ;
100
- transition-delay : 0.2s ;
101
100
}
102
- .vue-loading-button :not ( .loading ) . spinner span {
103
- transition-delay : 0 s ;
101
+ .spinner span {
102
+ transition-delay : 0.2 s ;
104
103
}
105
104
.spinner span :nth-child (1 ) {
106
- animation-delay : - 0.45s ;
105
+ animation-delay : 0.45s ;
107
106
}
108
107
.spinner span :nth-child (2 ) {
109
- animation-delay : - 0.3s ;
108
+ animation-delay : 0.3s ;
110
109
}
111
110
.spinner span :nth-child (3 ) {
112
- animation-delay : -0.15s ;
111
+ animation-delay : 0.15s ;
112
+ }
113
+ .vue-loading-button :not (.loading ) .spinner span {
114
+ box-shadow : 0 0 0 .2rem rgba (255 , 255 , 255 , 1 );
115
+ border : 10.4px solid #fff ;
116
+ -webkit-transition : all 0.4s ;
117
+ transition : all 0.4s ;
118
+ }
119
+ .vue-loading-button :not (.loading ) .spinner span :nth-child (1 ) {
120
+ transform : rotate (0deg ) !important ;
121
+ }
122
+ .vue-loading-button :not (.loading ) .spinner span :nth-child (2 ) {
123
+ transform : rotate (90deg ) !important ;
124
+ }
125
+ .vue-loading-button :not (.loading ) .spinner span :nth-child (3 ) {
126
+ transform : rotate (180deg ) !important ;
127
+ }
128
+ .vue-loading-button :not (.loading ) .spinner span :nth-child (4 ) {
129
+ transform : rotate (270deg ) !important ;
113
130
}
114
131
@keyframes spinner {
115
132
0% {
@@ -120,7 +137,7 @@ export default {
120
137
}
121
138
}
122
139
.loading {
123
- padding-right : 2.5 em ;
140
+ padding-right : 2.3 em ;
124
141
}
125
142
.loading .spinner span {
126
143
opacity : 1 ;
0 commit comments