diff --git a/src/styles/components/ant-input.scss b/src/styles/components/ant-input.scss index 1f99625..7327837 100644 --- a/src/styles/components/ant-input.scss +++ b/src/styles/components/ant-input.scss @@ -20,6 +20,7 @@ color: var(--Text-4, #939499); } + &:hover { background-color: #fff !important; } @@ -43,6 +44,15 @@ border-color: $color-error !important; } } + + &:-webkit-autofill, + &:-webkit-autofill:hover, + &:-webkit-autofill:focus, + &:-webkit-autofill:active { + -webkit-transition-delay: 99999s; + -webkit-transition: color 99999s ease-out, + background-color 99999s ease-out; + } } input.ant-input { height: 32px; @@ -64,11 +74,17 @@ textarea.ant-input { background-color: var(--BG-200, #f2f3f5) !important; } - &.ant-input-affix-wrapper-status-error { - &:not(.ant-input-affix-wrapper-disabled) { + &:not(.ant-input-affix-wrapper-disabled) { + &.ant-input-affix-wrapper-status-error { border-color: $color-error !important; } + + &:hover { + border-color: $color-primary !important; + } } + + &:focus, &-focused { box-shadow: none !important; diff --git a/src/views/login/components/login-form/index.vue b/src/views/login/components/login-form/index.vue index 3630f5a..bbc29ba 100644 --- a/src/views/login/components/login-form/index.vue +++ b/src/views/login/components/login-form/index.vue @@ -67,14 +67,18 @@ 登录