From c843e202b53502f8e973419bc5ea9c62f87f9c89 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 3 Oct 2011 22:27:15 -0700 Subject: [PATCH] make it so that checkboxes and radio options-list can have wrapping labels; needs to be cross browser tested yet --- bootstrap.css | 5 ++++- bootstrap.min.css | 4 ++-- docs/index.html | 2 +- lib/forms.less | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bootstrap.css b/bootstrap.css index a7ba4c649..63f01b2ac 100644 --- a/bootstrap.css +++ b/bootstrap.css @@ -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: Mon Oct 3 22:00:55 PDT 2011 + * Date: Mon Oct 3 22:26:41 PDT 2011 */ /* Reset.less * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). @@ -974,6 +974,7 @@ textarea[readonly] { float: none; width: auto; padding: 0; + margin-left: 20px; line-height: 18px; text-align: left; white-space: normal; @@ -998,6 +999,8 @@ textarea[readonly] { } .inputs-list input[type=radio], .inputs-list input[type=checkbox] { margin-bottom: 0; + margin-left: -20px; + float: left; } .form-stacked { padding-left: 20px; diff --git a/bootstrap.min.css b/bootstrap.min.css index e9d26649c..a49985570 100644 --- a/bootstrap.min.css +++ b/bootstrap.min.css @@ -167,12 +167,12 @@ input[disabled],select[disabled],textarea[disabled],input[readonly],select[reado .input-append input{float:left;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;} .input-append .add-on{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;margin-right:0;margin-left:-1px;} .inputs-list{margin:0 0 5px;width:100%;}.inputs-list li{display:block;padding:0;width:100%;} -.inputs-list label{display:block;float:none;width:auto;padding:0;line-height:18px;text-align:left;white-space:normal;}.inputs-list label strong{color:#808080;} +.inputs-list label{display:block;float:none;width:auto;padding:0;margin-left:20px;line-height:18px;text-align:left;white-space:normal;}.inputs-list label strong{color:#808080;} .inputs-list label small{font-size:11px;font-weight:normal;} .inputs-list .inputs-list{margin-left:25px;margin-bottom:10px;padding-top:0;} .inputs-list:first-child{padding-top:6px;} .inputs-list li+li{padding-top:2px;} -.inputs-list input[type=radio],.inputs-list input[type=checkbox]{margin-bottom:0;} +.inputs-list input[type=radio],.inputs-list input[type=checkbox]{margin-bottom:0;margin-left:-20px;float:left;} .form-stacked{padding-left:20px;}.form-stacked fieldset{padding-top:9px;} .form-stacked legend{padding-left:0;} .form-stacked label{display:block;float:none;width:auto;font-weight:bold;text-align:left;line-height:20px;padding-top:0;} diff --git a/docs/index.html b/docs/index.html index c75ecc837..2b2d4f9d9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1107,7 +1107,7 @@
  • diff --git a/lib/forms.less b/lib/forms.less index 85e6e361e..7c9cc7c62 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -387,6 +387,7 @@ textarea[readonly] { float: none; width: auto; padding: 0; + margin-left: 20px; line-height: @baseline; text-align: left; white-space: normal; @@ -412,6 +413,8 @@ textarea[readonly] { input[type=radio], input[type=checkbox] { margin-bottom: 0; + margin-left: -20px; + float: left; } }