mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-28 10:24:19 +01:00
Remove appearance from date inputs Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
parent
f7ed579d91
commit
1b575c27cd
@ -59,6 +59,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="date"],
|
||||||
|
input[type="time"],
|
||||||
|
input[type="datetime-local"],
|
||||||
|
input[type="month"] {
|
||||||
|
&.form-control {
|
||||||
|
appearance: none; // Fix appearance for date inputs in Safari
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
select.form-control {
|
select.form-control {
|
||||||
&:focus::-ms-value {
|
&:focus::-ms-value {
|
||||||
// Suppress the nested default white text on blue background highlight given to
|
// Suppress the nested default white text on blue background highlight given to
|
||||||
|
@ -376,18 +376,6 @@ input[type="checkbox"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
input[type="date"],
|
|
||||||
input[type="time"],
|
|
||||||
input[type="datetime-local"],
|
|
||||||
input[type="month"] {
|
|
||||||
// Remove the default appearance of temporal inputs to avoid a Mobile Safari
|
|
||||||
// bug where setting a custom line-height prevents text from being vertically
|
|
||||||
// centered within the input.
|
|
||||||
// See https://bugs.webkit.org/show_bug.cgi?id=139848
|
|
||||||
// and https://github.com/twbs/bootstrap/issues/11266
|
|
||||||
-webkit-appearance: listbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
overflow: auto; // Remove the default vertical scrollbar in IE.
|
overflow: auto; // Remove the default vertical scrollbar in IE.
|
||||||
// Textareas should really only resize vertically so they don't break their (horizontal) containers.
|
// Textareas should really only resize vertically so they don't break their (horizontal) containers.
|
||||||
|
Loading…
Reference in New Issue
Block a user