Fixes #8350: unfuck Chrome number input element cursor /cc @cvrebert @eintnohick

This commit is contained in:
Mark Otto 2013-07-01 19:49:29 -07:00
parent 08b3515fd7
commit 5b2d933524
2 changed files with 14 additions and 0 deletions

View File

@ -1486,6 +1486,10 @@ input[type="checkbox"]:focus {
outline-offset: -2px;
}
input[type="number"]::-webkit-outer-spin-button input[type="number"]::-webkit-inner-spin-button {
height: auto;
}
input:-moz-placeholder,
textarea:-moz-placeholder {
color: #999999;

View File

@ -149,6 +149,16 @@ input[type="checkbox"]:focus {
.tab-focus();
}
// Fix for Chrome number input
// Setting certain font-sizes causes the `I` bar to appear on hover of the bottom increment button.
// See https://github.com/twitter/bootstrap/issues/8350 for more.
input[type="number"] {
&::-webkit-outer-spin-button
&::-webkit-inner-spin-button {
height: auto;
}
}
// Placeholder
// -------------------------