Skip to content

Commit 7649c71

Browse files
sukhwinder33445nilmerg
authored andcommitted
forms.less: Apply fixed height to input elements
- Apply unitless line-height
1 parent 2e164a7 commit 7649c71

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

public/css/icinga/forms.less

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,20 @@ form.icinga-form {
228228
}
229229
}
230230

231-
form.icinga-form select:not([multiple]),
232-
form.icinga-form input[type="datetime-local"] {
233-
// Compensate inconsistent select height calculations
234-
line-height: 1em;
235-
height: 2.25em;
231+
form.icinga-form {
232+
select:not([multiple]),
233+
input[type="text"],
234+
input[type="password"],
235+
input[type="number"],
236+
input[type="datetime-local"],
237+
input[type="date"],
238+
input[type="time"] {
239+
// Use the same height for select and all supported input elements. input[type="file"] is not styled here
240+
// because it requires more height due to the built-in ‘Choose file’ button.
241+
// Elements such as checkbox, radio and submit buttons have their own custom style.
242+
line-height: 1;
243+
height: 2.25em;
244+
}
236245
}
237246

238247
// Remove native dropdown arrow in IE10+

0 commit comments

Comments
 (0)