aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-04-27 23:00:33 -0700
committerMark Otto <[email protected]>2011-04-27 23:00:33 -0700
commitb95e99a173f50dbbca2478338f42165532289db7 (patch)
tree284cfa64dbf53058d07b8bbb3be79f826f12a06d /less/forms.less
parentb9d6acf766728b0bf28fe4d7644a80651f9b0e1c (diff)
downloadbootstrap-b95e99a173f50dbbca2478338f42165532289db7.tar.xz
bootstrap-b95e99a173f50dbbca2478338f42165532289db7.zip
Updated documentation; added stacked forms; cleaned up spacing; moved all ids to the section element instead of the page header to fix spacing with bookmarked links;
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less61
1 files changed, 16 insertions, 45 deletions
diff --git a/less/forms.less b/less/forms.less
index 4ebedc745..6447fd39f 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -4,11 +4,11 @@
*/
-
/* Global form styles
-------------------------------------------------- */
form {
+ margin-bottom: @baseline;
// Groups of fields with labels on top (legends)
fieldset {
margin-bottom: @baseline;
@@ -64,11 +64,13 @@ form {
border: 1px solid #bbb;
.border-radius(3px);
}
- select,
- input[type=file] {
+ select {
height: @baseline * 1.5;
line-height: @baseline * 1.5;
}
+ input[type=file] {
+ line-height: @baseline * 1.5;
+ }
textarea {
height: auto;
}
@@ -300,42 +302,13 @@ ul.inputs-list {
}
}
-/* Disabled states for form elements, containing elements, and help text */
-div.disabled span {
- color: #aaa;
-}
-div.disabled input[type=text],
-div.disabled input[type=passsword],
-div.disabled textarea {
- background: #f5f5f5;
-}
-ul.options label.disabled,
-ul.options label.disabled span,
-ul.options label.disabled small,
-ul.options label.disabled strong {
- color: #aaa !important;
-}
-
-
// Stacked forms
-form.stacked-form {
- h4, p {
- margin: 0 0 2px;
- color: rgba(0,0,0,.5);
- }
+form.form-stacked {
fieldset {
- margin: 0;
- padding: 19px 0 0;
- border-top-color: rgba(0,0,0,.1);
- }
- div.actions {
- margin-left: 0;
- padding: 19px 0 30px 180px;
- border-top: 1px solid rgba(0,0,0,.1);
- }
+ padding-top: @baseline / 2;
+ }
legend {
- margin: 0;
- padding: 0;
+ margin-left: 0;
}
label {
display: block;
@@ -346,16 +319,14 @@ form.stacked-form {
line-height: 20px;
padding-top: 1px;
}
- div.input {
- margin: 0;
- }
div.clearfix {
- margin-bottom: 10px;
- }
- div.six.columns input, div.six.columns textarea, div.six.columns select {
- width: 320px;
+ margin-bottom: @baseline / 2;
+ div.input {
+ margin-left: 0;
+ }
}
- div.three.columns input, div.three.columns textarea, div.three.columns select {
- width: 150px;
+ ul.inputs-list li label {
+ font-weight: normal;
+ padding-top: 0;
}
}