Created
April 17, 2011 15:35
-
-
Save StanAngeloff/924137 to your computer and use it in GitHub Desktop.
Compass Magick + PhantomJS = ♥
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import 'compass'; | |
$theme1: red; | |
$theme2: maroon; | |
$button_width: 320px; | |
$button_height: 24px; | |
a { | |
background: #fff magick-sprite('button', magick-phantom($button_width, $button_height, | |
$background-image: "-webkit-gradient(linear, left top, left bottom, from(#{$theme1}), to(#{$theme2}))", | |
$border: 1px solid $theme2, | |
$border-radius: 5px, | |
$box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) | |
)); | |
display: block; | |
width: $button_width; | |
line-height: $button_height; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment