diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index 3a1e9e697f..f456bc2137 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -355,12 +355,6 @@ uneditable-input.offset1 { margin-left: 9.615384615384613%; } - .thumbnails { - margin-left: -30px; - } - .thumbnails > li { - margin-left: 30px; - } } @media (min-width: 768px) and (max-width: 979px) { @@ -486,12 +480,7 @@ .container { width: auto; } - .row, - .thumbnails { - margin-left: 0; - } - .thumbnails > li { - float: none; + .row { margin-left: 0; } [class*="span"], @@ -500,19 +489,7 @@ float: none; width: 100%; margin-left: 0; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; } - .span12 { - width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - .input-large, - .input-xlarge, - .input-xxlarge, input[class*="span"], select[class*="span"], textarea[class*="span"], diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 8fa27c91f3..057753c3bb 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -5173,32 +5173,6 @@ input[type="submit"].btn::-moz-focus-inner { border-width: 11px 0 11px 11px; } -.thumbnails { - margin-left: -20px; - list-style: none; -} - -.thumbnails:before, -.thumbnails:after { - display: table; - line-height: 0; - content: ""; -} - -.thumbnails:after { - clear: both; -} - -.row-fluid .thumbnails { - margin-left: 0; -} - -.thumbnails > li { - float: left; - margin-bottom: 20px; - margin-left: 20px; -} - .thumbnail { display: block; padding: 4px; diff --git a/docs/base-css.html b/docs/base-css.html index 3c218e68f3..4a4b46b478 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -512,7 +512,7 @@ For example, <code><section></code> should be wrapped as inlin

Add any of the follow classes to the .table base class.

.table-striped

-

Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).

+

Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE8).

@@ -1741,7 +1741,7 @@ For example, <code><section></code> should be wrapped as inlin <img src="..." class="img-circle"> <img src="..." class="img-polaroid"> -

Heads up! .img-rounded and .img-circle do not work in IE7-8 due to lack of border-radius support.

+

Heads up! .img-rounded and .img-circle do not work in IE8 due to lack of border-radius support.

diff --git a/docs/components.html b/docs/components.html index ea0e12272b..6422c1611d 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1884,135 +1884,92 @@

Thumbnails Grids of images, videos, text, and more

-

Default thumbnails

+

Default thumbnails

By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.

-
-
+
- -
  • +
  • +
    - -
  • +
  • +
    - - +
    + - -

    Highly customizable

    -

    With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.

    -
    - -
    - -

    Why use thumbnails

    -

    Thumbnails (previously .media-grid up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.

    - -

    Simple, flexible markup

    -

    Thumbnail markup is simple—a ul with any number of li elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.

    - -

    Uses grid column sizes

    -

    Lastly, the thumbnails component uses existing grid system classes—like .span2 or .span3—for control of thumbnail dimensions.

    - -

    Markup

    -

    As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:

    -<ul class="thumbnails">
    -  <li class="span4">
    +<div class="row">
    +  <div class="span3">
         <a href="#" class="thumbnail">
    -      <img src="http://placehold.it/300x200" alt="">
    +      <img src="http://placehold.it/260x180" alt="">
         </a>
    -  </li>
    +  </div>
       ...
    -</ul>
    +</div>
     
    -

    For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a> for a <div> like so:

    + +

    Custom content thumbnails

    +

    With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.

    +
    +
    +
    +
    + +
    +

    Thumbnail label

    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    Action Action

    +
    +
    +
    +
    +
    + +
    +

    Thumbnail label

    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    Action Action

    +
    +
    +
    +
    +
    + +
    +

    Thumbnail label

    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    Action Action

    +
    +
    +
    +
    +
    -<ul class="thumbnails">
    -  <li class="span4">
    +<div class="row">
    +  <div class="span4">
         <div class="thumbnail">
           <img src="http://placehold.it/300x200" alt="">
           <h3>Thumbnail label</h3>
           <p>Thumbnail caption...</p>
         </div>
    -  </li>
    +  </div>
       ...
    -</ul>
    +</div>
     
    -

    More examples

    -

    Explore all your options with the various grid classes available to you. You can also mix and match different sizes.

    - - @@ -2144,7 +2101,7 @@

    Striped

    -

    Uses a gradient to create a striped effect. Not available in IE7-8.

    +

    Uses a gradient to create a striped effect. Not available in IE8.

    @@ -2259,7 +2216,7 @@

    Browser support

    -

    Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.

    +

    Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE8-9 or older versions of Firefox.

    Versions earlier than Internet Explorer 10 and Opera 12 do not support animations.

    diff --git a/docs/getting-started.html b/docs/getting-started.html index 7a6d05e420..b81c79ed65 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -106,7 +106,7 @@

    Before downloading, be sure to have a code editor (we recommend Sublime Text 2) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.

    -
    +

    Download compiled

    Fastest way to get started: get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.

    diff --git a/docs/index.html b/docs/index.html index 572a25925f..9d0beba7ea 100644 --- a/docs/index.html +++ b/docs/index.html @@ -108,7 +108,7 @@

    Introducing Bootstrap.

    -
    @@ -1678,7 +1678,7 @@ <img src="..." class="img-circle"> <img src="..." class="img-polaroid"> -

    {{_i}}Heads up!{{/i}} {{_i}}.img-rounded and .img-circle do not work in IE7-8 due to lack of border-radius support.{{/i}}

    +

    {{_i}}Heads up!{{/i}} {{_i}}.img-rounded and .img-circle do not work in IE8 due to lack of border-radius support.{{/i}}

    diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 19f2e67e2a..15f60f5c12 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -1813,135 +1813,92 @@

    {{_i}}Thumbnails{{/i}} {{_i}}Grids of images, videos, text, and more{{/i}}

    -

    {{_i}}Default thumbnails{{/i}}

    +

    {{_i}}Default thumbnails{{/i}}

    {{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}

    -
    -
    +
    - -
  • +
  • +
    - -
  • +
  • +
    - - -
    - -

    {{_i}}Highly customizable{{/i}}

    -

    {{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}

    -
    - -
    - -

    {{_i}}Why use thumbnails{{/i}}

    -

    {{_i}}Thumbnails (previously .media-grid up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}

    - -

    {{_i}}Simple, flexible markup{{/i}}

    -

    {{_i}}Thumbnail markup is simple—a ul with any number of li elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}

    - -

    {{_i}}Uses grid column sizes{{/i}}

    -

    {{_i}}Lastly, the thumbnails component uses existing grid system classes—like .span2 or .span3—for control of thumbnail dimensions.{{/i}}

    - -

    {{_i}}Markup{{/i}}

    -

    {{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:{{/i}}

    + + + {{! /.bs-docs-example }}
    -<ul class="thumbnails">
    -  <li class="span4">
    +<div class="row">
    +  <div class="span3">
         <a href="#" class="thumbnail">
    -      <img src="http://placehold.it/300x200" alt="">
    +      <img src="http://placehold.it/260x180" alt="">
         </a>
    -  </li>
    +  </div>
       ...
    -</ul>
    +</div>
     
    -

    {{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a> for a <div> like so:{{/i}}

    + +

    {{_i}}Custom content thumbnails{{/i}}

    +

    {{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}

    +
    +
    +
    +
    + +
    +

    {{_i}}Thumbnail label{{/i}}

    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    {{_i}}Action{{/i}} {{_i}}Action{{/i}}

    +
    +
    +
    +
    +
    + +
    +

    {{_i}}Thumbnail label{{/i}}

    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    {{_i}}Action{{/i}} {{_i}}Action{{/i}}

    +
    +
    +
    +
    +
    + +
    +

    {{_i}}Thumbnail label{{/i}}

    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    {{_i}}Action{{/i}} {{_i}}Action{{/i}}

    +
    +
    +
    +
    +
    {{! /.bs-docs-example }}
    -<ul class="thumbnails">
    -  <li class="span4">
    +<div class="row">
    +  <div class="span4">
         <div class="thumbnail">
           <img src="http://placehold.it/300x200" alt="">
           <h3>{{_i}}Thumbnail label{{/i}}</h3>
           <p>{{_i}}Thumbnail caption...{{/i}}</p>
         </div>
    -  </li>
    +  </div>
       ...
    -</ul>
    +</div>
     
    -

    {{_i}}More examples{{/i}}

    -

    {{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}

    - - @@ -2073,7 +2030,7 @@

    {{_i}}Striped{{/i}}

    -

    {{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}

    +

    {{_i}}Uses a gradient to create a striped effect. Not available in IE8.{{/i}}

    @@ -2188,7 +2145,7 @@

    {{_i}}Browser support{{/i}}

    -

    {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}

    +

    {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE8-9 or older versions of Firefox.{{/i}}

    {{_i}}Versions earlier than Internet Explorer 10 and Opera 12 do not support animations.{{/i}}

    diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache index 0eecd6247d..7ea2bff2e4 100644 --- a/docs/templates/pages/getting-started.mustache +++ b/docs/templates/pages/getting-started.mustache @@ -35,7 +35,7 @@

    {{_i}}Before downloading, be sure to have a code editor (we recommend Sublime Text 2) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.{{/i}}

    -
    +

    {{_i}}Download compiled{{/i}}

    {{_i}}Fastest way to get started: get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.{{/i}}

    diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index ddd296299c..bf20bd2c73 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -37,7 +37,7 @@

    {{_i}}Introducing Bootstrap.{{/i}}

    -
    +

    {{_i}}By nerds, for nerds.{{/i}}

    @@ -46,7 +46,7 @@

    {{_i}}Made for everyone.{{/i}}

    -

    {{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via responsive CSS as well.{{/i}}

    +

    {{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (including IE8+), but in tablet and smartphone browsers via responsive CSS as well.{{/i}}

    @@ -59,7 +59,7 @@

    {{_i}}Built with Bootstrap.{{/i}}

    -
    +
     <div class="container-fluid">
    -  <div class="row-fluid">
    +  <div class="row">
         <div class="span2">
           <!--{{_i}}Sidebar content{{/i}}-->
         </div>
    diff --git a/less/responsive-1200px-min.less b/less/responsive-1200px-min.less
    index e8dcb73dcc..d028ef7243 100644
    --- a/less/responsive-1200px-min.less
    +++ b/less/responsive-1200px-min.less
    @@ -16,12 +16,4 @@
       #grid > .core(@gridColumnWidth1200, @gridGutterWidth1200, @gridRowWidth1200);
       #grid > .input(@gridColumnWidth1200, @gridGutterWidth1200, @gridRowWidth1200);
     
    -  // Thumbnails
    -  .thumbnails {
    -    margin-left: -@gridGutterWidth1200;
    -  }
    -  .thumbnails > li {
    -    margin-left: @gridGutterWidth1200;
    -  }
    -
     }
    diff --git a/less/responsive-767px-max.less b/less/responsive-767px-max.less
    index ebac6edd23..95e446088d 100644
    --- a/less/responsive-767px-max.less
    +++ b/less/responsive-767px-max.less
    @@ -43,15 +43,10 @@
       .container {
         width: auto;
       }
    -  // Undo negative margin on rows and thumbnails
    -  .row,
    -  .thumbnails {
    +  // Undo negative margin on rows
    +  .row {
         margin-left: 0;
       }
    -  .thumbnails > li {
    -    float: none;
    -    margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
    -  }
       // Make all grid-sized elements block level again
       [class*="span"],
       // Makes uneditable inputs full-width when using grid sizing
    @@ -60,20 +55,12 @@
         display: block;
         width: 100%;
         margin-left: 0;
    -    .box-sizing(border-box);
    -  }
    -  .span12 {
    -    width: 100%;
    -    .box-sizing(border-box);
       }
     
     
       // FORM FIELDS
       // -----------
       // Make span* classes full width
    -  .input-large,
    -  .input-xlarge,
    -  .input-xxlarge,
       input[class*="span"],
       select[class*="span"],
       textarea[class*="span"],
    diff --git a/less/thumbnails.less b/less/thumbnails.less
    index 91b75f785b..c520a05abc 100644
    --- a/less/thumbnails.less
    +++ b/less/thumbnails.less
    @@ -3,26 +3,6 @@
     // --------------------------------------------------
     
     
    -// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
    -
    -// Make wrapper ul behave like the grid
    -.thumbnails {
    -  margin-left: -@gridGutterWidth;
    -  list-style: none;
    -  .clearfix();
    -}
    -// Fluid rows have no left margin
    -.row-fluid .thumbnails {
    -  margin-left: 0;
    -}
    -
    -// Float li to make thumbnails appear in a row
    -.thumbnails > li {
    -  float: left; // Explicity set the float since we don't require .span* classes
    -  margin-bottom: @baseLineHeight;
    -  margin-left: @gridGutterWidth;
    -}
    -
     // The actual thumbnail (can be `a` or `div`)
     .thumbnail {
       display: block;