Added missing disabled state for buttons
authorAlexander Ebert <ebert@woltlab.com>
Sat, 19 Mar 2016 15:35:55 +0000 (16:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 19 Mar 2016 15:36:00 +0000 (16:36 +0100)
wcfsetup/install/files/style/ui/button.scss

index f2c3a9d256682aaa5271b281fe8afba19d16316f..099a314ea3c0dade04bb2d212a7ef353adf9cb58 100644 (file)
@@ -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;
-               }
        }
 }