diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index c850abc896..18f938cf9c 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index 4d464ea88d..c8c6302964 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -25,7 +25,7 @@ .uneditable-input { display: block; width: 100%; - height: 28px; + min-height: 28px; /* Make inputs at least the height of their button counterpart */ /* Makes inputs behave like true block-level elements */ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 50d1f6944d..1f2aae23e1 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -374,7 +374,7 @@ ol { li { line-height: 18px; } -ul.unstyled { +ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } @@ -393,7 +393,7 @@ dd { hr { margin: 18px 0; border: 0; - border-top: 1px solid #e5e5e5; + border-top: 1px solid #eeeeee; border-bottom: 1px solid #ffffff; } strong { @@ -498,6 +498,10 @@ pre code { background-color: transparent; border: 0; } +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} form { margin: 0 0 18px; } @@ -517,6 +521,10 @@ legend { border: 0; border-bottom: 1px solid #eee; } +legend small { + font-size: 13.5px; + color: #999999; +} label, input, button, @@ -595,6 +603,9 @@ select, input[type="file"] { line-height: 28px; } +input[type="file"] { + line-height: 18px \9; +} select { width: 220px; background-color: #ffffff; @@ -649,7 +660,7 @@ input:focus, textarea:focus { box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); outline: 0; outline: thin dotted \9; - /* IE6-8 */ + /* IE6-9 */ } input[type="file"]:focus, @@ -960,10 +971,17 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec .form-inline .input-prepend .add-on { vertical-align: middle; } +.form-search .radio, +.form-inline .radio, +.form-search .checkbox, +.form-inline .checkbox { + margin-bottom: 0; + vertical-align: middle; +} .control-group { margin-bottom: 9px; } -.form-horizontal legend + .control-group { +legend + .control-group { margin-top: 18px; -webkit-margin-top-collapse: separate; } @@ -1003,14 +1021,14 @@ table { padding: 8px; line-height: 18px; text-align: left; + vertical-align: top; border-top: 1px solid #ddd; } .table th { font-weight: bold; - vertical-align: bottom; } -.table td { - vertical-align: top; +.table thead th { + vertical-align: bottom; } .table thead:first-child tr th, .table thead:first-child tr td { border-top: 0; @@ -1124,7 +1142,7 @@ table .span12 { width: 924px; margin-left: 0; } -[class^="icon-"] { +[class^="icon-"], [class*=" icon-"] { display: inline-block; width: 14px; height: 14px; @@ -1135,7 +1153,7 @@ table .span12 { background-repeat: no-repeat; *margin-right: .3em; } -[class^="icon-"]:last-child { +[class^="icon-"]:last-child, [class*=" icon-"]:last-child { *margin-left: 0; } .icon-white { @@ -1721,7 +1739,6 @@ table .span12 { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); background-color: #e6e6e6; background-color: #d9d9d9 \9; - color: rgba(0, 0, 0, 0.5); outline: 0; } .btn.disabled, .btn[disabled] { @@ -2268,6 +2285,9 @@ button.btn.small, input[type="submit"].btn.small { .tabbable:after { clear: both; } +.tab-content { + overflow: hidden; +} .tabs-below .nav-tabs, .tabs-right .nav-tabs, .tabs-left .nav-tabs { border-bottom: 0; } diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index c3a6848d74..a532d0819d 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -481,9 +481,6 @@ hr.soften { /* Misc -------------------------------------------------- */ -pre.prettyprint { - overflow: hidden; -} .browser-support { max-width: 100%; @@ -546,28 +543,12 @@ form.well { /* Icons ------------------------- */ .the-icons { - margin-bottom: 18px; -} -.the-icons i { - display: block; - margin-bottom: 5px; + margin-left: 0; + list-style: none; } .the-icons i:hover { background-color: rgba(255,0,0,.25); } -.the-icons i:after { - display: block; - content: attr(class); - font-style: normal; - margin-left: 20px; - width: 140px; -} -#javascript input[type=checkbox] { - position: relative; - top: -1px; - display: inline; - margin-left: 6px; -} /* Eaxmples page ------------------------- */ diff --git a/docs/base-css.html b/docs/base-css.html index 3317f9321d..845f0460e1 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -375,7 +375,7 @@ For example, <code>section</code> should be wrapped as inline.

Basic block

-

Use <pre> for multiple lines of code. Be sure to turn any angle brackets into unicode characters for proper rendering.

+

Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

 <p>Sample text here...</p>
 
@@ -385,6 +385,7 @@ For example, <code>section</code> should be wrapped as inline. </pre>

Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

+

You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.

Google Prettify

@@ -906,7 +907,10 @@ For example, <code>section</code> should be wrapped as inline.
- + +
 <form class="well form-inline">
@@ -980,7 +984,7 @@ For example, <code>section</code> should be wrapped as inline.
           
- +
@@ -1089,7 +1093,7 @@ For example, <code>section</code> should be wrapped as inline.
- +
@@ -1213,7 +1217,7 @@ For example, <code>section</code> should be wrapped as inline.
- +
@@ -1297,23 +1301,27 @@ For example, <code>section</code> should be wrapped as inline.

Multiple sizes

Fancy larger or smaller buttons? Add .btn-large or .btn-small for two additional sizes.

- Primary action - Action + +

- Primary action - Action + +


Disabled state

-

For disabled buttons, use .btn-disabled for links and :disabled for <button> elements.

+

For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.

- Primary action - Action + Primary link + Link +

+

+ +

- - + Heads up! + We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.

@@ -1350,144 +1358,140 @@ For example, <code>section</code> should be wrapped as inline.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
@@ -1514,10 +1518,6 @@ For example, <code>section</code> should be wrapped as inline. <i class="icon-search icon-white"></i>

There are 120 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.

-
- Heads up! - The .icon- class must be listed first in the class tag for proper CSS targeting. -

Use cases

diff --git a/docs/components.html b/docs/components.html index 2a31528ea0..cb41c736ed 100644 --- a/docs/components.html +++ b/docs/components.html @@ -118,14 +118,34 @@

Button groups

Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.

-

You can also combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex projects.

-
-
+

Best practices

+

We recommend the following guidelines for using button groups and toolbars:

+
    +
  • Always use the same element in a single button group, <a> or <button>.
  • +
  • Don't mix buttons of different colors in the same button group.
  • +
  • Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.
  • +
+

Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.

+
+
+

Default example

+

Here's how the HTML looks for a standard button group built with anchor tag buttons:

+
+
+
+<div class="btn-group">
+  <a class="btn" href="#">1</a>
+  <a class="btn" href="#">2</a>
+  <a class="btn" href="#">3</a>
+</div>
+
+

Toolbar example

+

Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

1 @@ -142,18 +162,6 @@ 8
-
-
-

Example markup

-

Here's how the HTML looks for a standard button group built with anchor tag buttons:

-
-<div class="btn-group">
-  <a class="btn" href="#">1</a>
-  <a class="btn" href="#">2</a>
-  <a class="btn" href="#">3</a>
-</div>
-
-

And with a toolbar for multiple groups:

 <div class="btn-toolbar">
   <div class="btn-group">
diff --git a/docs/javascript.html b/docs/javascript.html
index 861c18c1a8..c30282f283 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -134,7 +134,7 @@
         
@@ -700,14 +700,14 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

About Tooltips

-

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.

+

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.

Download file

Example use of Tooltips

Hover over the links below to see tooltips:

-

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. +

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.


diff --git a/docs/less.html b/docs/less.html index 92b9099f5f..0d1527fb35 100644 --- a/docs/less.html +++ b/docs/less.html @@ -123,7 +123,7 @@

Operations

-

Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiple, divide, add, and subtract your way to CSS sanity.

+

Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.

@@ -717,8 +717,8 @@

Node with makefile

-

Install the LESS command line compiler with npm by running the following command:

-
$ npm install less
+

Install the LESS command line compiler globally with npm by running the following command:

+
$ npm install -g less

Once installed just run make from the root of your bootstrap directory and you're all set.

Additionally, if you have watchr installed, you may run make watch to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).

diff --git a/docs/scaffolding.html b/docs/scaffolding.html index b2962f3176..58bf88b24e 100644 --- a/docs/scaffolding.html +++ b/docs/scaffolding.html @@ -173,7 +173,8 @@

With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.

-

Example

+

Example

+

Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested .span3 columns should be placed within a .span6.

Level 1 of column @@ -187,6 +188,21 @@
+

Fluid example

+

Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.

+
+
+ Fluid 12 +
+
+ Fluid 6 +
+
+ Fluid 6 +
+
+
+
@@ -315,7 +331,7 @@
     

Supported devices

-

Bootstrap supports a handful of media queries to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

+

Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

@@ -339,7 +355,7 @@ - + diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 8fe3443a60..04d2c7c074 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -299,7 +299,7 @@

Basic block

-

{{_i}}Use <pre> for multiple lines of code. Be sure to turn any angle brackets into unicode characters for proper rendering.{{/i}}

+

{{_i}}Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.{{/i}}

 <p>{{_i}}Sample text here...{{/i}}</p>
 
@@ -309,6 +309,7 @@ </pre>

{{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

+

{{_i}}You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}

Google Prettify

@@ -830,7 +831,10 @@
- + +
 <form class="well form-inline">
@@ -904,7 +908,7 @@
           
- +
@@ -1013,7 +1017,7 @@
- +
@@ -1137,7 +1141,7 @@
- +
@@ -1221,23 +1225,27 @@

{{_i}}Multiple sizes{{/i}}

{{_i}}Fancy larger or smaller buttons? Add .btn-large or .btn-small for two additional sizes.{{/i}}

- {{_i}}Primary action{{/i}} - {{_i}}Action{{/i}} + +

- {{_i}}Primary action{{/i}} - {{_i}}Action{{/i}} + +


{{_i}}Disabled state{{/i}}

-

{{_i}}For disabled buttons, use .btn-disabled for links and :disabled for <button> elements.{{/i}}

+

{{_i}}For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.{{/i}}

- {{_i}}Primary action{{/i}} - {{_i}}Action{{/i}} + {{_i}}Primary link{{/i}} + {{_i}}Link{{/i}} +

+

+ +

- - + {{_i}}Heads up!{{/i}} + {{_i}}We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.{{/i}}

@@ -1274,144 +1282,140 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
    +
  • icon-glass
  • +
  • icon-music
  • +
  • icon-search
  • +
  • icon-envelope
  • +
  • icon-heart
  • +
  • icon-star
  • +
  • icon-star-empty
  • +
  • icon-user
  • +
  • icon-film
  • +
  • icon-th-large
  • +
  • icon-th
  • +
  • icon-th-list
  • +
  • icon-ok
  • +
  • icon-remove
  • +
  • icon-zoom-in
  • +
  • icon-zoom-out
  • +
  • icon-off
  • +
  • icon-signal
  • +
  • icon-cog
  • +
  • icon-trash
  • +
  • icon-home
  • +
  • icon-file
  • +
  • icon-time
  • +
  • icon-road
  • +
  • icon-download-alt
  • +
  • icon-download
  • +
  • icon-upload
  • +
  • icon-inbox
  • +
  • icon-play-circle
  • +
  • icon-repeat
  • +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
    +
  • icon-refresh
  • +
  • icon-list-alt
  • +
  • icon-lock
  • +
  • icon-flag
  • +
  • icon-headphones
  • +
  • icon-volume-off
  • +
  • icon-volume-down
  • +
  • icon-volume-up
  • +
  • icon-qrcode
  • +
  • icon-barcode
  • +
  • icon-tag
  • +
  • icon-tags
  • +
  • icon-book
  • +
  • icon-bookmark
  • +
  • icon-print
  • +
  • icon-camera
  • +
  • icon-font
  • +
  • icon-bold
  • +
  • icon-italic
  • +
  • icon-text-height
  • +
  • icon-text-width
  • +
  • icon-align-left
  • +
  • icon-align-center
  • +
  • icon-align-right
  • +
  • icon-align-justify
  • +
  • icon-list
  • +
  • icon-indent-left
  • +
  • icon-indent-right
  • +
  • icon-facetime-video
  • +
  • icon-picture
  • +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
    +
  • icon-pencil
  • +
  • icon-map-marker
  • +
  • icon-adjust
  • +
  • icon-tint
  • +
  • icon-edit
  • +
  • icon-share
  • +
  • icon-check
  • +
  • icon-move
  • +
  • icon-step-backward
  • +
  • icon-fast-backward
  • +
  • icon-backward
  • +
  • icon-play
  • +
  • icon-pause
  • +
  • icon-stop
  • +
  • icon-forward
  • +
  • icon-fast-forward
  • +
  • icon-step-forward
  • +
  • icon-eject
  • +
  • icon-chevron-left
  • +
  • icon-chevron-right
  • +
  • icon-plus-sign
  • +
  • icon-minus-sign
  • +
  • icon-remove-sign
  • +
  • icon-ok-sign
  • +
  • icon-question-sign
  • +
  • icon-info-sign
  • +
  • icon-screenshot
  • +
  • icon-remove-circle
  • +
  • icon-ok-circle
  • +
  • icon-ban-circle
  • +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
    +
  • icon-arrow-left
  • +
  • icon-arrow-right
  • +
  • icon-arrow-up
  • +
  • icon-arrow-down
  • +
  • icon-share-alt
  • +
  • icon-resize-full
  • +
  • icon-resize-small
  • +
  • icon-plus
  • +
  • icon-minus
  • +
  • icon-asterisk
  • +
  • icon-exclamation-sign
  • +
  • icon-gift
  • +
  • icon-leaf
  • +
  • icon-fire
  • +
  • icon-eye-open
  • +
  • icon-eye-close
  • +
  • icon-warning-sign
  • +
  • icon-plane
  • +
  • icon-calendar
  • +
  • icon-random
  • +
  • icon-comment
  • +
  • icon-magnet
  • +
  • icon-chevron-up
  • +
  • icon-chevron-down
  • +
  • icon-retweet
  • +
  • icon-shopping-cart
  • +
  • icon-folder-close
  • +
  • icon-folder-open
  • +
  • icon-resize-vertical
  • +
  • icon-resize-horizontal
  • +
@@ -1438,10 +1442,6 @@ <i class="icon-search icon-white"></i>

{{_i}}There are 120 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

-
- {{_i}}Heads up!{{/i}} - {{_i}}The .icon- class must be listed first in the class tag for proper CSS targeting.{{/i}} -

{{_i}}Use cases{{/i}}

diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 2262830041..62a7083b61 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -42,14 +42,34 @@

{{_i}}Button groups{{/i}}

{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.{{/i}}

-

{{_i}}You can also combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex projects.{{/i}}

-
-
+

{{_i}}Best practices{{/i}}

+

{{_i}}We recommend the following guidelines for using button groups and toolbars:{{/i}}

+
    +
  • {{_i}}Always use the same element in a single button group, <a> or <button>.{{/i}}
  • +
  • {{_i}}Don't mix buttons of different colors in the same button group.{{/i}}
  • +
  • {{_i}}Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.{{/i}}
  • +
+

{{_i}}Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}

+
+
+

{{_i}}Default example{{/i}}

+

{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}

+ +
+<div class="btn-group">
+  <a class="btn" href="#">1</a>
+  <a class="btn" href="#">2</a>
+  <a class="btn" href="#">3</a>
+</div>
+
+

{{_i}}Toolbar example{{/i}}

+

{{_i}}Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.{{/i}}

1 @@ -66,18 +86,6 @@ 8
-
-
-

{{_i}}Example markup{{/i}}

-

{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}

-
-<div class="btn-group">
-  <a class="btn" href="#">1</a>
-  <a class="btn" href="#">2</a>
-  <a class="btn" href="#">3</a>
-</div>
-
-

{{_i}}And with a toolbar for multiple groups:{{/i}}

 <div class="btn-toolbar">
   <div class="btn-group">
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 88c90ce11c..553913d21d 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -58,7 +58,7 @@
         
@@ -624,14 +624,14 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}About Tooltips{{/i}}

-

{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.{{/i}}

+

{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.{{/i}}

{{_i}}Download file{{/i}}

{{_i}}Example use of Tooltips{{/i}}

{{_i}}Hover over the links below to see tooltips:{{/i}}

-

{{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} +

{{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}}


diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index b431106acc..742b166d27 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -47,7 +47,7 @@

{{_i}}Operations{{/i}}

-

{{_i}}Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiple, divide, add, and subtract your way to CSS sanity.{{/i}}

+

{{_i}}Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.{{/i}}

@@ -641,8 +641,8 @@

{{_i}}Node with makefile{{/i}}

-

{{_i}}Install the LESS command line compiler with npm by running the following command:{{/i}}

-
$ npm install less
+

{{_i}}Install the LESS command line compiler globally with npm by running the following command:{{/i}}

+
$ npm install -g less

{{_i}}Once installed just run make from the root of your bootstrap directory and you're all set.{{/i}}

{{_i}}Additionally, if you have watchr installed, you may run make watch to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}

diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 1694a052d6..74b824d9ca 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -97,7 +97,8 @@

{{_i}}With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.{{/i}}

-

{{_i}}Example{{/i}}

+

{{_i}}Example{{/i}}

+

{{_i}}Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested .span3 columns should be placed within a .span6.{{/i}}

{{_i}}Level 1 of column{{/i}} @@ -111,6 +112,21 @@
+

{{_i}}Fluid example{{/i}}

+

{{_i}}Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.{{/i}}

+
+
+ {{_i}}Fluid 12{{/i}} +
+
+ {{_i}}Fluid 6{{/i}} +
+
+ {{_i}}Fluid 6{{/i}} +
+
+
+
@@ -239,7 +255,7 @@
     

{{_i}}Supported devices{{/i}}

-

{{_i}}Bootstrap supports a handful of media queries to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

+

{{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}

Landscape tablets 768px to 980px44px42px 20px
@@ -263,7 +279,7 @@ - + diff --git a/docs/templates/pages/upgrading.mustache b/docs/templates/pages/upgrading.mustache index 45ab0703bd..ebe70bcdd5 100644 --- a/docs/templates/pages/upgrading.mustache +++ b/docs/templates/pages/upgrading.mustache @@ -170,8 +170,19 @@

{{_i}}Javascript plugins{{/i}}

- {{_i}}Heads up!{{/i}} {{_i}}We're rewritten just about everything for our plugins, so head on over to the Javascript page to learn more.{{/i}} + {{_i}}Heads up!{{/i}} {{_i}}We've rewritten just about everything for our plugins, so head on over to the Javascript page to learn more.{{/i}}
+

{{_i}}Tooltips{{/i}}

+
    +
  • {{_i}}The plugin method has been renamed from twipsy() to tooltip(), and the class name changed from twipsy to tooltip.{{/i}}
  • +
  • {{_i}}The placement option value that was below is now bottom, and above is now top.{{/i}}
  • +
  • {{_i}}The animate option was renamed to animation.{{/i}}
  • +
  • {{_i}}The html option was removed, as the tooltips default to allowing HTML now.{{/i}}
  • +
+

{{_i}}Tooltips{{/i}}

+
    +
  • {{_i}}Values for placement option changed from above and below to top and bottom. (Affects popovers, too.){{/i}}
  • +

{{_i}}Popovers{{/i}}

  • {{_i}}Child elements now properly namespaced: .title to .popover-title, .inner to .popover-inner, and .content to .popover-content.{{/i}}
  • diff --git a/docs/upgrading.html b/docs/upgrading.html index 47cac06dcc..5416b99876 100644 --- a/docs/upgrading.html +++ b/docs/upgrading.html @@ -246,8 +246,19 @@

    Javascript plugins

    - Heads up! We're rewritten just about everything for our plugins, so head on over to the Javascript page to learn more. + Heads up! We've rewritten just about everything for our plugins, so head on over to the Javascript page to learn more.
    +

    Tooltips

    +
      +
    • The plugin method has been renamed from twipsy() to tooltip(), and the class name changed from twipsy to tooltip.
    • +
    • The placement option value that was below is now bottom, and above is now top.
    • +
    • The animate option was renamed to animation.
    • +
    • The html option was removed, as the tooltips default to allowing HTML now.
    • +
    +

    Tooltips

    +
      +
    • Values for placement option changed from above and below to top and bottom. (Affects popovers, too.)
    • +

    Popovers

    • Child elements now properly namespaced: .title to .popover-title, .inner to .popover-inner, and .content to .popover-content.
    • diff --git a/less/buttons.less b/less/buttons.less index 880d1f64a4..0dc9e374bb 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -53,7 +53,6 @@ .box-shadow(@shadow); background-color: darken(@white, 10%); background-color: darken(@white, 15%) e("\9"); - color: rgba(0,0,0,.5); outline: 0; } diff --git a/less/code.less b/less/code.less index e75cfa00d6..35a8ae6b82 100644 --- a/less/code.less +++ b/less/code.less @@ -11,12 +11,16 @@ pre { color: @grayDark; .border-radius(3px); } + +// Inline code code { padding: 3px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; } + +// Blocks of code pre { display: block; padding: (@baseLineHeight - 1) / 2; @@ -44,3 +48,9 @@ pre { border: 0; } } + +// Enable scrollable blocks of code +.pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} \ No newline at end of file diff --git a/less/forms.less b/less/forms.less index 5bce4cebd4..81833b0646 100644 --- a/less/forms.less +++ b/less/forms.less @@ -28,6 +28,12 @@ legend { color: @grayDark; border: 0; border-bottom: 1px solid #eee; + + // Small + small { + font-size: @baseLineHeight * .75; + color: @grayLight; + } } // Set font for forms @@ -116,6 +122,11 @@ input[type="file"] { line-height: 28px; } +// Reset line-height for IE +input[type="file"] { + line-height: 18px \9; +} + // Chrome on Linux and Mobile Safari need background-color select { width: 220px; // default input width + 10px of padding that doesn't get applied @@ -196,7 +207,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: thin dotted \9; /* IE6-8 */ + outline: thin dotted \9; /* IE6-9 */ } input[type="file"]:focus, input[type="radio"]:focus, @@ -453,21 +464,30 @@ select:focus:required:invalid { .form-inline .input-prepend .add-on { vertical-align: middle; } +// Inline checkbox/radio labels +.form-search .radio, +.form-inline .radio, +.form-search .checkbox, +.form-inline .checkbox { + margin-bottom: 0; + vertical-align: middle; +} // Margin to space out fieldsets .control-group { margin-bottom: @baseLineHeight / 2; } +// Legend collapses margin, so next element is responsible for spacing +legend + .control-group { + margin-top: @baseLineHeight; + -webkit-margin-top-collapse: separate; +} + // Horizontal-specific styles // -------------------------- .form-horizontal { - // Legend collapses margin, so we're relegated to padding - legend + .control-group { - margin-top: @baseLineHeight; - -webkit-margin-top-collapse: separate; - } // Increase spacing between groups .control-group { margin-bottom: @baseLineHeight; diff --git a/less/navs.less b/less/navs.less index a29cb712bb..0d37ea388e 100644 --- a/less/navs.less +++ b/less/navs.less @@ -249,6 +249,9 @@ .tabbable { .clearfix(); } +.tab-content { + overflow: hidden; // prevent content from running below tabs +} // Remove border on bottom, left, right .tabs-below .nav-tabs, diff --git a/less/responsive.less b/less/responsive.less index 7ed58bb4e0..1e3bf371cc 100644 --- a/less/responsive.less +++ b/less/responsive.less @@ -56,7 +56,7 @@ .uneditable-input { display: block; width: 100%; - height: 28px; /* Make inputs at least the height of their button counterpart */ + min-height: 28px; /* Make inputs at least the height of their button counterpart */ /* Makes inputs behave like true block-level elements */ -webkit-box-sizing: border-box; /* Older Webkit */ -moz-box-sizing: border-box; /* Older FF */ diff --git a/less/sprites.less b/less/sprites.less index ce76688443..a7741661ea 100644 --- a/less/sprites.less +++ b/less/sprites.less @@ -14,7 +14,8 @@ // For the white version of the icons, just add the .icon-white class: // -[class^="icon-"] { +[class^="icon-"], +[class*=" icon-"] { display: inline-block; width: 14px; height: 14px; diff --git a/less/tables.less b/less/tables.less index cbc013aca7..3a4066d715 100644 --- a/less/tables.less +++ b/less/tables.less @@ -25,14 +25,15 @@ table { padding: 8px; line-height: @baseLineHeight; text-align: left; + vertical-align: top; border-top: 1px solid #ddd; } th { font-weight: bold; - vertical-align: bottom; } - td { - vertical-align: top; + // Bottom align for column headings + thead th { + vertical-align: bottom; } // Remove top border from thead by default thead:first-child tr th, diff --git a/less/type.less b/less/type.less index 7841bb0906..6ba83bc3a3 100644 --- a/less/type.less +++ b/less/type.less @@ -110,7 +110,8 @@ ol { li { line-height: @baseLineHeight; } -ul.unstyled { +ul.unstyled, +ol.unstyled { margin-left: 0; list-style: none; } @@ -137,7 +138,7 @@ dd { hr { margin: @baseLineHeight 0; border: 0; - border-top: 1px solid #e5e5e5; + border-top: 1px solid @hrBorder; border-bottom: 1px solid @white; } diff --git a/less/variables.less b/less/variables.less index 9f58d730ee..ced64d7cd6 100644 --- a/less/variables.less +++ b/less/variables.less @@ -61,6 +61,9 @@ // Input placeholder text color @placeholderText: @grayLight; +// Hr border color +@hrBorder: @grayLighter; + // Navbar @navbarHeight: 40px; @navbarBackground: @grayDarker;
{{_i}}Landscape tablets{{/i}} 768px to 980px44px42px 20px