Skip to content

Instantly share code, notes, and snippets.

@wehrhaus
Created July 15, 2014 21:52
Show Gist options
  • Save wehrhaus/f8d68da9cc155986ce9b to your computer and use it in GitHub Desktop.
Save wehrhaus/f8d68da9cc155986ce9b to your computer and use it in GitHub Desktop.
Stylus Diamond Generator
diamond(width, dColor)
dWidth = unit(width, px)
display block
width dWidth;
height dWidth;
background dColor
position relative
top dWidth
transform rotate(-45deg)
transform-origin 0 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment