mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
Remove obsolete button styles & add a proper button class names
This commit is contained in:
parent
5da7d62913
commit
50c19af224
@ -78,7 +78,7 @@ abstract class BaseDashboardForm extends CompatForm
|
||||
{
|
||||
return HtmlElement::create('button', [
|
||||
'type' => 'button',
|
||||
'class' => 'modal-cancel',
|
||||
'class' => 'btn-cancel',
|
||||
'data-icinga-modal-cancel' => true
|
||||
])->setContent(t('Cancel'));
|
||||
}
|
||||
@ -94,7 +94,7 @@ abstract class BaseDashboardForm extends CompatForm
|
||||
protected function createRemoveButton(Url $action, string $label)
|
||||
{
|
||||
return $this->createElement('submitButton', 'btn_remove', [
|
||||
'class' => 'remove-button',
|
||||
'class' => 'btn-remove',
|
||||
'label' => [new Icon('trash'), $label],
|
||||
'formaction' => (string) $action
|
||||
]);
|
||||
|
@ -45,8 +45,6 @@ class SetupNewDashboard extends BaseDashboardForm
|
||||
|
||||
protected function assemble()
|
||||
{
|
||||
$this->getAttributes()->add('class', 'modal-form');
|
||||
|
||||
if ($this->getPopulatedValue('btn_next')) { // Configure Dashlets
|
||||
$this->dumpArbitaryDashlets();
|
||||
|
||||
|
@ -291,36 +291,6 @@
|
||||
margin-left: 1.4em;
|
||||
}
|
||||
|
||||
// Make the submit buttons a bit bigger than the normal size
|
||||
.modal-form.icinga-controls .control-group.form-controls input[type="submit"],
|
||||
.control-group.form-controls .modal-cancel {
|
||||
min-width: 7em;
|
||||
font-size: 1.2em;
|
||||
padding: ~"calc(@{vertical-padding} - 2px)" @horizontal-padding;
|
||||
}
|
||||
|
||||
// Remove and modal cancel buttons
|
||||
form.icinga-form .control-group.form-controls .remove-button {
|
||||
.cancel-button();
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.modal-form .control-group.form-controls .modal-cancel {
|
||||
padding: .5em 1em;
|
||||
}
|
||||
|
||||
.control-group.form-controls .modal-cancel {
|
||||
.button();
|
||||
border: none;
|
||||
color: @icinga-blue;
|
||||
background-color: @low-sat-blue;
|
||||
|
||||
&:hover {
|
||||
color: @text-color-on-icinga-blue;
|
||||
background-color: @icinga-blue;
|
||||
}
|
||||
}
|
||||
|
||||
// Drag and drop
|
||||
.sortable-chosen {
|
||||
.box-shadow();
|
||||
|
Loading…
x
Reference in New Issue
Block a user