]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] WebUI: Restore hover colors for symbols 5742/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 11 Nov 2025 17:47:18 +0000 (20:47 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 11 Nov 2025 17:47:18 +0000 (20:47 +0300)
Fix regression introduced in #5725 where symbol hover states were
unified to a single color, losing the visual distinction between symbol types.

interface/css/rspamd.css

index a43f1e5e1c31982f1a21c0ddf688e8614c59ab41..49002438505e0aca41f05de95c4a4ef1e003c459 100644 (file)
@@ -49,6 +49,11 @@ THE SOFTWARE.
     --rspamd-table-warning-bg: #fff8e6;
     --rspamd-bs-table-bg: #f8f9fa;
 
+    /* Per-type hover colors (light theme) */
+    --rspamd-symbol-negative-hover-bg: #dcf9d3;
+    --rspamd-symbol-positive-hover-bg: #fbd6d1;
+    --rspamd-symbol-special-hover-bg: #cddbff;
+
     /* Light mode logo display rules */
     --rspamd-display-logo-light: inline;
     --rspamd-display-logo-dark: none;
@@ -72,6 +77,11 @@ THE SOFTWARE.
     --rspamd-table-warning-bg: #43380b;
     --rspamd-bs-table-bg: #272b2f;
 
+    /* Per-type hover colors (dark theme) */
+    --rspamd-symbol-negative-hover-bg: #274f27;
+    --rspamd-symbol-positive-hover-bg: #4b2b2b;
+    --rspamd-symbol-special-hover-bg: #41426a;
+
     /* Dark mode logo display rules */
     --rspamd-display-logo-light: none;
     --rspamd-display-logo-dark: inline;
@@ -347,13 +357,13 @@ table#symbolsTable input[type="number"] {
     background-color: var(--rspamd-symbol-special-bg);
 }
 .symbol-negative:hover {
-    background-color: var(--rspamd-symbol-hover-bg);
+    background-color: var(--rspamd-symbol-negative-hover-bg);
 }
 .symbol-positive:hover {
-    background-color: var(--rspamd-symbol-hover-bg);
+    background-color: var(--rspamd-symbol-positive-hover-bg);
 }
 .symbol-special:hover {
-    background-color: var(--rspamd-symbol-hover-bg);
+    background-color: var(--rspamd-symbol-special-hover-bg);
 }
 
 /* For symbol description display on hover/focus */