blob: 074ba142ce8a69f81bb8d779bea3f93db5a12bbe [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 Davise15a9562017-03-03 14:30:24 -060022 border: 1px solid $lightgrey;
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 {
29 border-color: $lightbg__accent;
Michael Davise15a9562017-03-03 14:30:24 -060030 border-bottom: 5px solid $lightbg__primary;
Michael Daviscb8bb192017-02-09 15:45:13 -060031 }
32 &:disabled, .disabled {
33 background: $field__disabled;
34 border: 1px solid $lightbg__grey;
35 }
36 &.input__error {
Michael Davis19475752017-02-23 18:30:23 -060037 border-color: $error-color;
Michael Daviscb8bb192017-02-09 15:45:13 -060038 }
39}
40
41textarea { padding: .2em;
42 height: auto;}
43input[type="submit"] {
44 margin: 1em 0;
45 width: 100%;
46}
47
48//Custom select
49select{
50 border-radius: 0px;
51 height:auto;
52 @include fastTransition-all;
53 @include bgImage__arrowDown-primary;
54 &:focus {
55 border-color: $lightbg__accent;
56 @include bgImage__arrowDown-accent;
57 box-shadow: 0 0 0;
58 }
59}
60
61//Custom Checkbox and Radio
62.checkbox-custom,
63.radio-custom {
64 opacity: 0;
65 position: absolute;
66}
67
68.checkbox-custom, .checkbox-custom-label,
69.radio-custom,
70.radio-custom-label {
71 display: inline-block;
72 vertical-align: middle;
73 margin: .1em 0 .1em -.5em;
74 padding: .5em;
75 cursor: pointer;
76}
77
78.checkbox-custom-label, .radio-custom-label {
79 position: relative;
80 padding-left: 2em;
81
82}
83
84.checkbox-custom + .checkbox-custom-label:before,
85.radio-custom + .radio-custom-label:before {
86 content: '';
87 background: #fff;
88 border: 1px solid $lightbg__grey;
89 display: inline-block;
90 vertical-align: middle;
91 width: 16px;
92 height: 16px;
93 margin-right: 10px;
94 margin-top: -3px;
95 text-align: center;
96 position: absolute;
97 left: 9px;
98 top: 15px;
99}
100
101.checkbox-custom:checked + .checkbox-custom-label:after {
102 content: '\2713';
103 position: absolute;
104 left: 10px;
105 top: 3px;
106 font-size: 1em;
107 padding: 4px 0 0 2px;
108 color: $white;
109}
110
111.checkbox-custom:checked + .checkbox-custom-label:before {
112 background: $lightbg__primary;
113 @include fastTransition-all;
114}
115
116.radio-custom + .radio-custom-label:before {
117 border-radius: 50%;
118}
119
120.radio-custom:checked + .radio-custom-label:before {
121 background: $lightbg__primary;
122 @include fastTransition-all;
123 box-shadow: inset 0px 0px 0px 2px #fff;
124}
125
126
127.checkbox-custom:focus + .checkbox-custom-label, .radio-custom:focus + .radio-custom-label {
128 outline: 1px solid $lightbg__grey; /* focus style */
129}