mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 07:37:27 +02:00
Fixes #11266: Apply a pixel-based line-height to date inputs for iOS 7
This commit is contained in:
3
dist/css/bootstrap.css
vendored
3
dist/css/bootstrap.css
vendored
@@ -1696,6 +1696,9 @@ fieldset[disabled] .form-control {
|
|||||||
textarea.form-control {
|
textarea.form-control {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
input[type="date"] {
|
||||||
|
line-height: 34px;
|
||||||
|
}
|
||||||
.form-group {
|
.form-group {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -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
|
// Form groups
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user