From 7649c71dda3497a1776d086b9501d7c92fd8c45f Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 6 Aug 2025 17:21:02 +0200 Subject: [PATCH] forms.less: Apply fixed height to input elements - Apply unitless line-height --- public/css/icinga/forms.less | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/public/css/icinga/forms.less b/public/css/icinga/forms.less index f396f59c4..7af2e8862 100644 --- a/public/css/icinga/forms.less +++ b/public/css/icinga/forms.less @@ -228,11 +228,20 @@ form.icinga-form { } } -form.icinga-form select:not([multiple]), -form.icinga-form input[type="datetime-local"] { - // Compensate inconsistent select height calculations - line-height: 1em; - height: 2.25em; +form.icinga-form { + select:not([multiple]), + input[type="text"], + 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; + } } // Remove native dropdown arrow in IE10+