Created
November 16, 2011 16:49
-
-
Save SeanRoberts/1370613 to your computer and use it in GitHub Desktop.
This file contains 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
@mixin button($background_base, $height: 39px, $left-pad: 5, $padding: 15, $background_ext: '.png') { | |
display: inline-block; | |
background: image-url('buttons/left_#{$background_base}#{$background_ext}') no-repeat left top; | |
padding-left: $left-pad + px; | |
span { | |
display: block; | |
background: image-url('buttons/right_#{$background_base}#{$background_ext}') no-repeat right top; | |
height: $height; | |
padding-left: $padding - $left-pad + px; | |
padding-right: $padding + px; | |
} | |
&:active { | |
background: image-url('buttons/left_#{$background_base}_down#{$background_ext}') no-repeat left top; | |
span { | |
background: image-url('buttons/right_#{$background_base}_down#{$background_ext}') no-repeat right top; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment