Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joe-watkins/9057572 to your computer and use it in GitHub Desktop.
Save joe-watkins/9057572 to your computer and use it in GitHub Desktop.
A Pen by Joe Watkins.
<figure>
<img src="http://flickholdr.com/1200/1600">
</figure>
@import "compass";
@mixin foldedCorners($size,$background,$cornerColor){
position:relative;
&:after {
content: '';
position: absolute;
top: 0px;
right: 0px;
border-width: 0 $size $size 0;
border-color: $cornerColor $background;
border-style: solid;
}
}
figure {
@include foldedCorners(1.3rem,#fff,#333);
}
body {
padding:15px;
}
figure {
max-width:300px;
img {
width:100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment