From: Jo-Philipp Wich Date: Mon, 30 Mar 2020 15:05:05 +0000 (+0200) Subject: themes: generalize indicator markup and styling X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ccb7e4a4a7aac34734dbda7e9ca7f5b53cbc51ff;hp=3d965195928b993f7e2dacebd4e296a547b32552;p=project%2Fluci.git themes: generalize indicator markup and styling Signed-off-by: Jo-Philipp Wich --- 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 51931f550e..c85bd866d3 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 b9e1fbcdb6..39415154aa 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 "?"%> -
+