forms.less: Enhance differentiation between layout and style
This commit is contained in:
parent
4675d24a03
commit
b1881c6a53
|
@ -74,7 +74,7 @@ form.icinga-form {
|
||||||
|
|
||||||
// Label styles
|
// Label styles
|
||||||
|
|
||||||
form.icinga-form .control-group .control-label-group {
|
form.icinga-form .control-label-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -157,14 +157,12 @@ form.icinga-form {
|
||||||
}
|
}
|
||||||
|
|
||||||
.icinga-controls {
|
.icinga-controls {
|
||||||
.control-group input:not([type="checkbox"]),
|
input:not([type="checkbox"]),
|
||||||
.control-group .toggle-switch,
|
.toggle-switch,
|
||||||
.control-group button,
|
select,
|
||||||
.control-group select,
|
textarea,
|
||||||
.control-group textarea,
|
button,
|
||||||
.form-controls button,
|
.toggle-switch {
|
||||||
.form-controls .toggle-switch,
|
|
||||||
.form-controls input {
|
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
padding: @vertical-padding;
|
padding: @vertical-padding;
|
||||||
}
|
}
|
||||||
|
@ -259,16 +257,16 @@ form.icinga-form .form-controls {
|
||||||
// Button styles
|
// Button styles
|
||||||
|
|
||||||
.icinga-controls {
|
.icinga-controls {
|
||||||
.form-controls input[type="submit"],
|
input[type="submit"],
|
||||||
.form-controls input[type="submit"].btn-confirm {
|
input[type="submit"].btn-confirm {
|
||||||
.button();
|
.button();
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-controls input[type="submit"].btn-remove {
|
input[type="submit"].btn-remove {
|
||||||
.button(@body-bg-color, @color-critical, darken(@color-critical, 10%));
|
.button(@body-bg-color, @color-critical, darken(@color-critical, 10%));
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-controls input[type="submit"].btn-cancel {
|
input[type="submit"].btn-cancel {
|
||||||
.button(@body-bg-color, @gray, @black);
|
.button(@body-bg-color, @gray, @black);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -360,13 +358,13 @@ form.icinga-form .form-controls {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icinga-controls .control-group.disabled .control-label-group {
|
form.icinga-form .control-group.disabled .control-label-group {
|
||||||
color: @disabled-gray;
|
color: @disabled-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icinga-controls {
|
.icinga-controls {
|
||||||
.control-group input[disabled],
|
input[disabled],
|
||||||
.control-group select[disabled] {
|
select[disabled] {
|
||||||
background: @gray-lighter;
|
background: @gray-lighter;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue