From ccb7e4a4a7aac34734dbda7e9ca7f5b53cbc51ff Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 30 Mar 2020 17:05:05 +0200 Subject: [PATCH] themes: generalize indicator markup and styling Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/bootstrap/cascade.css | 10 ++- .../luasrc/view/themes/bootstrap/header.htm | 2 +- .../htdocs/luci-static/material/cascade.css | 9 ++- .../luasrc/view/themes/material/header.htm | 2 +- .../luci-static/openwrt2020/cascade.css | 16 +++-- .../luasrc/view/themes/openwrt2020/header.htm | 2 +- .../luci-static/openwrt.org/cascade.css | 72 ++++++++++++++----- .../luasrc/view/themes/openwrt.org/header.htm | 8 ++- 8 files changed, 87 insertions(+), 34 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 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 "?"%> -
+