Skip to content

Commit

Permalink
Fixes #11266: Apply a pixel-based line-height to date inputs for iOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Dec 15, 2013
1 parent 4f22670 commit d9345ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,9 @@ fieldset[disabled] .form-control {
textarea.form-control {
height: auto;
}
input[type="date"] {
line-height: 34px;
}
.form-group {
margin-bottom: 15px;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ output {
}
}

// Special styles for iOS date input
//
// In Mobile Safari, date inputs require a pixel line-height that matches the
// given height of the input.
input[type="date"] {
line-height: @input-height-base;
}


// Form groups
//
Expand Down

0 comments on commit d9345ff

Please sign in to comment.