2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +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
+11 -4
View File
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Thu Jan 5 10:00:31 PST 2012
* Date: Thu Jan 5 14:10:04 PST 2012
*/
html, body {
margin: 0;
@@ -615,6 +615,16 @@ input[type=image] {
textarea {
height: auto;
}
.radio, .checkbox {
padding-left: 18px;
}
.radio input[type=radio], .checkbox input[type=checkbox] {
float: left;
margin-left: -18px;
}
.controls > .radio:first-child, .controls > .checkbox:first-child {
padding-top: 6px;
}
input, textarea {
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
@@ -986,9 +996,6 @@ textarea[readonly] {
.horizontal-form .controls {
margin-left: 150px;
}
.horizontal-form .controls > .radio:first-child, .horizontal-form .controls > .checkbox:first-child {
padding-top: 6px;
}
.horizontal-form .form-actions {
padding-left: 150px;
}