Skip to content

Instantly share code, notes, and snippets.

@bobpoekert
Created May 22, 2012 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobpoekert/2765566 to your computer and use it in GitHub Desktop.
Save bobpoekert/2765566 to your computer and use it in GitHub Desktop.
Sass button
@mixin gradient($from, $to)
background-color: $from
background-image: -webkit-gradient(linear, left top, left bottom, from($from), to($to))
background-image: -moz-linear-gradient($from, $to)
background-image: -webkit-linear-gradient($from, $to)
background-image: -o-linear-gradient($from, $to)
@mixin button($color, $font-size)
font-size: $font-size * 2
padding: $font-size
border-radius: 15px
@include gradient($color + rgb(50, 50, 50), $color)
border-top: 2px solid $color + rgb(75, 75, 75)
font-weight: bold
&:active
@include gradient($color, $color + rgb(50, 50, 50))
border-top: none
border-bottom: 2px solid $color + rgb(75, 75, 75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment