Fixed missing readonly/disabled state
authorMarcel Werk <burntime@woltlab.com>
Thu, 10 Mar 2016 18:08:55 +0000 (19:08 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 10 Mar 2016 18:08:55 +0000 (19:08 +0100)
wcfsetup/install/files/style/layout/form.scss

index 92d71f37e9ef8f1287939940354445cf87edcc1a..e9887e82a065acdd333f056f31bd481473d44400 100644 (file)
@@ -26,7 +26,8 @@ textarea {
                color: $wcfInputTextActive;
        }
        
-       &[disabled] {
+       &[disabled],
+       &[readonly] {
                background-color: $wcfInputDisabledBackground !important;
                border-color: $wcfInputDisabledBorder !important;
                color: $wcfInputDisabledText !important;
@@ -66,17 +67,18 @@ input[type="url"] {
        }
 }
 
-textarea[readonly] {
-       background-color: $wcfInputDisabledBackground !important;
-       border-color: $wcfInputDisabledBorder !important;
-       color: $wcfInputDisabledText !important;
-}
-
 textarea {
        border-width: 1px;
        width: 100%;
        
        @extend .wcfFontDefault;
+       
+       &[disabled],
+       &[readonly] {
+               background-color: $wcfInputDisabledBackground !important;
+               border-color: $wcfInputDisabledBorder !important;
+               color: $wcfInputDisabledText !important;
+       }
 }
 
 .selectDropdown {
@@ -178,8 +180,6 @@ textarea {
 
 .inputAddon input,
 input {
-       box-sizing: border-box;
-       
        &.tiny {
                flex-grow: 0;
                width: 80px;