Skip to content

Commit

Permalink
css: Support fieldsets wrapped by .control-group
Browse files Browse the repository at this point in the history
(cherry picked from commit 12af81d)
  • Loading branch information
nilmerg committed Dec 14, 2022
1 parent 60647eb commit 0cfe866
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions public/css/icinga/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ form.icinga-form {
// Negative margin-right because every child gets 1em right but we can't exclude
// the last element as it's impossible to identify the last *visible* element
margin: 1em -1em 1em 0;

> fieldset {
> .control-group:first-of-type {
margin-top: 0;
}

> .control-group:last-of-type {
margin-bottom: 0;
}
}
}

.control-group > :not(.control-label-group) {
Expand Down Expand Up @@ -174,6 +184,7 @@ form.icinga-form {
input[type="date"],
input[type="time"],
input[type="file"],
.control-group > fieldset,
textarea,
select {
flex: 1 1 auto;
Expand Down

0 comments on commit 0cfe866

Please sign in to comment.