Since the removal of the clearfix styles, overlong captions will displace
subsequent input field rows.
Fix the issue by replace floating label + field margin with flexbox styles.
Fixes: #5535
Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
/* Forms.less
* Base styles for various input types, form layouts, and states
* ------------------------------------------------------------- */
-form,
-.cbi-value {
- margin-bottom: 18px;
-}
-
fieldset {
margin-bottom: 9px;
padding-top: 9px;
line-height: normal;
}
-form .input,
+.cbi-value {
+ display: flex;
+ margin-bottom: 18px;
+}
+
.cbi-value-field {
- margin-left: 200px;
+ margin-left: 20px;
}
.cbi-value label.cbi-value-title {
padding-top: 6px;
font-size: 13px;
line-height: 18px;
- float: left;
- width: 180px;
+ flex: 0 0 180px;
text-align: right;
color: var(--text-color-high);
}
padding-bottom: .5em;
border-bottom: 1px solid var(--border-color-high);
margin-bottom: .5em;
+ display: block;
+ }
+
+ .cbi-value.hidden {
+ display: none;
}
.cbi-value .cbi-value:last-child {
}
.cbi-value label.cbi-value-title {
- float: none;
font-weight: bold;
}