aboutsummaryrefslogtreecommitdiff
path: root/lib/forms.less
diff options
context:
space:
mode:
authorNicolas Gallagher <[email protected]>2012-01-20 21:16:40 +0000
committerNicolas Gallagher <[email protected]>2012-01-20 21:21:59 +0000
commit782c994060a984c10d73fdd3cc8e3fe33a2e4477 (patch)
tree335492965ee4307054e956cf3aa97a2072422b48 /lib/forms.less
parent8825443d6e6ff28a97e092f46b42ec508e58cb05 (diff)
downloadbootstrap-782c994060a984c10d73fdd3cc8e3fe33a2e4477.tar.xz
bootstrap-782c994060a984c10d73fdd3cc8e3fe33a2e4477.zip
Remove global reset in favour of contextual reset.
Rather than having a partial reset with individual elements having their styles built back up, only elements without replacement styles have specific properties 'reset'. This commit also includes: a correction to the font mixin arguments used on forms (the output is now valid CSS); the removal of `overflow-y:scroll` from the `html` element which is now known to cause some problems for jQuery modal plugins in Firefox.
Diffstat (limited to 'lib/forms.less')
-rw-r--r--lib/forms.less13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/forms.less b/lib/forms.less
index e956b0046..0cc7f2035 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -8,17 +8,25 @@
// Make all forms have space below them
form {
- margin-bottom: @baseLineHeight;
+ margin: 0 0 @baseLineHeight;
+}
+
+fieldset {
+ padding: 0;
+ margin: 0;
+ border: 0;
}
// Groups of fields with labels on top (legends)
legend {
display: block;
width: 100%;
+ padding: 0;
margin-bottom: @baseLineHeight * 1.5;
font-size: @baseFontSize * 1.5;
line-height: @baseLineHeight * 2;
color: @grayDark;
+ border: 0;
border-bottom: 1px solid #eee;
-webkit-margin-collapse: separate;
}
@@ -26,9 +34,10 @@ legend {
// Set font for forms
label,
input,
+button,
select,
textarea {
- #font > .sans-serif(normal,@baseFontSize,@baseLineHeight);
+ #font > .sans-serif(@baseFontSize,normal,@baseLineHeight);
}
// Identify controls by their labels