From f236119bd6d2311f2903f75096d2491ad431900b Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 24 Sep 2022 14:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/index.less | 43 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/src/layouts/index.less b/src/layouts/index.less index c1121680..9cf1ff8d 100644 --- a/src/layouts/index.less +++ b/src/layouts/index.less @@ -243,31 +243,28 @@ font-size: 13px; } -[data-dark='true'] { - /* Change autocomplete styles in WebKit */ - input:-webkit-autofill, - input:-webkit-autofill:hover, - input:-webkit-autofill:focus, - textarea:-webkit-autofill, - textarea:-webkit-autofill:hover, - textarea:-webkit-autofill:focus, - select:-webkit-autofill, - select:-webkit-autofill:hover, - select:-webkit-autofill:focus { - border: 1px solid @border-color-base; - box-shadow: none; - transition: background-color 5000s ease-in-out 0s; - -webkit-text-fill-color: @text-color; - caret-color: #e8e6f3 !important; - } +/* Change autocomplete styles in WebKit */ +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus, +textarea:-webkit-autofill, +textarea:-webkit-autofill:hover, +textarea:-webkit-autofill:focus, +select:-webkit-autofill, +select:-webkit-autofill:hover, +select:-webkit-autofill:focus { + border: none; + box-shadow: none; + transition: background-color 5000s ease-in-out 0s; + -webkit-text-fill-color: @text-color; +} - ::placeholder { - opacity: 0.5 !important; - } +::placeholder { + opacity: 0.5 !important; +} - .ant-select-selection-placeholder { - opacity: 0.5 !important; - } +.ant-select-selection-placeholder { + opacity: 0.5 !important; } .ant-pro-basicLayout-content {