From 2907ba887f871edab35b14564a01137c3367f069 Mon Sep 17 00:00:00 2001 From: fujr Date: Thu, 19 Dec 2024 16:08:47 +0800 Subject: [PATCH] luci: refactor progress bar class names and add compatibility check to fix #6 --- luci/luci-app-qmodem/files/modem_overview.htm | 27 +++++++++++++++--- .../luasrc/view/qmodem/modem_info.htm | 28 ++++++++++++++++--- 2 files changed, 47 insertions(+), 8 deletions(-) diff --git a/luci/luci-app-qmodem/files/modem_overview.htm b/luci/luci-app-qmodem/files/modem_overview.htm index 304be48..907c536 100644 --- a/luci/luci-app-qmodem/files/modem_overview.htm +++ b/luci/luci-app-qmodem/files/modem_overview.htm @@ -8,7 +8,7 @@ - .cbi-progressbar { + .compat-progressbar { border: 1px solid var(--border-color-high,var(--progressbarColor,var(--background-color))); border-radius: 3px; position: relative; @@ -18,7 +18,7 @@ background: var(--background-color-medium,var(--progressbarColor)); } - .cbi-progressbar > div { + .compat-progressbar > div { background: var(--progressbar, var(--primary, var(--primary-color-medium))); height: 100%; transition: width .25s ease-in; @@ -26,7 +26,7 @@ border-radius: 2px; } - .cbi-progressbar::before { + .compat-progressbar::before { position: absolute; top: -1.4em; left: 0; @@ -38,7 +38,26 @@