@@ -142,36 +142,50 @@ export default {
142
142
</script >
143
143
144
144
<style rel="stylesheet/scss" lang="scss">
145
- $bg :#2d3a4b ;
146
- $light_gray :#eee ;
145
+ /* 修复input 背景不协调 和光标变色 */
146
+ /* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
147
+
148
+ $bg :#283443 ;
149
+ $light_gray :#eee ;
150
+ $cursor : #fff ;
147
151
148
- /* reset element-ui css */
149
- .login-container {
150
- .el-input {
151
- display : inline-block ;
152
- height : 47px ;
153
- width : 85% ;
154
- input {
155
- background : transparent ;
156
- border : 0px ;
157
- -webkit-appearance : none ;
158
- border-radius : 0px ;
159
- padding : 12px 5px 12px 15px ;
160
- color : $light_gray ;
161
- height : 47px ;
162
- & :-webkit-autofill {
163
- -webkit-box-shadow : 0 0 0px 1000px $bg inset !important ;
164
- -webkit-text-fill-color : #fff !important ;
152
+ @supports (-webkit-mask : none ) and (not (cater-color : $cursor )) {
153
+ .login-container .el-input input {
154
+ color : $cursor ;
155
+ & ::first-line {
156
+ color : $light_gray ;
165
157
}
166
158
}
167
159
}
168
- .el-form-item {
169
- border : 1px solid rgba (255 , 255 , 255 , 0.1 );
170
- background : rgba (0 , 0 , 0 , 0.1 );
171
- border-radius : 5px ;
172
- color : #454545 ;
160
+
161
+ /* reset element-ui css */
162
+ .login-container {
163
+ .el-input {
164
+ display : inline-block ;
165
+ height : 47px ;
166
+ width : 85% ;
167
+ input {
168
+ background : transparent ;
169
+ border : 0px ;
170
+ -webkit-appearance : none ;
171
+ border-radius : 0px ;
172
+ padding : 12px 5px 12px 15px ;
173
+ color : $light_gray ;
174
+ height : 47px ;
175
+ caret-color : $cursor ;
176
+ & :-webkit-autofill {
177
+ -webkit-box-shadow : 0 0 0px 1000px $bg inset !important ;
178
+ -webkit-text-fill-color : $cursor !important ;
179
+ }
180
+ }
181
+ }
182
+ .el-form-item {
183
+ border : 1px solid rgba (255 , 255 , 255 , 0.1 );
184
+ background : rgba (0 , 0 , 0 , 0.1 );
185
+ border-radius : 5px ;
186
+ color : #454545 ;
187
+ }
173
188
}
174
- }
175
189
</style >
176
190
177
191
<style rel="stylesheet/scss" lang="scss" scoped>
@@ -216,7 +230,6 @@ $light_gray:#eee;
216
230
position : relative ;
217
231
.title {
218
232
font-size : 26px ;
219
- font-weight : 400 ;
220
233
color : $light_gray ;
221
234
margin : 0px auto 40px auto ;
222
235
text-align : center ;
0 commit comments