Commit ca74b988 authored by Mark Otto's avatar Mark Otto
Browse files

Change .img-polaroid to .img-thumbnail

* Same code, but different classes was confusing
* Now .img-thumbnail just extends .thumbnail
parent 89b6477b
Showing with 18 additions and 17 deletions
+18 -17
...@@ -262,13 +262,17 @@ img { ...@@ -262,13 +262,17 @@ img {
border-radius: 6px; border-radius: 6px;
} }
.img-polaroid { .img-thumbnail {
display: block;
display: inline-block;
padding: 4px; padding: 4px;
background-color: #fff; line-height: 20px;
border: 1px solid #ccc; border: 1px solid #ddd;
border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 4px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.2s ease-in-out;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
} }
.img-circle { .img-circle {
......
...@@ -1875,12 +1875,12 @@ For example, <code><section></code> should be wrapped ...@@ -1875,12 +1875,12 @@ For example, <code><section></code> should be wrapped
<div class="bs-docs-example bs-docs-example-images"> <div class="bs-docs-example bs-docs-example-images">
<img data-src="holder.js/140x140" class="img-rounded"> <img data-src="holder.js/140x140" class="img-rounded">
<img data-src="holder.js/140x140" class="img-circle"> <img data-src="holder.js/140x140" class="img-circle">
<img data-src="holder.js/140x140" class="img-polaroid"> <img data-src="holder.js/140x140" class="img-thumbnail">
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;img src="..." class="img-rounded"&gt; &lt;img src="..." class="img-rounded"&gt;
&lt;img src="..." class="img-circle"&gt; &lt;img src="..." class="img-circle"&gt;
&lt;img src="..." class="img-polaroid"&gt; &lt;img src="..." class="img-thumbnail"&gt;
</pre> </pre>
</section> </section>
......
...@@ -1814,12 +1814,12 @@ For example, &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; should be wrapped ...@@ -1814,12 +1814,12 @@ For example, &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; should be wrapped
<div class="bs-docs-example bs-docs-example-images"> <div class="bs-docs-example bs-docs-example-images">
<img data-src="holder.js/140x140" class="img-rounded"> <img data-src="holder.js/140x140" class="img-rounded">
<img data-src="holder.js/140x140" class="img-circle"> <img data-src="holder.js/140x140" class="img-circle">
<img data-src="holder.js/140x140" class="img-polaroid"> <img data-src="holder.js/140x140" class="img-thumbnail">
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;img src="..." class="img-rounded"&gt; &lt;img src="..." class="img-rounded"&gt;
&lt;img src="..." class="img-circle"&gt; &lt;img src="..." class="img-circle"&gt;
&lt;img src="..." class="img-polaroid"&gt; &lt;img src="..." class="img-thumbnail"&gt;
</pre> </pre>
</section> </section>
......
...@@ -77,13 +77,10 @@ img { ...@@ -77,13 +77,10 @@ img {
border-radius: 6px; border-radius: 6px;
} }
// Add polaroid-esque trim // Image thumbnails
.img-polaroid { .img-thumbnail {
padding: 4px; .thumbnail();
background-color: #fff; display: inline-block;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.2);
.box-shadow(0 1px 3px rgba(0,0,0,.1));
} }
// Perfect circle // Perfect circle
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment