From fb6fd5b5b2f5d808b17ae8ce767f0b9b45c68767 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 13 Mar 2025 03:06:22 +0530 Subject: [PATCH] (fix:input) unwanted autocomplete style --- frontend/src/index.css | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 85d6fced..e918b3a4 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -485,25 +485,24 @@ template { ::-webkit-scrollbar { width: 10; } - -input:-webkit-autofill { - -webkit-box-shadow: 0 0 0 50px white inset; +/* Light mode specific autofill styles */ +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus, +input:-webkit-autofill:active { + -webkit-text-fill-color: #343541 !important; /* jet color */ + -webkit-box-shadow: 0 0 0 30px white inset !important; + transition: background-color 5000s ease-in-out 0s; } -input:-webkit-autofill:focus { - -webkit-box-shadow: 0 0 0 50px white inset; -} - -@media (prefers-color-scheme: dark) { - input:-webkit-autofill { - -webkit-box-shadow: 0 0 0 50px rgb(68, 70, 84) inset; - -webkit-text-fill-color: white; - } - - input:-webkit-autofill:focus { - -webkit-box-shadow: 0 0 0 50px rgb(68, 70, 84) inset; - -webkit-text-fill-color: white; - } +/* Dark mode specific autofill styles */ +.dark input:-webkit-autofill, +.dark input:-webkit-autofill:hover, +.dark input:-webkit-autofill:focus, +.dark input:-webkit-autofill:active { + -webkit-text-fill-color: white !important; + -webkit-box-shadow: 0 0 0 30px #202124 inset !important; /* raisin-black */ + transition: background-color 5000s ease-in-out 0s; } .inputbox-style {