diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-13 16:04:41 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-14 17:06:34 +0200 |
commit | eb8eeb45de89aaea6fc1c70ee21453a1a8306161 (patch) | |
tree | e574d5f919e9dba552cbb1ef4984243c8930d940 /themes | |
parent | d9bd5466a4a2ac2120c70058b4f85a9be84dbd4f (diff) |
luci-theme-openwrt-2020: add styles for disabled input elements
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes')
-rw-r--r-- | themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css | 16 |
1 files changed, 15 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 f83f1ba578..e96c01914c 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 @@ -903,7 +903,7 @@ button.important { button[disabled], button.disabled, .btn[disabled], .btn.disabled { pointer-events: none; - opacity: .5; + opacity: .6; } .cbi-button-apply, .cbi-button-positive { @@ -970,6 +970,12 @@ button[disabled], button.disabled, .btn[disabled], .btn.disabled { background: var(--danger-color); } +.cbi-checkbox input[type="checkbox"][disabled] + label::before, +.cbi-checkbox input[type="checkbox"][disabled] + label::after { + pointer-events: none; + opacity: .6; +} + input:not([type]), input[type="text"], input[type="password"], @@ -993,6 +999,14 @@ select:focus, border-color: var(--main-dark-color); } +input[disabled]:not([type]), +input[disabled][type="text"], +input[disabled][type="password"], +select[disabled] { + opacity: .6; + pointer-events: none; +} + input:not([type]) + .btn, input:not([type]) + button, input[type="text"] + .btn, input[type="text"] + button, input[type="password"] + .btn, input[type="password"] + button { |