css: Support fieldsets wrapped by `.control-group`

This commit is contained in:
Johannes Meyer 2022-12-14 13:11:32 +01:00
parent 522d041505
commit 12af81d4c3
1 changed files with 11 additions and 0 deletions

View File

@ -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) {
@ -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;