@@ -48,6 +48,15 @@ legend {
4848 margin-bottom : 0.5em ;
4949}
5050
51+ /* *
52+ * Show the overflow in Edge.
53+ */
54+
55+ button ,
56+ input {
57+ overflow : visible ;
58+ }
59+
5160/* *
5261 * 1. Prevent elements from spilling out of their parent.
5362 * 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
@@ -99,6 +108,10 @@ textarea {
99108 background : $color-background-form ;
100109 appearance : none ; /* 1 */
101110
111+ & :hover {
112+ border-color : shade ($color-border , 15% );
113+ }
114+
102115 & :focus {
103116 border-color : $color-link-focus ;
104117 outline : 1px solid transparent ; // Allows for repainting in high contrast modes.
@@ -113,11 +126,11 @@ textarea {
113126[type = " checkbox" ]:not (.ui-checkboxradio ),
114127[type = " radio" ]:not (.ui-checkboxradio ) {
115128 position : relative ;
116- bottom : -2px ; // 2px / 13px
129+ bottom : -2px ;
117130 width : 16px ;
118131 height : 16px ;
119132 padding : 0 ; /* 1 */
120- border : 1px solid darken ($color-border , 13 % );
133+ border : 1px solid shade ($color-border , 15 % );
121134 background : $color-background-form ;
122135 appearance : none ;
123136 box-sizing : border-box ;
@@ -126,13 +139,12 @@ textarea {
126139 margin : 0 0.5em 0 0 ; /* 2 */
127140
128141 & :last-of-type {
129- /* 2 */
130- margin : 0 ;
142+ margin : 0 ; /* 2 */
131143 }
132144 }
133145
134146 & :hover {
135- border-color : darken ($color-border , 26 % );
147+ border-color : shade ($color-border , 30 % );
136148 cursor : pointer ;
137149 }
138150
@@ -164,7 +176,7 @@ textarea {
164176 }
165177
166178 & [disabled ]:checked {
167- background : $color-border-light url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E" ) !important ;
179+ background : $color-text-footnote url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E" ) !important ;
168180 }
169181}
170182
@@ -224,7 +236,7 @@ textarea {
224236}
225237
226238[type = " range" ]:hover ::-webkit-slider-thumb {
227- border-color : darken ($color-border , 13 % );
239+ border-color : shade ($color-border , 15 % );
228240}
229241
230242[type = " range" ]:active ::-webkit-slider-thumb ,
@@ -236,14 +248,13 @@ textarea {
236248 width : 100% ;
237249 height : 0.75em ; // 12px / 16px
238250 border : 1px solid $color-border ;
239- border-radius : 0.375em ;
240- background-color : #e7e7e7 ;
251+ background-color : $color-gradient-to ;
241252 cursor : pointer ;
242253 box-sizing : border-box ;
243254}
244255
245256[type = " range" ]:hover ::-webkit-slider-runnable-track {
246- border-color : darken ($color-border , 13 % );
257+ border-color : shade ($color-border , 15 % );
247258}
248259
249260[type = " range" ]:active ::-webkit-slider-runnable-track ,
@@ -266,7 +277,7 @@ textarea {
266277}
267278
268279[type = " range" ]:hover ::-moz-range-thumb {
269- border-color : darken ($color-border , 13 % );
280+ border-color : shade ($color-border , 15 % );
270281}
271282
272283[type = " range" ]:focus ::-moz-range-thumb {
@@ -278,13 +289,13 @@ textarea {
278289 height : 0.75em ; // 12px / 16px
279290 border : 1px solid $color-border ;
280291 border-radius : 0.375em ;
281- background-color : #e7e7e7 ;
292+ background-color : $color-gradient-to ;
282293 cursor : pointer ;
283294 box-sizing : border-box ;
284295}
285296
286297[type = " range" ]:hover ::-moz-range-track {
287- border-color : darken ($color-border , 13 % );
298+ border-color : shade ($color-border , 15 % );
288299}
289300
290301[type = " range" ]:focus ::-moz-range-track {
@@ -295,7 +306,7 @@ textarea {
295306 border-style : none ;
296307}
297308
298- // Trident/ EdgeHTML.
309+ // EdgeHTML.
299310
300311[type = " range" ]::-ms-thumb {
301312 width : 1.25em ; // 20px / 16px
@@ -311,7 +322,7 @@ textarea {
311322}
312323
313324[type = " range" ]:hover ::-ms-thumb {
314- border-color : darken ($color-border , 13 % );
325+ border-color : shade ($color-border , 15 % );
315326}
316327
317328[type = " range" ]:focus ::-ms-thumb {
@@ -323,13 +334,13 @@ textarea {
323334 height : 0.75em ; // 12px / 16px
324335 border : 1px solid $color-border ;
325336 border-radius : 0.375em ;
326- background-color : #e7e7e7 ;
337+ background-color : $color-gradient-to ;
327338 cursor : pointer ;
328339 box-sizing : border-box ;
329340}
330341
331342[type = " range" ]:hover ::-ms-track {
332- border-color : darken ($color-border , 13 % );
343+ border-color : shade ($color-border , 15 % );
333344}
334345
335346[type = " range" ]:focus ::-ms-track {
@@ -341,7 +352,8 @@ textarea {
341352 */
342353
343354[type = " search" ]::-webkit-search-decoration {
344- -webkit-appearance : none ;
355+ /* autoprefixer: off */
356+ appearance : none ;
345357}
346358
347359/* *
@@ -350,7 +362,7 @@ textarea {
350362
351363select {
352364 padding-right : 1.5em ; // 24px / 16px
353- background : $color-background-form url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 5'%3E%3Cpolygon fill='%23333' points='0,0 5,5 10,0'/%3E%3C/svg%3E" ) right center no-repeat ;
365+ background : $color-background-form url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='5' viewBox='0 0 17 5'%3E%3Cpolygon fill='%23333' points='0,0 5,5 10,0'/%3E%3C/svg%3E" ) right center no-repeat ;
354366 background-size : 1.0625em 0.3125em ; // 17px / 16px, 5px / 16px
355367 text-transform : none ;
356368}
@@ -361,7 +373,7 @@ select {
361373
362374select :-moz-focusring {
363375 color : transparent ;
364- text-shadow : 0 0 0 $color-text-form ;
376+ text-shadow : none ;
365377}
366378
367379/* *
@@ -411,20 +423,17 @@ textarea {
411423 * Make sure disabled elements really are disabled and styled appropriately.
412424 *
413425 * 1. Re-set default cursor for disabled elements.
414- * 2. Override default iOS opacity setting.
415426 */
416427
417428[disabled ],
418429[disabled ] option ,
419430[disabled ] optgroup ,
420431span .disabled {
421- border-color : $color-border-light !important ;
422- background : $color-background-form-disabled !important ;
423- color : $color-text-form-disabled !important ;
424- text-shadow : none !important ;
432+ border : 1px solid $color-border !important ;
433+ background-color : $color-background-form-disabled !important ;
425434 box-shadow : none !important ;
426435 cursor : default !important ; /* 1 */
427- opacity : 1 ; /* 2 */
436+ opacity : 0.33 !important ;
428437}
429438
430439/* *
@@ -456,18 +465,6 @@ input {
456465 }
457466}
458467
459- /* *
460- * Styling for required field indicators.
461- *
462- * Example HTML:
463- *
464- * <span class="required" title="Required" aria-label="Required">●</span>
465- */
466-
467- .required {
468- color : $color-warning-text ;
469- }
470-
471468/* *
472469 * Styling for form field validation.
473470 */
@@ -493,3 +490,28 @@ textarea {
493490 box-shadow : none ;
494491 }
495492}
493+
494+ /* *
495+ * Normalize form placeholder style across browsers.
496+ *
497+ * 1. Fix placeholder font properties inheritance.
498+ */
499+
500+ ::placeholder {
501+ color : $color-text-form-placeholder ;
502+ font : inherit ; /* 1 */
503+ opacity : 1 ;
504+ }
505+
506+ /* *
507+ * Styling for required field indicators.
508+ *
509+ * Example HTML:
510+ *
511+ * <abbr class="required" title="Required" aria-label="Required">●</abbr>
512+ */
513+
514+ abbr .required {
515+ color : $color-warning-text ;
516+ text-decoration : none ;
517+ }
0 commit comments