Skip to content

Instantly share code, notes, and snippets.

Created September 22, 2014 05:16
Show Gist options
  • Save anonymous/6c25b573f35d58805d4c to your computer and use it in GitHub Desktop.
Save anonymous/6c25b573f35d58805d4c to your computer and use it in GitHub Desktop.
A Pen by Captain Anonymous.
- @icons = ['icon-reorder','icon-th-large','icon-bar-chart','icon-tasks','icon-bell','icon-archive','icon-comment','icon-sitemap','icon-thumbs-up','icon-tumblr']
%ul
- @icons.each do |icon|
%li
%a.list-item{:href=>""}
%i{:class=>"#{icon}"}
@import "compass/css3";
body {
background:#f2f2f2;
}
ul {
position:relative;
@include transform(rotate(-35deg) skew(20deg,5deg));
}
.list-item {
background:#000000;
color:#575757;
text-align:center;
height:2.5em;
width:4em;
vertical-align:middle;
line-height:2.5em;
border-bottom:1px solid #060606;
position:relative;
display:block;
text-decoration:none;
@include box-shadow(-2em 1.5em 0 #e1e1e1);
@include transition(all .25s linear);
&:hover {
background:#ff6e42;
color:#fffcfb;
@include transform(translate(0.9em,-0.9em));
@include transition(all .25s linear);
@include box-shadow(-2em 2em 0 #e1e1e1);
&:before, &:after { @include transition(all .25s linear); }
&:before {
background:#b65234;
width:1em;
top:0.5em;
left:-1em;
}
&:after {
background:#b65234;
width:1em;
bottom:-2.5em;
left:1em;
height:4em;
}
}
&:before, &:after {@include transition(all .25s linear);}
&:after {
content:"";
position:absolute;
height:4em;
background:#181818;
width:0.5em;
bottom:-2.25em;
left:1.5em;
@include transform(rotate(90deg) skew(0deg,45deg));
}
&:before {
content:"";
position:absolute;
height:2.5em;
background:#121212;
width:0.5em;
top:0.25em;
left:-0.5em;
@include transform(skewY(-45deg));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment