From c53e394f71e54359e204f4e5f35eecb93dac65ef Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 30 Jun 2011 13:51:13 -0700 Subject: [PATCH] changing stacked forms to be lined up left side w/ 20px --- bootstrap-1.0.0.css | 7 +++++++ bootstrap-1.0.0.min.css | 3 ++- docs/assets/js/application.js | 1 - docs/index.html | 24 ++++++++++++------------ lib/forms.less | 5 +++++ 5 files changed, 26 insertions(+), 14 deletions(-) diff --git a/bootstrap-1.0.0.css b/bootstrap-1.0.0.css index fe3e12fd96..6d5536c05a 100644 --- a/bootstrap-1.0.0.css +++ b/bootstrap-1.0.0.css @@ -862,6 +862,9 @@ ul.inputs-list li:first-child { ul.inputs-list input[type=radio], ul.inputs-list input[type=checkbox] { margin-bottom: 0; } +form.form-stacked { + padding-left: 20px; +} form.form-stacked fieldset { padding-top: 9px; } @@ -893,6 +896,10 @@ form.form-stacked ul.inputs-list li label { font-weight: normal; padding-top: 0; } +form.form-stacked div.actions { + margin-left: -20px; + padding-left: 20px; +} /* * Tables.less * Tables for, you guessed it, tabular data diff --git a/bootstrap-1.0.0.min.css b/bootstrap-1.0.0.min.css index 9f0df6e35d..23457db919 100644 --- a/bootstrap-1.0.0.min.css +++ b/bootstrap-1.0.0.min.css @@ -107,11 +107,12 @@ ul.inputs-list li label small{font-size:12px;font-weight:normal;} ul.inputs-list li ul.inputs-list{margin-left:25px;margin-bottom:10px;padding-top:0;} ul.inputs-list li:first-child{padding-top:5px;} ul.inputs-list input[type=radio],ul.inputs-list input[type=checkbox]{margin-bottom:0;} -form.form-stacked fieldset{padding-top:9px;} +form.form-stacked{padding-left:20px;}form.form-stacked fieldset{padding-top:9px;} form.form-stacked legend{margin-left:0;} form.form-stacked label{display:block;float:none;width:auto;font-weight:bold;text-align:left;line-height:20px;padding-top:0;} form.form-stacked div.clearfix{margin-bottom:9px;}form.form-stacked div.clearfix div.input{margin-left:0;} form.form-stacked ul.inputs-list{margin-bottom:0;}form.form-stacked ul.inputs-list li{padding-top:0;}form.form-stacked ul.inputs-list li label{font-weight:normal;padding-top:0;} +form.form-stacked div.actions{margin-left:-20px;padding-left:20px;} table{width:100%;margin-bottom:18px;padding:0;text-align:left;border-collapse:separate;font-size:13px;}table th,table td{padding:10px 10px 9px;line-height:13.5px;vertical-align:middle;border-bottom:1px solid #ddd;} table th{padding-top:9px;font-weight:bold;border-bottom-width:2px;} table.zebra-striped tbody tr:nth-child(odd) td{background-color:#f5f5f5;} diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 3993c353e7..e5cdefdee0 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -34,7 +34,6 @@ $(document).ready(function(){ } }); - // Copy code blocks in docs $(".copy-code").focus(function() { $(this).select(); diff --git a/docs/index.html b/docs/index.html index b2f9134145..e7929e8eec 100644 --- a/docs/index.html +++ b/docs/index.html @@ -397,10 +397,10 @@
Description lists
A description list is perfect for defining terms.
-
Your mom
+
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
-
And your dad
+
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
@@ -446,8 +446,8 @@ 1 - Your - Mom + Some + One English @@ -483,8 +483,8 @@ 1 - Your - Mom + Some + One English @@ -521,7 +521,7 @@ 1 Your - Mom + One English @@ -856,21 +856,21 @@

diff --git a/lib/forms.less b/lib/forms.less index ab82c6a09b..74aa7a4dff 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -291,6 +291,7 @@ ul.inputs-list { // Stacked forms form.form-stacked { + padding-left: 20px; fieldset { padding-top: @baseline / 2; } @@ -322,4 +323,8 @@ form.form-stacked { } } } + div.actions { + margin-left: -20px; + padding-left: 20px; + } }