Skip to content

Instantly share code, notes, and snippets.

@krman009
Created November 19, 2013 11:25
Show Gist options
  • Save krman009/7543981 to your computer and use it in GitHub Desktop.
Save krman009/7543981 to your computer and use it in GitHub Desktop.
A Pen by kaushalya.
<div class="press"></div>
// I think printing press...:D
//
// 2013 By Kaushalya Mandaliya
// twitter.com/seebeetee.com
@import "compass";
$emw--color-alpha: #34495e;
$emw--color-beta: #bdc3c7;
@mixin animation($value) {
-webkit-animation: #{$value};
-moz-animation: #{$value};
-ms-animation: #{$value};
animation: #{$value};
}
@mixin keyframes($name) {
@-webkit-keyframes #{$name} { @content; }
@-moz-keyframes #{$name} { @content; }
@-o-keyframes #{$name} { @content; }
@keyframes #{$name} { @content; }
}
body {
background: $emw--color-beta;
}
.press {
background: $emw--color-beta;
width: 7em;
text-align: center;
height: 3em;
margin: 5em auto;
@include box-shadow(0 0 0 0.7em $emw--color-alpha, 0 2em 0 $emw--color-alpha, 2em 0 0 $emw--color-alpha, -2em 0 0 $emw--color-alpha, 0 -2em 0 $emw--color-alpha);
@include animation(movedude 1.5s ease-out infinite);
@include border-radius(0.5em);
&:after {
content: 'By Kaushalya Mandaliya';
position: absolute;
right: 0.5em;
bottom: 0.5em;
color: darken($emw--color-beta,35%);
}
}
@include keyframes(movedude) {
to {
@include box-shadow(0 0 0 0.7em $emw--color-alpha, 0 2em 0 $emw--color-alpha, 2em 0 0 $emw--color-alpha, -2em 0 0 $emw--color-alpha, 0 -2em 0 $emw--color-alpha, 0 6em 0 $emw--color-alpha, 0 10em 0 $emw--color-alpha, 0 14em 0 $emw--color-alpha, 0 18em 0 $emw--color-alpha, 0 22em 0 $emw--color-alpha);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment