luci-theme-openwrt: dropdown style tweaks
authorJo-Philipp Wich <jo@mein.io>
Mon, 5 Nov 2018 17:38:25 +0000 (18:38 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Nov 2018 19:46:04 +0000 (20:46 +0100)
- Remove 2em min height, this looks out of place with the OpenWrt theme
- Only colorize invalid dropdown when not open
- Drop use of image background for invalid fields while we're at it

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css

index 06ffe56e5b798c0e6d687ea8bf79ffa1610dc9a5..f24493c993f12277895c8b9c1ff2ff517a143b46 100644 (file)
@@ -620,10 +620,7 @@ img.cbi-image-button {
        color: #595;
 }
 
-.cbi-input-invalid {
-       background-image: url('../resources/cbi/reset.gif');
-       background-repeat: no-repeat;
-       background-position: right;
+.cbi-input-invalid:not([open]) {
        color: #FF0000 !important;
        border-color: #FF0000;
 }
@@ -1044,7 +1041,6 @@ ul.cbi-tabmenu li.cbi-tab {
        flex-direction: column;
        justify-content: center;
        text-align: center;
-       line-height: 2em;
        padding: 0 .25em;
 }