scss: dim buttons during submit (#13349)

This commit is contained in:
Frédéric Péters 2018-03-30 09:26:53 +02:00
parent e125109332
commit 5ae3c9d7c5
1 changed files with 12 additions and 0 deletions

View File

@ -108,6 +108,18 @@ a.submit-button, button.submit-button, div.buttons .submit-button input, div.but
&:active { background: darken($button-submit-color, 10%); }
}
form.disabled-during-submit {
// this class is added to forms in w.c.s. when a button is clicked.
div.buttons {
cursor: wait;
button {
pointer-events: none;
box-shadow: none;
opacity: 0.7;
}
}
}
div.ui-dialog button.ui-button-disabled,
div#content button:disabled,
input[type=submit]:disabled {