3D examples
$color2 isn't needed for this button:
Dimensions!
@include sham-button-three-d (#FC780A, white, 18px, 4px);
Awesome
@include sham-button-three-d (#FC780A, white, 18px, 4px);
Bordered examples
Testing
@include sham-button-bordered (#EF382E, #e6e6e6, white, 14px, 30px);
Testing
@include sham-button-bordered (#A3B57B, #e6e6e6, white, 18px, 0);
Flat examples
$color2 is used for the hover.
Flat
@include sham-button-flat (#c66, #a3b57b, white, 13px, 0); text-transform: uppercase;
Flat and compact
@include sham-button-flat-compact (#c66, #a3b57b, white, 13px, 0);text-transform: uppercase;
This version has a little more breathing room. Feel free to override with padding:
Flat and roomy
@include sham-button-flat-roomy (#c66, #a3b57b, white, 13px, 0); text-transform: uppercase;
Gradient examples
$color1 is the starting color and $color2 is the end color:
Gradient
@include sham-button-gradient (#FDC20E, #ffa403, white, 16px, 2px);
Since we have dark text, we need to override text-shadow:
Another gradient
@include sham-button-gradient (#f6f6f6, #d7d7d7, #555, 13px, 22px);text-shadow: 1px 1px 0px #ffffff;
Installation
Naturally, you'll need Sass to use these mixins.
To install using Bower:
bower install sham-button
Or include sham-button.scss in your project
@import 'sham-button';
Usage
Include something like this in your markup:
<div class="my-fancy-button">Testing</div>
Style it with something like this:
.my-fancy-button {@include sham-button-bordered (#EF382E, #e6e6e6, white, 14px, 30px);}