From 4f3b839ea82311fb5d2ce86615590ff59894d306 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Tue, 15 Sep 2026 20:02:09 +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 736f122..1d26229 100644 --- a/src/common/assets/theme/style.css +++ b/src/common/assets/theme/style.css @@ -514,4 +514,5 @@ table.report { .leftcolumn .blockContent select, .leftcolumn .blockContent .formButton { 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 9591694..1e571f7 100644 --- a/src/database/Database.module.css +++ b/src/database/Database.module.css @@ -77,4 +77,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 {