summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt-2020
diff options
context:
space:
mode:
Diffstat (limited to 'themes/luci-theme-openwrt-2020')
-rw-r--r--themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css16
-rw-r--r--themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm2
2 files changed, 11 insertions, 7 deletions
diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css
index f3fc7529f8..d394192f50 100644
--- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css
+++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css
@@ -89,12 +89,12 @@ body {
flex: 3;
}
-#menubar .indicators {
+#indicators {
flex: 1 1 25%;
text-align: right;
}
-#menubar .indicators > * {
+#indicators > * {
background: var(--secondary-bright-color);
color: var(--main-bright-color);
display: inline-block;
@@ -107,15 +107,19 @@ body {
white-space: nowrap;
}
-#menubar .indicators > * > #xhr_poll_status_off {
+#indicators > [data-style="inactive"],
+#indicators > * > #xhr_poll_status_off {
background: var(--main-bright-color);
color: var(--secondary-bright-color);
+ border: 2px solid var(--secondary-bright-color);
+ line-height: calc(1.5em - 4px);
+ padding: 0 calc(.5em - 2px);
+}
+
+#indicators > * > #xhr_poll_status_off {
border-radius: 1em;
margin: 0 -.5em;
display: block;
- padding: 0 .5em;
- border: 2px solid var(--secondary-bright-color);
- line-height: calc(1.5em - 4px);
}
#menubar h2,
diff --git a/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm b/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm
index dc7f3bc8ec..00834b3073 100644
--- a/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm
+++ b/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm
@@ -206,7 +206,7 @@
<span class="hostname"><%=(boardinfo.hostname or "?")%></span>
<span class="distversion"><%=ver.distversion%></span>
- <span class="indicators">
+ <span id="indicators">
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
<span id="xhr_poll_status_on" style="display:none"><%:Refreshing%></span>
<span id="xhr_poll_status_off" style="display:none"><%:Paused%></span>