aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-01 19:49:29 -0700
committerMark Otto <[email protected]>2013-07-01 19:49:29 -0700
commit5b2d933524616c9948c9e5229c14e109aa83727a (patch)
tree4b07d387da10c36a0fc13a214a445d25cb35e7cb
parent08b3515fd7dfa76cdbb92d52a15d6797f3a1c4ed (diff)
downloadbootstrap-5b2d933524616c9948c9e5229c14e109aa83727a.tar.xz
bootstrap-5b2d933524616c9948c9e5229c14e109aa83727a.zip
Fixes #8350: unfuck Chrome number input element cursor /cc @cvrebert @eintnohick
-rw-r--r--docs/assets/css/bootstrap.css4
-rw-r--r--less/forms.less10
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index cb80d5c36..6a426850a 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -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;
diff --git a/less/forms.less b/less/forms.less
index ea340007c..45f453789 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -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
// -------------------------