diff options
Diffstat (limited to 'themes/luci-theme-material')
-rw-r--r-- | themes/luci-theme-material/htdocs/luci-static/material/cascade.css | 9 | ||||
-rw-r--r-- | themes/luci-theme-material/luasrc/view/themes/material/header.htm | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css index 8645c60e4..f3922c00f 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -443,7 +443,8 @@ header > .fill > .container > .status > * { background-color: #5cb85c !important; } -.notice { +.notice, +[data-indicator]:not([data-style="inactive"]) { background-color: #5bc0de !important; } @@ -2091,7 +2092,8 @@ span[data-tooltip] .label { flex-direction: column; } -.label { +.label, +[data-indicator] { font-size: .8rem; font-weight: bold; padding: .3rem .8rem; @@ -2480,7 +2482,8 @@ input[name="nslookup"] { padding: .3rem .6rem; } - .label { + .label, + [data-indicator] { padding: .2rem .6rem; } diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 124314039..32678a322 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -191,7 +191,7 @@ <span class="showSide"></span> <a id="logo" href="<% if luci.dispatcher.context.authsession then %><%=url('admin/status/overview')%><% else %>#<% end %>"><img src="<%=media%>/brand.png" alt="OpenWrt"></a> <a class="brand" href="#"><%=boardinfo.hostname or "?"%></a> - <div class="status"> + <div class="status" id="indicators"> <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()"> <span class="label success" id="xhr_poll_status_on"><span class="mobile-hide"><%:Auto Refresh%></span> <%:on%></span> <span class="label" id="xhr_poll_status_off" style="display:none"><span class="mobile-hide"><%:Auto Refresh%></span> <%:off%></span> |