CSS: Use margin-right only for non-inline control-groups
This commit is contained in:
parent
8a16349fe4
commit
a00151ef5c
|
@ -31,10 +31,10 @@ form.icinga-form {
|
||||||
// Negative margin-right because every child gets 1em right but we can't exclude
|
// 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
|
// the last element as it's impossible to identify the last *visible* element
|
||||||
margin: 1em -1em 1em 0;
|
margin: 1em -1em 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
> * {
|
&:not(.inline) .control-group > * {
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-controls {
|
.form-controls {
|
||||||
|
@ -119,6 +119,16 @@ form.icinga-form .control-group .toggle-switch ~ .control-info {
|
||||||
|
|
||||||
form.inline {
|
form.inline {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: auto;
|
||||||
|
|
||||||
|
.control-group {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-label-group {
|
||||||
|
width: auto;
|
||||||
|
line-height: 0.857em;
|
||||||
|
}
|
||||||
|
|
||||||
.control-group .spinner {
|
.control-group .spinner {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
|
Loading…
Reference in New Issue