From: Alexander Ebert Date: Sat, 19 Mar 2016 15:35:55 +0000 (+0100) Subject: Added missing disabled state for buttons X-Git-Tag: 3.0.0_Beta_1~2003 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63d349a3c213078912d46468c55b7a997129dfab;p=GitHub%2FWoltLab%2FWCF.git Added missing disabled state for buttons --- diff --git a/wcfsetup/install/files/style/ui/button.scss b/wcfsetup/install/files/style/ui/button.scss index f2c3a9d256..099a314ea3 100644 --- a/wcfsetup/install/files/style/ui/button.scss +++ b/wcfsetup/install/files/style/ui/button.scss @@ -52,6 +52,22 @@ a.button.buttonPrimary { // a.button is required to override link formatting, su } } +/* disabled state */ +button, +input[type="button"], +input[type="reset"], +input[type="submit"], +.button, +a.button { + &:disabled, + &.disabled { + background-color: $wcfButtonDisabledBackground !important; + border-color: $wcfButtonDisabledBorder !important; + color: $wcfButtonDisabledText !important; + cursor: not-allowed !important; + } +} + /* force active state for buttons toggling a dropdown */ .dropdownOpen { > button, @@ -63,10 +79,6 @@ a.button.buttonPrimary { // a.button is required to override link formatting, su background-color: $wcfButtonBackgroundActive; border-color: $wcfButtonBorderActive; color: $wcfButtonTextActive; - - .icon { - color: $wcfButtonTextActive; - } } > button.buttonPrimary, @@ -77,10 +89,6 @@ a.button.buttonPrimary { // a.button is required to override link formatting, su background-color: $wcfButtonPrimaryBackgroundActive; border-color: $wcfButtonPrimaryBorderActive; color: $wcfButtonPrimaryTextActive; - - .icon { - color: $wcfButtonPrimaryTextActive; - } } }