Commit | Line | Data |
---|---|---|
d40daae6 AE |
1 | @mixin input { |
2 | background-color: $wcfInputBackground; | |
3 | border: 1px solid $wcfInputBorder; | |
ecd140e7 | 4 | border-radius: 0; |
d40daae6 | 5 | color: $wcfInputText; |
bec1bb2e | 6 | font-weight: 400; |
d40daae6 AE |
7 | outline: none; |
8 | padding: 4px 8px; | |
8a52619a | 9 | |
d40daae6 AE |
10 | // input elements do not inherit font family, size and line-height from body |
11 | font-family: $wcfFontFamily; | |
12 | @include wcfFontDefault; | |
13 | @include wcfLineHeight; | |
8a52619a | 14 | |
d40daae6 AE |
15 | &:focus, |
16 | &:hover { | |
17 | background-color: $wcfInputBackgroundActive; | |
18 | border-color: $wcfInputBorderActive; | |
19 | color: $wcfInputTextActive; | |
20 | } | |
8a52619a | 21 | |
f54cf0ab MS |
22 | &[disabled], |
23 | &.disabled { | |
d40daae6 AE |
24 | background-color: $wcfInputDisabledBackground !important; |
25 | border-color: $wcfInputDisabledBorder !important; | |
26 | color: $wcfInputDisabledText !important; | |
27 | } | |
8a52619a | 28 | |
de5e14e7 AE |
29 | &[readonly] { |
30 | color: $wcfInputDisabledText !important; | |
31 | } | |
d40daae6 | 32 | } |