From 6d18f7ab4d4eae71b7abc7e4d4bd5dd5a7febad3 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Tue, 15 Sep 2026 20:02:10 +0900 Subject: [PATCH] fix: keep text dark on form controls given a white background sanitize.css forms.css makes form controls inherit the text color, so the rules that put them back on white left white text wherever the surrounding panel sets it, as in the nimgsearch search panel and the open.neuroinf.jp advanced search. - set the text to black next to each white control background, matching how the browser drew the controls before sanitize.css --- src/common/assets/theme/style.css | 1 + src/d3forum/assets/d3forum_main.css | 1 + src/database/Database.module.css | 1 + src/database/blocks/IndexTree.module.css | 1 + 4 files changed, 4 insertions(+) diff --git a/src/common/assets/theme/style.css b/src/common/assets/theme/style.css index d24d19e..4323cbd 100644 --- a/src/common/assets/theme/style.css +++ b/src/common/assets/theme/style.css @@ -622,4 +622,5 @@ div.xoopsQuote { .leftcolumn .blockContent input[type="text"], .leftcolumn .blockContent select { background-color: #ffffff; + color: #000000; } diff --git a/src/d3forum/assets/d3forum_main.css b/src/d3forum/assets/d3forum_main.css index 7afce5f..7d12d60 100644 --- a/src/d3forum/assets/d3forum_main.css +++ b/src/d3forum/assets/d3forum_main.css @@ -199,6 +199,7 @@ form.d3f_form p input { form.d3f_form select, form.d3f_form input[type="submit"] { background-color: #ffffff; + color: #000000; } /* d3f_ctrl */ diff --git a/src/database/Database.module.css b/src/database/Database.module.css index 4c9bc0a..ae4e1d8 100644 --- a/src/database/Database.module.css +++ b/src/database/Database.module.css @@ -76,4 +76,5 @@ .database :global(.fieldDate input), .database :global(.listTable select) { background-color: #ffffff; + color: #000000; } diff --git a/src/database/blocks/IndexTree.module.css b/src/database/blocks/IndexTree.module.css index 7cd838d..8bebe62 100644 --- a/src/database/blocks/IndexTree.module.css +++ b/src/database/blocks/IndexTree.module.css @@ -18,6 +18,7 @@ margin: 3px 3px 10px; /* sanitize.css forms.css leaves buttons transparent */ background-color: #ffffff; + color: #000000; } .indexTree div span {