Skip to content

Instantly share code, notes, and snippets.

@marciobarrios
Forked from daneden/dabblet.css
Created March 2, 2012 10:06
Show Gist options
  • Select an option

  • Save marciobarrios/1957485 to your computer and use it in GitHub Desktop.

Select an option

Save marciobarrios/1957485 to your computer and use it in GitHub Desktop.
Picture frame
/**
* Picture frame
*/
* {
margin: 0;
padding: 0;
}
html {
min-height: 100%;
}
body {
min-height: 100%;
background: #8ca0ab linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.4));
background-size: cover;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
padding: 20px;
}
figure {
display: inline-block;
margin: 5px;
text-align: center;
width: 220px;
padding: 5px;
background: #333;
background-image: linear-gradient(transparent,rgba(0,0,0,.2));
border: 1px solid #000;
box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(100,100,100,.1), 0 2px 3px 1px rgba(0,0,0,.1);
position: relative;
}
figure::after {
content: '';
display: block;
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
background: linear-gradient(-35deg, rgba(255,255,255,.1), rgba(255,255,255,.2) 30%, rgba(255,255,255,.1) 31%, rgba(255,255,255,.1) 50%, rgba(255,255,255,0) 51%);
pointer-events: none;
}
figure a {
display: block;
}
figure img {
max-width: 100%;
display: block;
box-shadow: 0 0 0 1px rgba(55,55,55,.5), 0 0 2px 1px rgba(0,0,0,.3);
}
<figure>
<a href="http://danielgray.com/shop"><img src="http://www.danielgray.com/storage/portfolio/Blade-Runner-A2-v02.jpg?__SQUARESPACE_CACHEVERSION=1318928352274"></a>
</figure>
<figure>
<a href="http://store.lukesbeard.com"><img src="http://store.lukesbeard.com/img/steve-print.jpg"></a>
</figure>
<figure>
<a href="http://store.lukesbeard.com"><img src="http://store.lukesbeard.com/img/test-poster2.jpg"></a>
</figure>
<figure>
<a href="http://lanebypost.com/house-and-home/product/circles-red-and-blue/"><img src="http://lanebypost.com/images/products/lane_circles_red_cutout_sml_sfw_.jpg"></a>
</figure>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment