| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- // base styles for form elements, fieldsets, labels, inputs etc.
- // ======================================================================
- // default transparent background for all form elements
- button,
- input,
- select,
- textarea {
- background-color: transparent;
- }
- // default styles for text-input forms fields
- [type='text'],
- [type='tel'],
- [type='email'],
- [type='search'],
- [type='number'],
- [type='password'],
- select,
- textarea {
- @include spacing-inner(t 1/4, r 1/2, b 1/4, l 1/2);
- @include border-color(border);
- width: 100%;
- border-style: solid;
- border-width: 1px;
- border-radius: 0;
- appearance: none; // no rounded inputs etc.
- @include attention {
- @include border-color(main);
- }
- }
- [type='radio'] {
- @extend %visuallyhidden;
- }
- legend {
- @include font-size(h5);
- @include spacing(b 2);
- width: 100%;
- text-align: center;
- }
- [type='number'] {
- // sass-lint:disable-block no-vendor-prefixes
- &::-webkit-inner-spin-button,
- &::-webkit-outer-spin-button {
- appearance: none;
- margin: 0;
- }
- }
|