Skip to content

Commit 05da217

Browse files
committed
fix: Style optimization
1 parent fb388b5 commit 05da217

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

frontend/src/style.less

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@
2525
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
2626
--ed-border-radius-base: 6px !important;
2727
--ed-border-color: #d9dcdf !important;
28+
}
29+
30+
:root:root {
2831
--ed-color-primary-light-7: #d2f1e9 !important;
2932
--ed-border-color: #d9dcdf !important;
3033
--ed-disabled-border-color: #d9dcdf !important;
3134
--ed-border-color-light: #dee0e3 !important;
3235
--ed-border-color-lighter: #dee0e3 !important;
36+
--ed-border-radius-base: 6px !important;
3337
}
3438

3539
a {
@@ -430,20 +434,19 @@ strong {
430434
border-radius: 6px;
431435
}
432436

433-
434437
.login-content {
435438
/* 针对 Webkit 浏览器的自动填充样式重置 */
436439
input:-webkit-autofill,
437440
input:-webkit-autofill:hover,
438441
input:-webkit-autofill:focus,
439442
input:-webkit-autofill:active {
440443
/* 1. 使用足够大的内阴影来覆盖背景色,把 #ffffff 替换成你输入框原本的背景色 */
441-
-webkit-box-shadow: 0 0 0px 1000px #f5f7fa inset !important;
444+
-webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
442445

443446
/* 2. 由于常规的 color 属性也会失效,需要用这个属性修改文字颜色 */
444447
-webkit-text-fill-color: #333333 !important;
445448

446449
/* 3. 保留光标的正常颜色 */
447450
caret-color: #333333;
448451
}
449-
}
452+
}

frontend/src/views/login/index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,7 @@ const switchTab = (name: string) => {
217217
.hide-login-container {
218218
display: none;
219219
}
220-
:deep(.ed-input__wrapper) {
221-
background-color: #f5f7fa;
222-
}
220+
223221
.xpack-login-handler-mask {
224222
position: fixed;
225223
width: 100vw;

0 commit comments

Comments
 (0)