aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-05 14:11:41 -0800
committerMark Otto <[email protected]>2012-01-05 14:11:41 -0800
commit23e5fc2133dd748ba4a7df52b598a24a2915811a (patch)
tree189976f1c88f327a2906a5b2e69c14058caa615d /lib
parent20add59de3f2b69aaa9c9b325dab20b13c75eaa1 (diff)
downloadbootstrap-23e5fc2133dd748ba4a7df52b598a24a2915811a.tar.xz
bootstrap-23e5fc2133dd748ba4a7df52b598a24a2915811a.zip
Tweak the docs and address the new forms list of controls: radios and checkboxes are now hanging controls to wrap text properly
Diffstat (limited to 'lib')
-rw-r--r--lib/forms.less27
-rw-r--r--lib/patterns.less13
2 files changed, 22 insertions, 18 deletions
diff --git a/lib/forms.less b/lib/forms.less
index 0c624fa88..32acbdaba 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -116,6 +116,28 @@ textarea {
+// CHECKBOXES & RADIOS
+// -------------------
+
+// Indent the labels to position radios/checkboxes as hanging
+.radio,
+.checkbox {
+ padding-left: 18px;
+}
+.radio input[type=radio],
+.checkbox input[type=checkbox] {
+ float: left;
+ margin-left: -18px;
+}
+
+// Move the options list down to align with labels
+.controls > .radio:first-child,
+.controls > .checkbox:first-child {
+ padding-top: 6px; // has to be padding because margin collaspes
+}
+
+
+
// FOCUS STATE
// -----------
@@ -390,11 +412,6 @@ textarea[readonly] {
.controls {
margin-left: 150px;
}
- // Move the options list down to align with labels
- .controls > .radio:first-child,
- .controls > .checkbox:first-child {
- padding-top: 6px; // has to be padding because margin collaspes
- }
// Move over buttons in .form-actions to align with .controls
.form-actions {
padding-left: 150px;
diff --git a/lib/patterns.less b/lib/patterns.less
index 72c3e8ec5..7a039ce26 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -28,16 +28,3 @@ footer {
margin-top: @baseLineHeight - 1;
border-top: 1px solid #eee;
}
-
-
-// PAGE HEADERS
-// ------------
-
-.page-header {
- margin-bottom: @baseLineHeight * 1.5;
- border-bottom: 1px solid #eee;
- .box-shadow(0 1px 0 rgba(255,255,255,.5));
- h1 {
- margin-bottom: @baseLineHeight * .75;
- }
-}