From df4a87f429dfac2ae7649fc46bb3925a89251c3f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 18 May 2020 11:10:33 +0200 Subject: [PATCH] css: Only apply inline form styles on icinga-forms fixes #4157 --- public/css/icinga/forms.less | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/public/css/icinga/forms.less b/public/css/icinga/forms.less index 9849a0b85..616a094ac 100644 --- a/public/css/icinga/forms.less +++ b/public/css/icinga/forms.less @@ -33,6 +33,19 @@ form.icinga-form { display: flex; justify-content: flex-end; } + + &.inline { + display: inline-block; + width: auto; + + .control-group { + margin: 0; + + &:last-child { + margin-right: -1em; + } + } + } } // Minimal form layout @@ -78,6 +91,11 @@ form.icinga-form .control-label-group { width: 14em; } +form.icinga-form.inline .control-label-group { + width: auto; + line-height: 0.857em; +} + .icinga-controls fieldset { margin: 0; padding: 0; @@ -109,24 +127,6 @@ form.icinga-form .control-group .toggle-switch ~ .control-info { margin-left: 0; } -form.inline { - display: inline-block; - width: auto; - - .control-group { - margin: 0; - - &:last-child { - margin-right: -1em; - } - } - - .control-label-group { - width: auto; - line-height: 0.857em; - } -} - // General input styles .icinga-controls {