@@ -51,7 +51,6 @@ input[type="checkbox"]
5151 margin-top unquote ('1px \9' ) // IE8-9
5252 line-height normal
5353
54- // Set the height of file controls to match text inputs
5554input [type = "file" ]
5655 display block
5756
@@ -160,13 +159,16 @@ input[type="search"]
160159// text within the input to become vertically misaligned. As a workaround, we
161160// set a pixel line-height that matches the given height of the input, but only
162161// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
162+ //
163+ // Note that as of 8.3, iOS doesn't support `datetime` or `week`.
163164
164165@media screen and (-webkit-min-device-pixel-ratio 0 )
165166 input [type = "date" ],
166167 input [type = "time" ],
167168 input [type = "datetime-local" ],
168169 input [type = "month" ]
169- line-height $input-height-base
170+ & .form-control
171+ line-height $input-height-base
170172
171173 & .input-sm ,
172174 .input-group-sm &
@@ -291,28 +293,52 @@ input[type="checkbox"]
291293
292294.form-group-sm
293295 .form-control
294- input-size ($input-height-small , $padding-small-vertical , $padding-small-horizontal , $font-size-small , $line-height-small , $input-border-radius-small )
295-
296- .form-control-static
297296 height $input-height-small
298297 padding $padding-small-vertical $padding-small-horizontal
299298 font-size $font-size-small
300299 line-height $line-height-small
300+ border-radius $input-border-radius-small
301+
302+ select .form-control
303+ height $input-height-small
304+ line-height $input-height-small
305+
306+ textarea .form-control ,
307+ select [multiple ].form-control
308+ height auto
309+
310+ .form-control-static
311+ height $input-height-small
301312 min-height ($line-height-computed + $font-size-small )
313+ padding ($padding-small-vertical + 1 ) $padding-small-horizontal
314+ font-size $font-size-small
315+ line-height $line-height-small
302316
303317.input-lg
304318 input-size ($input-height-large , $padding-large-vertical , $padding-large-horizontal , $font-size-large , $line-height-large , $input-border-radius-large )
305319
306320.form-group-lg
307321 .form-control
308- input-size ($input-height-large , $padding-large-vertical , $padding-large-horizontal , $font-size-large , $line-height-large , $input-border-radius-large )
309-
310- .form-control-static
311322 height $input-height-large
312323 padding $padding-large-vertical $padding-large-horizontal
313324 font-size $font-size-large
314325 line-height $line-height-large
326+ border-radius $input-border-radius-large
327+
328+ select .form-control
329+ height $input-height-large
330+ line-height $input-height-large
331+
332+ textarea .form-control ,
333+ select [multiple ].form-control
334+ height auto
335+
336+ .form-control-static
337+ height $input-height-large
315338 min-height ($line-height-computed + $font-size-large )
339+ padding ($padding-large-vertical + 1 ) $padding-large-horizontal
340+ font-size $font-size-large
341+ line-height $line-height-large
316342
317343
318344// Form control feedback states
@@ -340,12 +366,16 @@ input[type="checkbox"]
340366 text-align center
341367 pointer-events none
342368
343- .input-lg + .form-control-feedback
369+ .input-lg + .form-control-feedback ,
370+ .input-group-lg + .form-control-feedback ,
371+ .form-group-lg .form-control + .form-control-feedback
344372 width $input-height-large
345373 height $input-height-large
346374 line-height $input-height-large
347375
348- .input-sm + .form-control-feedback
376+ .input-sm + .form-control-feedback ,
377+ .input-group-sm + .form-control-feedback ,
378+ .form-group-sm .form-control + .form-control-feedback
349379 width $input-height-small
350380 height $input-height-small
351381 line-height $input-height-small
@@ -490,7 +520,7 @@ input[type="checkbox"]
490520 // Reposition the icon because it's now within a grid column and columns have
491521 // `position relative` on them. Also accounts for the grid gutter padding.
492522 .has-feedback .form-control-feedback
493- right ($grid-gutter-width / 2 )
523+ right floor ($grid-gutter-width / 2 )
494524
495525 // Form group sizes
496526 //
@@ -500,11 +530,13 @@ input[type="checkbox"]
500530 @media (min-width $screen-sm-min)
501531 .control-label
502532 padding-top (($padding-large-vertical * $line-height-large ) + 1 )
533+ font-size $font-size-large
503534
504535 .form-group-sm
505536 @media (min-width $screen-sm-min)
506537 .control-label
507538 padding-top ($padding-small-vertical + 1 )
539+ font-size $font-size-small
508540
509541 .form-control
510542 @extend .input-sm
0 commit comments