aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-28 13:07:01 -0800
committerMark Otto <[email protected]>2012-01-28 13:07:01 -0800
commit296d06a285d91200b4063f3bdde65c094495ee24 (patch)
treebe2166daaccad868c94e0ea855f2491335f6ab5b
parent70c6a6cd855a617b086682ef919e02cf67d4e86e (diff)
downloadbootstrap-296d06a285d91200b4063f3bdde65c094495ee24.tar.xz
bootstrap-296d06a285d91200b4063f3bdde65c094495ee24.zip
add checkbox/radio border for ios in responsive
-rw-r--r--docs/assets/css/bootstrap-responsive.css3
-rw-r--r--docs/assets/css/bootstrap.css3
-rw-r--r--less/forms.less3
-rw-r--r--less/responsive.less6
4 files changed, 11 insertions, 4 deletions
diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css
index 0d975824b..b991d1242 100644
--- a/docs/assets/css/bootstrap-responsive.css
+++ b/docs/assets/css/bootstrap-responsive.css
@@ -7,6 +7,9 @@
display: block;
line-height: 18px;
}
+ input[type="checkbox"], input[type="radio"] {
+ border: 1px solid #ccc;
+ }
.form-horizontal .control-group > label {
float: none;
width: auto;
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 74cef08f2..d9050d3b6 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -533,8 +533,7 @@ input[type="image"], input[type="checkbox"], input[type="radio"] {
/* IE7 */
line-height: normal;
- border: none;
- border: initial;
+ border: 0;
cursor: pointer;
border-radius: 0 \0/;
}
diff --git a/less/forms.less b/less/forms.less
index f327b4faa..3792bf420 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -84,8 +84,7 @@ input[type="radio"] {
margin: 3px 0;
*margin-top: 0; /* IE7 */
line-height: normal;
- border: none;
- border: initial;
+ border: 0;
cursor: pointer;
border-radius: 0 e("\0/");
}
diff --git a/less/responsive.less b/less/responsive.less
index 4ce4aff72..2d49f2095 100644
--- a/less/responsive.less
+++ b/less/responsive.less
@@ -33,6 +33,12 @@
line-height: @baseLineHeight;
}
+ // Update checkboxes for iOS
+ input[type="checkbox"],
+ input[type="radio"] {
+ border: 1px solid #ccc;
+ }
+
// Remove the horizontal form styles
.form-horizontal .control-group > label {
float: none;