forms.less: Apply fixed height to input elements

- Apply unitless line-height
This commit is contained in:
Sukhwinder Dhillon 2025-08-06 17:21:02 +02:00 committed by Johannes Meyer
parent 2e164a75d4
commit 7649c71dda

View File

@ -228,12 +228,21 @@ form.icinga-form {
} }
} }
form.icinga-form select:not([multiple]), form.icinga-form {
form.icinga-form input[type="datetime-local"] { select:not([multiple]),
// Compensate inconsistent select height calculations input[type="text"],
line-height: 1em; input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
// Use the same height for select and all supported input elements. input[type="file"] is not styled here
// because it requires more height due to the built-in Choose file button.
// Elements such as checkbox, radio and submit buttons have their own custom style.
line-height: 1;
height: 2.25em; height: 2.25em;
} }
}
// Remove native dropdown arrow in IE10+ // Remove native dropdown arrow in IE10+
.icinga-controls select::-ms-expand { .icinga-controls select::-ms-expand {