Skip to content

Commit 07b7623

Browse files
committed
fix(Login): After entering your information in the input box, there should be no light blue background.
1 parent 45b63d3 commit 07b7623

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

frontend/src/style.less

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,22 @@ strong {
428428

429429
.ed-tree-node__content {
430430
border-radius: 4px;
431+
}
432+
433+
434+
.login-content {
435+
/* 针对 Webkit 浏览器的自动填充样式重置 */
436+
input:-webkit-autofill,
437+
input:-webkit-autofill:hover,
438+
input:-webkit-autofill:focus,
439+
input:-webkit-autofill:active {
440+
/* 1. 使用足够大的内阴影来覆盖背景色,把 #ffffff 替换成你输入框原本的背景色 */
441+
-webkit-box-shadow: 0 0 0px 1000px #f5f7fa inset !important;
442+
443+
/* 2. 由于常规的 color 属性也会失效,需要用这个属性修改文字颜色 */
444+
-webkit-text-fill-color: #333333 !important;
445+
446+
/* 3. 保留光标的正常颜色 */
447+
caret-color: #333333;
448+
}
431449
}

0 commit comments

Comments
 (0)