From: Jo-Philipp Wich Date: Mon, 30 Mar 2020 15:05:05 +0000 (+0200) Subject: themes: generalize indicator markup and styling X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d16600ff0100520f680ce3d9f2383d3c690b7fdf;p=oweals%2Fluci.git themes: generalize indicator markup and styling Signed-off-by: Jo-Philipp Wich (backported from commit ccb7e4a4a7aac34734dbda7e9ca7f5b53cbc51ff) --- 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 51931f550..c85bd866d 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -1774,7 +1774,8 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { margin: .25em 0; } -.label { +.label, +header [data-indicator] { padding: 1px 3px 2px; font-size: 9.75px; font-weight: bold; @@ -1786,6 +1787,10 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { text-shadow: none; } +header [data-indicator][data-clickable] { + cursor: pointer; +} + a.label:link, a.label:visited { color: #fff; @@ -1807,7 +1812,8 @@ a.label:hover { background-color: #46a546; } -.label.notice { +.label.notice, +header [data-indicator][data-style="active"] { background-color: #62cffc; } diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm index b9e1fbcdb..39415154a 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -46,7 +46,7 @@
<%=boardinfo.hostname or "?"%> -
+