blob: 09576093de1921847d693316407f9f8dfb9fc280 [file] [log] [blame]
Michael Daviscb8bb192017-02-09 15:45:13 -06001label, legend {
2 font-size:1em;
3 font-weight: 300;
4 margin: 0;
5 &.disabled {
6 color: $lightbg__grey;
7 }
8 .error {
9 font-size: .9em;
10 }
11}
12
13input[type='email'],
14input[type='number'],
15input[type='password'],
16input[type='search'],
17input[type='tel'],
18input[type='url'],
19input[type='text'],
20textarea {
21 border-radius: 0px;
Michael Davis4ac71d42017-06-19 14:47:50 -050022 border: 1px solid $input-border;
Michael Daviscb8bb192017-02-09 15:45:13 -060023 height: 3.1em;
Michael Daviscb8bb192017-02-09 15:45:13 -060024 margin: 0 0 1em 0;
Michael Davise15a9562017-03-03 14:30:24 -060025 background: $white;
26 box-shadow: 0 0 0;
27 transition: none !important;
Michael Daviscb8bb192017-02-09 15:45:13 -060028 &:focus {
Michael Davis19ac8f82017-05-08 11:20:12 -050029 border-color: $medgrey;
Michael Davis51946552017-05-01 10:30:38 -050030 box-shadow: 0 -5px $field__focus inset;
Michael Daviscb8bb192017-02-09 15:45:13 -060031 }
Michael Davis51946552017-05-01 10:30:38 -050032 &:disabled,
33 .disabled {
Michael Daviscb8bb192017-02-09 15:45:13 -060034 background: $field__disabled;
35 border: 1px solid $lightbg__grey;
36 }
37 &.input__error {
Michael Davis51946552017-05-01 10:30:38 -050038 box-shadow: 0 -5px $error-color inset;
39 color: $error-color;
40 &:focus {
41 box-shadow: 0 -5px $field__focus inset;
42 }
Michael Daviscb8bb192017-02-09 15:45:13 -060043 }
44}
45
Michael Davis4ac71d42017-06-19 14:47:50 -050046//Foundation overwrite
47[type=color], [type=date], [type=datetime-local], [type=datetime], [type=email], [type=month], [type=number], [type=password], [type=search], [type=tel], [type=text], [type=time], [type=url], [type=week], textarea {
48 border-color: $input-border;
49}
50
Michael Davis51946552017-05-01 10:30:38 -050051input[readonly],
52input[readonly]:focus{
53 box-shadow: 0 0 0;
54 background: $field__disabled;
55 border: 1px solid $lightbg__grey;
56}
57
Michael Daviscb8bb192017-02-09 15:45:13 -060058textarea { padding: .2em;
59 height: auto;}
Iftekharul Islamf157d372017-03-08 11:11:27 -060060input[type="submit"], .submit {
Michael Daviscb8bb192017-02-09 15:45:13 -060061 margin: 1em 0;
62 width: 100%;
63}
64
65//Custom select
66select{
67 border-radius: 0px;
68 height:auto;
69 @include fastTransition-all;
70 @include bgImage__arrowDown-primary;
71 &:focus {
72 border-color: $lightbg__accent;
73 @include bgImage__arrowDown-accent;
74 box-shadow: 0 0 0;
75 }
76}