From 61f92f89ea9c26d8f55de6a1d89bdfeb87dce8f8 Mon Sep 17 00:00:00 2001 From: MeladJM Date: Tue, 29 Jul 2025 04:52:30 +0800 Subject: [PATCH] Issue #2790 - Part 7: Setting of contrasting color and fixing of last commit's issues --- layout/style/res/forms.css | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/layout/style/res/forms.css b/layout/style/res/forms.css index e704ba40fb..8d8c53e148 100644 --- a/layout/style/res/forms.css +++ b/layout/style/res/forms.css @@ -106,6 +106,14 @@ input { overflow-clip-box: content-box; } +/* Autofill highlight - placed immediately after base input styles */ +input:-moz-autofill-highlight, +select:-moz-autofill-highlight, +textarea:-moz-autofill-highlight { + background-color: #fffcd0 !important; + color: #090909; +} + input > .anonymous-div, input::placeholder { word-wrap: normal !important; @@ -1148,22 +1156,4 @@ input[type="number"] > div > div > div:hover { input[type="date"], input[type="time"] { overflow: hidden !important; -} - -input[type="text"]:-moz-autofill-highlight, -input[type="email"]:-moz-autofill-highlight, -input[type="password"]:-moz-autofill-highlight, -input[type="search"]:-moz-autofill-highlight, -input[type="tel"]:-moz-autofill-highlight, -input[type="url"]:-moz-autofill-highlight, -input[type="number"]:-moz-autofill-highlight, -input[type="date"]:-moz-autofill-highlight, -input[type="time"]:-moz-autofill-highlight, -input[type="datetime-local"]:-moz-autofill-highlight, -input[type="month"]:-moz-autofill-highlight, -input[type="week"]:-moz-autofill-highlight, -select:-moz-autofill-highlight, -textarea:-moz-autofill-highlight { - background-color: #fffcd0 !important; -} - +} \ No newline at end of file