From: Jo-Philipp Wich Date: Mon, 10 Dec 2018 10:49:05 +0000 (+0100) Subject: luci-theme-openwrt: style tweaks X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=747e10bae6e9ec45e7d10f962c8c25ae804e97e7;p=oweals%2Fluci.git luci-theme-openwrt: style tweaks - Collapse table borders by default - Vertically align table cell content - Inherit font family and size for form widgets - Fix redundant horizontal padding for cell labels Signed-off-by: Jo-Philipp Wich --- diff --git a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css index 58065948f..ee8937d60 100644 --- a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css +++ b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css @@ -29,12 +29,12 @@ body { box-sizing: border-box; } -.table { display: table; width: 100%; position: relative; } +.table { display: table; width: 100%; position: relative; border-collapse: collapse; } .tr { display: table-row; } .thead { display: table-header-group; } .tbody { display: table-row-group; } .tfoot { display: table-footer-group; } -.td, .th { display: table-cell; } +.td, .th { display: table-cell; vertical-align: middle; } .th { font-weight: bold; } .table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; } @@ -568,8 +568,9 @@ input[type=text], input[type=password], .cbi-dropdown { width: 20em; - font-size: 12px; height: 22px; + font-family: inherit; + font-size: inherit; } select[multiple] { @@ -945,7 +946,7 @@ div.cbi-optionals { font-weight: bold; text-align: left; display: none; - padding: 1px; + padding: 1px 0; white-space: nowrap; }