Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions examples/images.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div id="images">
<div class="row">
<div class="twelve-large potatoes">
<h1>Images</h1>
</div>
</div>
<div class="row">
<div class="six-large potatoes">
<p>Image thumbnail</p>
<img src="http://via.placeholder.com/200x200" class="img-thumb" alt="Image example"/>
</div>
<div class="six-large potatoes">
<p>Image thumbnail rounded</p>
<img src="http://via.placeholder.com/200x200" class="img-thumb round" alt="Image example"/>
</div>
</div>
</div>
21 changes: 21 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h4>Features</h4>
<li><a href="#code">Code</a></li>
<li><a href="#labels">Labels</a></li>
<li><a href="#panels">Panels</a></li>
<li><a href="#images">Images</a></li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -568,6 +569,26 @@ <h3>Panel Warning</h3>
</div>
</div>

<hr>

<div id="images">
<div class="row">
<div class="twelve-large potatoes">
<h1>Images</h1>
</div>
</div>
<div class="row">
<div class="six-large potatoes">
<p>Image thumbnail</p>
<img src="http://via.placeholder.com/200x200" class="img-thumb" alt="Image example"/>
</div>
<div class="six-large potatoes">
<p>Image thumbnail rounded</p>
<img src="http://via.placeholder.com/200x200" class="img-thumb round" alt="Image example"/>
</div>
</div>
</div>

<div id="footer">
<div class="row">
<div class="text-center twelve-large potatoes">
Expand Down
2 changes: 1 addition & 1 deletion js/potato.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/potato.min.js.map

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions stylesheets/css/potato.css
Original file line number Diff line number Diff line change
Expand Up @@ -751,3 +751,17 @@ kbd {
color: #e74c3c;
border: 1px solid #e74c3c;
}

/* Images */

img {
max-width: 100%;
}

.img-thumb {
border: 1px solid #333;
}

.img-thumb.round {
border-radius: 4px;
}
14 changes: 14 additions & 0 deletions stylesheets/less/_partials/_images.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//* Images *//

img {
max-width: 100%;

&.img-thumb {
border: 1px solid $primary-color;
}

&.round {
border-radius: 4px;
}

}
3 changes: 2 additions & 1 deletion stylesheets/less/potato.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
@import "@{DIRECTORY}_tables";
@import "@{DIRECTORY}_forms";
@import "@{DIRECTORY}_lists";
@import "@{DIRECTORY}_util";
@import "@{DIRECTORY}_util";
@import "@{DIRECTORY}_images";
14 changes: 14 additions & 0 deletions stylesheets/sass/_partials/_images.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//* Images *//

img {
max-width: 100%;

&.img-thumb {
border: 1px solid $primary-color;
}

&.round {
border-radius: 4px;
}

}
1 change: 1 addition & 0 deletions stylesheets/sass/potato.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
@import "_partials/_forms";
@import "_partials/_lists";
@import "_partials/_util";
@import "_partials/_images";