input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea { margin: 0; /* safari fix */ @include input; } /* set placeholder color */ input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"] { &::-webkit-input-placeholder { /* WebKit browsers */ color: $wcfInputPlaceholder; } &::-moz-placeholder { /* Mozilla Firefox 19+ */ color: $wcfInputPlaceholder; } &:-ms-input-placeholder { /* Internet Explorer 10+ */ color: $wcfInputPlaceholder; } &:focus, &:hover { &::-webkit-input-placeholder { /* WebKit browsers */ color: $wcfInputPlaceholderActive; } &::-moz-placeholder { /* Mozilla Firefox 19+ */ color: $wcfInputPlaceholderActive; } &:-ms-input-placeholder { /* Internet Explorer 10+ */ color: $wcfInputPlaceholderActive; } } &[disabled], &[readonly] { background-color: $wcfInputDisabledBackground !important; border-color: $wcfInputDisabledBorder !important; color: $wcfInputDisabledText !important; } } input[type="search"], input[type="text"] { -webkit-appearance: none; } /* prevent iOS from zooming when focusing inputs */ .iOS { input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea { font-size: 16px; } } textarea { border-width: 1px; font-weight: 400; vertical-align: top; width: 100%; @include wcfFontDefault; &[disabled], &[readonly] { background-color: $wcfInputDisabledBackground !important; border-color: $wcfInputDisabledBorder !important; color: $wcfInputDisabledText !important; } } input[disabled], textarea[disabled] { -webkit-text-fill-color: $wcfInputDisabledText; /* override safari font color change */ -webkit-opacity: 1; /* override mobile safari opacity change affecting text color */ } select { // The width is determined by the browser based upon the longest