Skip to content

Commit

Permalink
(less) Fixes twbs#12669: Properly reset line-height on date inputs fo…
Browse files Browse the repository at this point in the history
…r all sizes; Fix IE8+'s misaslignment of text within date inputs
  • Loading branch information
mdo committed Mar 10, 2014
1 parent 35b1c7f commit 88281e8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}


Expand Down

0 comments on commit 88281e8

Please sign in to comment.