2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

Tweak the docs and address the new forms list of controls: radios and checkboxes are now hanging controls to wrap text properly

This commit is contained in:
Mark Otto
2012-01-05 14:11:41 -08:00
parent 20add59de3
commit 23e5fc2133
6 changed files with 49 additions and 25 deletions
+22 -5
View File
@@ -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;