@@ -113,7 +113,7 @@ output
113113 background-color $input-bg
114114 background-image none // Reset unusual Firefox-on-Android default style see https://github.com/necolas/normalize.css/issues/214
115115 border 1px solid $input-border
116- border-radius $input-border-radius
116+ border-radius $input-border-radius // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
117117 box-shadow inset 0 1px 1px rgba (0 , 0 , 0 , .075 )
118118 transition border-color ease-in-out .15s , box-shadow ease-in-out .15s
119119
@@ -133,7 +133,7 @@ output
133133 fieldset [disabled ] &
134134 cursor $cursor-disabled
135135 background-color $input-bg-disabled
136- opacity 1 // iOS fix for unreadable disabled content
136+ opacity 1 // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
137137
138138 // Reset height for `textarea`s
139139 textarea &
@@ -156,7 +156,7 @@ input[type="search"]
156156// In Mobile Safari, setting `display block` on temporal inputs causes the
157157// text within the input to become vertically misaligned. As a workaround, we
158158// set a pixel line-height that matches the given height of the input, but only
159- // for Safari
159+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
160160
161161@media screen and (-webkit-min-device-pixel-ratio 0 )
162162 input [type = "date" ],
@@ -165,10 +165,12 @@ input[type="search"]
165165 input [type = "month" ]
166166 line-height $input-height-base
167167
168- & .input-sm
168+ & .input-sm ,
169+ .input-group-sm &
169170 line-height $input-height-small
170171
171- & .input-lg
172+ & .input-lg ,
173+ .input-group-lg &
172174 line-height $input-height-large
173175
174176
@@ -275,14 +277,35 @@ input[type="checkbox"]
275277//
276278// Build on `.form-control` with modifier classes to decrease or increase the
277279// height and font-size of form controls.
280+ //
281+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
282+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
283+
284+ .input-sm
285+ input-size ($input-height-small , $padding-small-vertical , $padding-small-horizontal , $font-size-small , $line-height-small , $input-border-radius-small )
286+
287+ .form-group-sm
288+ .form-control
289+ input-size ($input-height-small , $padding-small-vertical , $padding-small-horizontal , $font-size-small , $line-height-small , $input-border-radius-small )
278290
279- .input-sm ,
280- .form-group-sm .form-control
281- input-size ($input-height-small , $padding-small-vertical , $padding-small-horizontal , $font-size-small , $line-height-small , $border-radius-small )
291+ .form-control-static
292+ height $input-height-small
293+ padding $padding-small-vertical $padding-small-horizontal
294+ font-size $font-size-small
295+ line-height $line-height-small
282296
283297.input-lg
284- .form-group-lg .form-control
285- input-size ($input-height-large , $padding-large-vertical , $padding-large-horizontal , $font-size-large , $line-height-large , $border-radius-large )
298+ input-size ($input-height-large , $padding-large-vertical , $padding-large-horizontal , $font-size-large , $line-height-large , $input-border-radius-large )
299+
300+ .form-group-lg
301+ .form-control
302+ input-size ($input-height-large , $padding-large-vertical , $padding-large-horizontal , $font-size-large , $line-height-large , $input-border-radius-large )
303+
304+ .form-control-static
305+ height $input-height-large
306+ padding $padding-large-vertical $padding-large-horizontal
307+ font-size $font-size-large
308+ line-height $line-height-large
286309
287310
288311// Form control feedback states
@@ -400,8 +423,7 @@ input[type="checkbox"]
400423 vertical-align middle
401424
402425 // Remove default margin on radios/checkboxes that were used for stacking, and
403- // then undo the floating of radios and checkboxes to match (which also avoids
404- // a bug in WebKit https://github.com/twbs/bootstrap/issues/1969).
426+ // then undo the floating of radios and checkboxes to match
405427 .radio ,
406428 .checkbox
407429 display inline-block
0 commit comments