aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-28 14:50:56 -0800
committerMark Otto <[email protected]>2012-01-28 14:50:56 -0800
commit7843a665fdc18c1199766d6c65f192209ec35741 (patch)
tree9e9c5f62cdcf165ad5f3f01c14f78a15f26bb2e0 /less
parent9db4f2a344ebf452b88ac4af0261192f3a8e9eb6 (diff)
downloadbootstrap-7843a665fdc18c1199766d6c65f192209ec35741.tar.xz
bootstrap-7843a665fdc18c1199766d6c65f192209ec35741.zip
vertical align inline checkboxes/radios to improve rendering in topbar
Diffstat (limited to 'less')
-rw-r--r--less/forms.less3
-rw-r--r--less/navbar.less9
2 files changed, 11 insertions, 1 deletions
diff --git a/less/forms.less b/less/forms.less
index 3792bf420..b0daeb034 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -86,7 +86,7 @@ input[type="radio"] {
line-height: normal;
border: 0;
cursor: pointer;
- border-radius: 0 e("\0/");
+ border-radius: 0 e("\0/"); // Nuke border-radius for IE9 only
}
// Reset the file input to browser defaults
@@ -169,6 +169,7 @@ input[type="hidden"] {
.checkbox.inline {
display: inline-block;
margin-bottom: 0;
+ vertical-align: middle;
}
.radio.inline + .radio.inline,
.checkbox.inline + .checkbox.inline {
diff --git a/less/navbar.less b/less/navbar.less
index 287459a27..63484fc3c 100644
--- a/less/navbar.less
+++ b/less/navbar.less
@@ -63,6 +63,15 @@
margin-top: 5px;
margin-bottom: 0;
}
+ .radio,
+ .checkbox {
+ margin-top: 5px;
+ }
+ input[type="image"],
+ input[type="checkbox"],
+ input[type="radio"] {
+ margin-top: 3px;
+ }
}
// Navbar search