summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt-2020
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-16 13:19:56 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-16 13:30:36 +0200
commit52486e5862926294fd6ea1b6db48bf1ae515d7a6 (patch)
treec120f4ce9bba546ad9b28ee82849a5458a33de55 /themes/luci-theme-openwrt-2020
parent46d31efc7351231def16be1024eff95c5b792f94 (diff)
luci-theme-openwrt-2020: disabled widget style tweaks
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-openwrt-2020')
-rw-r--r--themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css17
1 files changed, 16 insertions, 1 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 e96c01914c..595656eedb 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
@@ -153,6 +153,12 @@ body {
padding: 1em;
}
+#mainmenu:empty {
+ max-width: 0;
+ padding: 1em 0;
+ transition: all .2s ease-in-out;
+}
+
#mainmenu > div {
position: sticky;
top: 1em;
@@ -976,6 +982,10 @@ button[disabled], button.disabled, .btn[disabled], .btn.disabled {
opacity: .6;
}
+.cbi-checkbox input[type="checkbox"][disabled] {
+ pointer-events: none;
+}
+
input:not([type]),
input[type="text"],
input[type="password"],
@@ -1002,7 +1012,8 @@ select:focus,
input[disabled]:not([type]),
input[disabled][type="text"],
input[disabled][type="password"],
-select[disabled] {
+select[disabled],
+.cbi-dynlist[disabled] {
opacity: .6;
pointer-events: none;
}
@@ -1149,6 +1160,10 @@ textarea {
pointer-events: all;
}
+.cbi-dynlist[disabled] > .item::after {
+ pointer-events: none;
+}
+
.cbi-dynlist > .item:hover {
box-shadow: 0 0 2px var(--main-bright-color);
}