Skip to content

Instantly share code, notes, and snippets.

@MichaelArestad
Created August 2, 2014 03:56
Show Gist options
  • Save MichaelArestad/8ebe4ffd349506f73268 to your computer and use it in GitHub Desktop.
Save MichaelArestad/8ebe4ffd349506f73268 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.12)
// Compass (v1.0.0.alpha.21)
// ----
%button {
border-radius: 3px;
font-size: 13px;
}
@mixin button($background: blue, $color: #fff) {
@extend %button;
background: $background;
border: 1px solid darken($background, 5%);
color: $color;
&:hover,
&:focus {
background: lighten($background, 5%);
}
}
.button-primary {
@include button;
}
.button-secondary {
@include button(#eee, #444);
}
.button-primary, .button-secondary {
border-radius: 3px;
font-size: 13px;
}
.button-primary {
background: blue;
border: 1px solid #0000e6;
color: white;
}
.button-primary:hover, .button-primary:focus {
background: #1a1aff;
}
.button-secondary {
background: #eeeeee;
border: 1px solid #e1e1e1;
color: #444444;
}
.button-secondary:hover, .button-secondary:focus {
background: #fbfbfb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment