From: Jo-Philipp Wich Date: Mon, 22 Nov 2021 08:40:49 +0000 (+0100) Subject: luci-theme-bootstrap: various style corrections X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=18cc1c79d764125fe56af4712760bf2c8ee7f71f;p=project%2Fluci.git luci-theme-bootstrap: various style corrections - Add proper top and bottom margin for tab descriptions - Allow flex wrapping for cbi-value rows - Ensure that nested table/grid sections always take the full width - Make table/grid section row action buttons are as narrow as possible Signed-off-by: Jo-Philipp Wich (cherry picked from commit b11a7d8e4940a3f68b93c5d93f16c900c9371bc2) --- diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css index 3fd3c77cf4..4a1d6a706b 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -515,11 +515,6 @@ fieldset legend { padding-top: 20px; } -form .cbi-tab-descr { - line-height: 18px; - margin-bottom: 18px; -} - label, input, button, @@ -533,11 +528,13 @@ textarea { .cbi-value { display: flex; + flex-wrap: wrap; margin-bottom: 18px; } .cbi-value-field { margin-left: 20px; + flex: 1; } .cbi-value label.cbi-value-title { @@ -549,6 +546,10 @@ textarea { color: var(--text-color-high); } +.cbi-value > .cbi-tblsection { + width: 100%; +} + label > input[type="checkbox"], label > input[type="radio"] { vertical-align: text-top; @@ -1241,8 +1242,8 @@ a.menu:after { font-weight: bold; } -.cbi-tabcontainer > fieldset.cbi-section[id] > legend { - display: none; +.cbi-tab-descr { + margin: -9px 0 18px 0; } .tabs .menu-dropdown, .tabs .dropdown-menu { @@ -2020,6 +2021,7 @@ table table td, .td.cbi-section-actions { text-align: right; vertical-align: middle; + width: 15%; } .td.cbi-section-actions > * { @@ -2353,10 +2355,6 @@ div.cbi-value var.cbi-tooltip-container, line-height: 300%; } -[data-page="admin-network-dhcp"] [data-name="ip"] { - width: 15%; -} - @keyframes flash { 0% { opacity: 1; } 50% { opacity: .5; }