luci-theme-bootstrap: add dropdown option hover styles
authorJo-Philipp Wich <jo@mein.io>
Sun, 18 Feb 2024 22:22:58 +0000 (23:22 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 18 Feb 2024 23:04:16 +0000 (00:04 +0100)
Subsequent commits will drop the JS based mouse following focus behavior,
so add appropriate replacement CSS hover styles.

Ref: #6903
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css

index f1b6dccab248ced1636c1a1e7ff99e9d3a262fb1..e4a669a43f61e863c9e1eb4b6113d134c3be7731 100644 (file)
@@ -1716,12 +1716,14 @@ body.modal-overlay-active #modal_overlay {
        color: var(--on-primary-color);
 }
 
-.cbi-dropdown[open] > ul.dropdown > li.focus {
+.cbi-dropdown[open] > ul.dropdown > li.focus,
+.cbi-dropdown[open] > ul.dropdown > li:hover {
        background: var(--primary-color-low);
        color: var(--on-primary-color);
 }
 
-.cbi-dropdown[open] > ul.dropdown > li[selected].focus {
+.cbi-dropdown[open] > ul.dropdown > li[selected].focus,
+.cbi-dropdown[open] > ul.dropdown > li[selected]:hover {
        background: linear-gradient(90deg, var(--primary-color-medium) 50%, var(--primary-color-low));
 }