diff options
| author | Mark Otto <[email protected]> | 2014-03-09 17:12:39 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-09 17:12:39 -0700 |
| commit | 2f955907f95ad9b7f42f624eb11142339709c188 (patch) | |
| tree | 4fc6c6b22e3d1624054e280406de6eeed515cfa9 /less/forms.less | |
| parent | 37b342b18a921b46ad9e720c774274f9c4cf5981 (diff) | |
| download | bootstrap-2f955907f95ad9b7f42f624eb11142339709c188.tar.xz bootstrap-2f955907f95ad9b7f42f624eb11142339709c188.zip | |
Fixes #12669: Properly reset line-height on date inputs for all sizes; Fix IE8+'s misaslignment of text within date inputs
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/less/forms.less b/less/forms.less index 273e36608..f19d5c4c2 100644 --- a/less/forms.less +++ b/less/forms.less @@ -167,10 +167,20 @@ input[type="search"] { // Special styles for iOS date input // // In Mobile Safari, date inputs require a pixel line-height that matches the -// given height of the input. +// given height of the input. Since this fucks up everything else, we have to +// appropriately reset it for Internet Explorer and the size variations. input[type="date"] { line-height: @input-height-base; + // IE8+ misaligns the text within date inputs, so we reset + line-height: @line-height-base ~"\0"; + + &.input-sm { + line-height: @input-height-small; + } + &.input-lg { + line-height: @input-height-large; + } } |
