2 * Button mixin- creates 3d-ish button effect with correct
3 * highlights/shadows, based on a base color.
5 @mixin button( $button-color, $text-color: white ) {
6 background: $button-color;
7 border-color: darken( $button-color, 10% );
9 -webkit-box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15);
10 box-shadow: inset 0 1px 0 lighten( $button-color, 15% ), 0 1px 0 rgba(0,0,0,.15);
14 background: darken( $button-color, 8% );
15 border-color: darken( $button-color, 15% );
17 -webkit-box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), 0 1px 0 rgba(0,0,0,.15);
18 box-shadow: inset 0 1px 0 lighten( $button-color, 10% ), 0 1px 0 rgba(0,0,0,.15);
22 background: darken( $button-color, 8% );
23 border-color: darken( $button-color, 15% );
25 -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
26 box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
31 &.button-primary-disabled {
32 color: hsl( hue( $button-color ), 10%, 80% ) !important;
33 background: darken( $button-color, 8% ) !important;
34 border-color: darken( $button-color, 15% ) !important;
35 text-shadow: none !important;