aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-01-22 21:43:08 -0600
committerMark Otto <[email protected]>2014-01-22 21:43:08 -0600
commit08e83a62b7a3b12d459b2e025661e60024b10ca7 (patch)
tree4ab78d0c292ef01e174dfad99db0f1784e275029 /less
parent833c208bf5e88e438ae1eb360782b2364cd03915 (diff)
downloadbootstrap-08e83a62b7a3b12d459b2e025661e60024b10ca7.tar.xz
bootstrap-08e83a62b7a3b12d459b2e025661e60024b10ca7.zip
Fix #11655: Fix broken disabled states for iOS form controls and buttons
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less1
-rw-r--r--less/forms.less10
2 files changed, 9 insertions, 2 deletions
diff --git a/less/buttons.less b/less/buttons.less
index 4858a8aea..3577f82da 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -43,6 +43,7 @@
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
+ opacity: 1; // iOS fix for unreadable disabled content
}
}
diff --git a/less/forms.less b/less/forms.less
index 9c765c2ba..375a387ef 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -33,6 +33,10 @@ label {
// Normalize form controls
+//
+// While most of our form styles require extra classes, some basic normalization
+// is required to ensure optimum display with or without those classes to better
+// address browser inconsistencies.
// Override content-box in Normalize (* isn't specific enough)
input[type="search"] {
@@ -79,8 +83,9 @@ input[type="checkbox"]: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/twbs/bootstrap/issues/8350 for more.
+//
+// Setting certain font-sizes causes the `I` bar to appear on hover of the
+// bottom increment button. See https://github.com/twbs/bootstrap/issues/8350.
input[type="number"] {
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
@@ -150,6 +155,7 @@ output {
fieldset[disabled] & {
cursor: not-allowed;
background-color: @input-bg-disabled;
+ opacity: 1; // iOS fix for unreadable disabled content
}
// Reset height for `textarea`s