aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-09-25 22:40:48 -0700
committerMark Otto <[email protected]>2012-09-25 22:40:48 -0700
commitf12946be5a8e8529f64606ca73fe06e48f9fd583 (patch)
tree3fcab801f48b1bd05e277ca6db852e954ab0f130 /docs/components.html
parent08eea302ef05195e47cb32af85adcb1a735a6263 (diff)
downloadbootstrap-f12946be5a8e8529f64606ca73fe06e48f9fd583.tar.xz
bootstrap-f12946be5a8e8529f64606ca73fe06e48f9fd583.zip
thumbnails cleanup: no more UL or LI elements needed, instead just use standard grid markup
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html119
1 files changed, 38 insertions, 81 deletions
diff --git a/docs/components.html b/docs/components.html
index ea0e12272..6422c1611 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -1884,38 +1884,48 @@
<h1>Thumbnails <small>Grids of images, videos, text, and more</small></h1>
</div>
- <h2>Default thumbnails</h2>
+ <h3>Default thumbnails</h3>
<p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
- <div class="row-fluid">
- <ul class="thumbnails">
- <li class="span3">
+ <div class="bs-docs-example">
+ <div class="row">
+ <div class="span3">
<a href="#" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
</a>
- </li>
- <li class="span3">
+ </div>
+ <div class="span3">
<a href="#" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
</a>
- </li>
- <li class="span3">
+ </div>
+ <div class="span3">
<a href="#" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
</a>
- </li>
- <li class="span3">
+ </div>
+ <div class="span3">
<a href="#" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
</a>
- </li>
- </ul>
+ </div>
+ </div>
</div>
+<pre class="prettyprint linenums">
+&lt;div class="row"&gt;
+ &lt;div class="span3"&gt;
+ &lt;a href="#" class="thumbnail"&gt;
+ &lt;img src="http://placehold.it/260x180" alt=""&gt;
+ &lt;/a&gt;
+ &lt;/div&gt;
+ ...
+&lt;/div&gt;
+</pre>
- <h2>Highly customizable</h2>
+ <h3>Custom content thumbnails</h3>
<p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p>
- <div class="row-fluid">
- <ul class="thumbnails">
- <li class="span4">
+ <div class="bs-docs-example">
+ <div class="row">
+ <div class="span4">
<div class="thumbnail">
<img src="http://placehold.it/300x200" alt="">
<div class="caption">
@@ -1924,8 +1934,8 @@
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
</div>
</div>
- </li>
- <li class="span4">
+ </div>
+ <div class="span4">
<div class="thumbnail">
<img src="http://placehold.it/300x200" alt="">
<div class="caption">
@@ -1934,8 +1944,8 @@
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
</div>
</div>
- </li>
- <li class="span4">
+ </div>
+ <div class="span4">
<div class="thumbnail">
<img src="http://placehold.it/300x200" alt="">
<div class="caption">
@@ -1944,75 +1954,22 @@
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
</div>
</div>
- </li>
- </ul>
+ </div>
+ </div>
</div>
-
- <h3>Why use thumbnails</h3>
- <p>Thumbnails (previously <code>.media-grid</code> 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.</p>
-
- <h3>Simple, flexible markup</h3>
- <p>Thumbnail markup is simple&mdash;a <code>ul</code> with any number of <code>li</code> 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.</p>
-
- <h3>Uses grid column sizes</h3>
- <p>Lastly, the thumbnails component uses existing grid system classes&mdash;like <code>.span2</code> or <code>.span3</code>&mdash;for control of thumbnail dimensions.</p>
-
- <h2>Markup</h2>
- <p>As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup <strong>for linked images</strong>:</p>
<pre class="prettyprint linenums">
-&lt;ul class="thumbnails"&gt;
- &lt;li class="span4"&gt;
- &lt;a href="#" class="thumbnail"&gt;
- &lt;img src="http://placehold.it/300x200" alt=""&gt;
- &lt;/a&gt;
- &lt;/li&gt;
- ...
-&lt;/ul&gt;
-</pre>
- <p>For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code>&lt;a&gt;</code> for a <code>&lt;div&gt;</code> like so:</p>
-<pre class="prettyprint linenums">
-&lt;ul class="thumbnails"&gt;
- &lt;li class="span4"&gt;
+&lt;div class="row"&gt;
+ &lt;div class="span4"&gt;
&lt;div class="thumbnail"&gt;
&lt;img src="http://placehold.it/300x200" alt=""&gt;
&lt;h3&gt;Thumbnail label&lt;/h3&gt;
&lt;p&gt;Thumbnail caption...&lt;/p&gt;
&lt;/div&gt;
- &lt;/li&gt;
+ &lt;/div&gt;
...
-&lt;/ul&gt;
+&lt;/div&gt;
</pre>
- <h2>More examples</h2>
- <p>Explore all your options with the various grid classes available to you. You can also mix and match different sizes.</p>
- <ul class="thumbnails">
- <li class="span4">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/360x270" alt="">
- </a>
- </li>
- <li class="span3">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/260x120" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- <li class="span3">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/260x120" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- </ul>
-
</section>
@@ -2144,7 +2101,7 @@
</pre>
<h3>Striped</h3>
- <p>Uses a gradient to create a striped effect. Not available in IE7-8.</p>
+ <p>Uses a gradient to create a striped effect. Not available in IE8.</p>
<div class="bs-docs-example">
<div class="progress progress-striped">
<div class="bar" style="width: 20%;"></div>
@@ -2259,7 +2216,7 @@
<h2>Browser support</h2>
- <p>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.</p>
+ <p>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.</p>
<p>Versions earlier than Internet Explorer 10 and Opera 12 do not support animations.</p>
</section>