From f6c9a4e1176b16924b387b0f97cfb813d2fe3282 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 1 Jun 2023 11:01:33 +0200 Subject: [PATCH] fix form input autofill style --- src/styles/forms.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/styles/forms.scss b/src/styles/forms.scss index ad3781c..4a7dbbb 100644 --- a/src/styles/forms.scss +++ b/src/styles/forms.scss @@ -32,3 +32,17 @@ input[type=text], input[type=password], input[type=email], input[type=number], i border-bottom: 5px solid $fg-color; } } + +/*Remove Yellow background on input in Firefox*/ +input { + filter: none; +} + +input:autofill { + background: none; +} +/*Remove background on input autofill in Chrome*/ +input:-webkit-autofill { + -webkit-box-shadow: 0 0 0 1000px $bg-color inset; + -webkit-text-fill-color: $fg-color; +} \ No newline at end of file