Created
March 20, 2014 00:02
-
-
Save jgillman/9654398 to your computer and use it in GitHub Desktop.
GB Kitty Tiles..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* GB Kitty Tiles.. | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
} | |
.clearfix:after, | |
.clearfix:before { | |
content: ''; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} | |
.clearfix { | |
*zoom: 1; | |
} | |
.container { | |
max-width: 713px; | |
width: 100%; | |
} | |
.media-tile-container { | |
position: relative; | |
float: left; | |
margin-bottom: 0.5610098%; /* 4 / 713 */ | |
max-width: 32.9593268%; /* 235 / 713 */ | |
width: 100%; | |
} | |
.media-tile-container + .media-tile-container { | |
margin-left: 0.5610098%; /* 4 / 713 */ | |
} | |
.media-tile-container:before { | |
display: block; | |
padding-top: 100%; | |
content: ''; | |
} | |
.media-tile { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
.media-tile img { | |
max-width: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<p>Resize your window to have the kitties scale up and down appropriately</p> | |
<div class="row"> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
<div class="media-tile-container"> | |
<div class="media-tile"> | |
<a href="#" target="_blank"> | |
<img src="http://placekitten.com/235/235" /> | |
</a> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment