File size: 1,178 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | @import "@automattic/typography/styles/variables";
@import "../../../assets/stylesheets/shared/extends-forms";
.form-text-input {
@at-root {
input[type='text']#{&},
input[type='url']#{&},
input[type='password']#{&},
input[type='email']#{&},
input[type='tel']#{&},
input[type='number']#{&},
input[type='search']#{&} {
@extend %form-field;
}
input[type='url']#{&},
input[type='password']#{&},
input[type='email']#{&} {
text-align: left;
/*!rtl:ignore*/
direction: ltr;
}
input[type='url']#{&},
input[type='search']#{&} {
appearance: none;
}
input[type='search']#{&}::-webkit-search-decoration {
// We don't use the native results="" UI
// Ensures the input text is flush to the start of the element, as in regular text inputs
// See, for example, http://geek.michaelgrace.org/2011/06/webkit-search-input-styling/
display: none;
}
}
}
.form-text-input-core-styles {
@at-root {
input[type='text']#{&},
input[type='url']#{&},
input[type='password']#{&},
input[type='email']#{&},
input[type='tel']#{&},
input[type='number']#{&},
input[type='search']#{&} {
@extend %form-field-core-styles;
}
}
}
|