diff options
| author | Burak Tuyan <[email protected]> | 2012-01-27 20:48:37 +0200 |
|---|---|---|
| committer | Burak Tuyan <[email protected]> | 2012-01-27 20:48:37 +0200 |
| commit | 16a28d881ced62b6b5c9ed4fae280b45857d1b9d (patch) | |
| tree | 260b573d4d994e632b2e025f98b3fa2885af0cd7 | |
| parent | acaa3b59775d6e4c3f4776027bb325b418dca6b5 (diff) | |
| parent | 97546adc90a9c8149bb4560641b4164338e38063 (diff) | |
| download | bootstrap-16a28d881ced62b6b5c9ed4fae280b45857d1b9d.tar.xz bootstrap-16a28d881ced62b6b5c9ed4fae280b45857d1b9d.zip | |
Merge branch '2.0-wip' of git://github.com/twitter/bootstrap into 2.0-wip
| -rw-r--r-- | docs/assets/css/bootstrap.css | 17 | ||||
| -rw-r--r-- | docs/templates/pages/download.mustache | 6 | ||||
| -rw-r--r-- | docs/templates/pages/scaffolding.mustache | 8 | ||||
| -rw-r--r-- | less/buttons.less | 7 | ||||
| -rw-r--r-- | less/forms.less | 10 | ||||
| -rw-r--r-- | less/tables.less | 1 |
6 files changed, 45 insertions, 4 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index c878d70ff..0d4b2d28d 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/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: Thu Jan 26 22:39:03 PST 2012 + * Date: Fri Jan 27 12:16:22 EST 2012 */ article, aside, @@ -604,6 +604,9 @@ input:focus, textarea:focus { -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); outline: 0; + outline: 1px dotted #666 \9; + /* IE6-8 */ + } input[type=file]:focus, input[type=checkbox]:focus, select:focus { -webkit-box-shadow: none; @@ -884,6 +887,12 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } +.input-append input:first-child { + *margin-left: -160px; +} +.input-append input:first-child + .add-on { + *margin-left: -21px; +} .search-query { padding-left: 14px; padding-right: 14px; @@ -969,6 +978,7 @@ table { .table-bordered { border: 1px solid #ddd; border-collapse: separate; + *border-collapse: collapsed; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; @@ -2535,6 +2545,8 @@ table .span12 { .btn { display: inline-block; padding: 4px 10px 4px; + *padding: 2px 10px; + *margin-left: 4px; font-size: 13px; line-height: 18px; color: #333333; @@ -2557,6 +2569,9 @@ table .span12 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); cursor: pointer; } +.btn:first-child { + *margin-left: 0; +} .btn:hover { color: #333333; text-decoration: none; diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index 0f997d368..5b9f765ab 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -19,7 +19,7 @@ <section class="download" id="components"> <div class="page-header"> - <a class="pull-right toggle-all" href="#">Toggle all</a> + <a class="btn small pull-right toggle-all" href="#">Toggle all</a> <h1> 1. Select components <small>Get just the CSS you need</small> @@ -79,7 +79,7 @@ <section class="download" id="variables"> <div class="page-header"> - <a class="pull-right toggle-all" href="#">Reset to defaults</a> + <a class="btn small pull-right toggle-all" href="#">Reset to defaults</a> <h1> 2. Modify variables <small>Customize Bootstrap without using a LESS compiler</small> @@ -157,7 +157,7 @@ <section class="download" id="plugins"> <div class="page-header"> - <a class="pull-right toggle-all" href="#">Toggle all</a> + <a class="btn small pull-right toggle-all" href="#">Toggle all</a> <h1> 3. Select jQuery plugins <small>Quickly add only the necessary javascript</small> diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 7781e86f6..cf672cc6e 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -71,6 +71,8 @@ </div> </div><!-- /row --> + <br> + <h2>Offsetting columns</h2> <div class="row show-grid"> <div class="span4">4</div> @@ -83,6 +85,12 @@ <div class="row show-grid"> <div class="span8 offset4">8 offset 4</div> </div><!-- /row --> +<pre class="prettyprint linenums"> +<div class="row"> + <div class="span4">...</div> + <div class="span4 offset4">...</div> +</div> +</pre> <br> diff --git a/less/buttons.less b/less/buttons.less index d7f533783..f18cf9d95 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -67,6 +67,13 @@ // Button Base display: inline-block; padding: 4px 10px 4px; + *padding: 2px 10px; + // IE7 likes to collapse the whitespace before the button, so bring it back... + *margin-left: 4px; + &:first-child { + // ...but not before the first button + *margin-left: 0; + } font-size: @baseFontSize; line-height: @baseLineHeight; color: @grayDark; diff --git a/less/forms.less b/less/forms.less index 9e2e1dc1b..55a646368 100644 --- a/less/forms.less +++ b/less/forms.less @@ -192,6 +192,7 @@ textarea:focus { @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); .box-shadow(@shadow); outline: 0; + outline: 1px dotted #666 \9; /* IE6-8 */ } input[type=file]:focus, input[type=checkbox]:focus, @@ -439,6 +440,15 @@ select:focus:required:invalid { margin-left: -1px; .border-radius(0 3px 3px 0); } + input:first-child { + // In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input + // inherit the sum of its ancestors' margins. + *margin-left: -160px; + + &+.add-on { + *margin-left: -21px; + } + } } diff --git a/less/tables.less b/less/tables.less index 809c2f60e..c069ed588 100644 --- a/less/tables.less +++ b/less/tables.less @@ -64,6 +64,7 @@ table { .table-bordered { border: 1px solid #ddd; border-collapse: separate; // Done so we can round those corners! + *border-collapse: collapsed; // IE7 can't round corners anyway .border-radius(4px); th + th, td + td, |
