@@ -91,6 +91,10 @@ input {
9191 line-height : 1 ;
9292}
9393
94+ ::placeholder {
95+ color : color (text );
96+ }
97+
9498// Get rid of number dropdown "spinners" for an overwhelming amount of browsers
9599input [type = number ]::-webkit-inner-spin-button ,
96100input [type = number ]::-webkit-outer-spin-button {
@@ -120,12 +124,6 @@ input[type="number"] {
120124 appearance : textfield;
121125}
122126
123- input [type = " radio" ] {
124- -webkit-appearance : radio;
125- border-radius : 50% ;
126- border : 1px solid gray ;
127- }
128-
129127select {
130128 outline : 0 ;
131129 box-shadow : 0 ;
@@ -209,6 +207,7 @@ select {
209207}
210208
211209.form-field {
210+ position : relative ;
212211 margin-bottom : 25px ;
213212}
214213
@@ -228,11 +227,22 @@ select {
228227
229228
230229.form-label {
231- @extend %headers ;
232-
233- @extend %h4 ;
234-
235- display : block ;
230+ position : absolute ;
231+ top : ms (-4 );
232+ left : 1.1rem ;
233+ font-size : ms (-2 );
234+ line-height : 1 ;
235+ color : color (text );
236+ opacity : 0 ;
237+ pointer-events : none ;
238+ transform : translateY (ms (-9 ));
239+ transition : transform 0.25s ease-out , opacity 0.25s ease-out ;
240+
241+ .has-text & {
242+ transform : translateY (0 );
243+ opacity : 1 ;
244+ pointer-events : auto ;
245+ }
236246}
237247
238248
@@ -250,18 +260,19 @@ select {
250260
251261.form-input {
252262 @extend %body--sans-small ;
253-
263+ appearance : none ;
254264 width : 100% ;
255- border : 1px solid color (border );
265+ border : 1px solid color (dark- border );
256266 margin : 0 ;
257- padding : size ( smaller ) size ( small ) ;
258- color : color (dark- text );
267+ padding : 0.85 rem ms ( 0 ) 0.85 rem ;
268+ color : color (text );
259269 border-radius : size (normal-corners );
260270 background : color (background );
261271 cursor : auto ;
272+ transition : padding 0.25s ease-out ;
262273
263274 & :focus {
264- border-color : color (gray--light3 );
275+ border-color : color (primary );
265276 }
266277
267278 // these are for jquery validation plugin
@@ -270,6 +281,17 @@ select {
270281 & .error {
271282 border-color : color (accent );
272283 }
284+
285+ .has-text & {
286+ padding : 1.2rem ms (0 ) 0.5rem ;
287+ }
288+ }
289+
290+ .form-input--textarea {
291+
292+ #{$focus } {
293+ outline : 0 ;
294+ }
273295}
274296
275297.form-input--select {
0 commit comments