summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-02-18 23:22:58 +0100
committerJo-Philipp Wich <jo@mein.io>2024-02-19 00:04:16 +0100
commitf57514d63ca23ec3020a5605a039ac0b228e994d (patch)
tree3e2538bf7a3105c1754dd489a3b37ddf181313ad /themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap
parent6b0953af64eba7fd70830178dd7f0f51a7c34fed (diff)
luci-theme-bootstrap: add dropdown option hover styles
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>
Diffstat (limited to 'themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap')
-rw-r--r--themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css6
1 files changed, 4 insertions, 2 deletions
diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
index f1b6dccab2..e4a669a43f 100644
--- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
+++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
@@ -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));
}