From 63d349a3c213078912d46468c55b7a997129dfab Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 19 Mar 2016 16:35:55 +0100 Subject: [PATCH] Added missing disabled state for buttons --- wcfsetup/install/files/style/ui/button.scss | 24 ++++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) 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; - } } } -- 2.20.1