// // Button Variables // // We use these to build padding for buttons. $button-med: emCalc(12px) !default; $button-tny: emCalc(7px) !default; $button-sml: emCalc(9px) !default; $button-lrg: emCalc(16px) !default; // We use this to control the display property. $button-display: inline-block !default; $button-margin-bottom: emCalc(20px) !default; // We use these to control button text styles. $button-font-family: inherit !default; $button-font-color: #fff !default; $button-font-color-alt: #333 !default; $button-font-med: emCalc(16px) !default; $button-font-tny: emCalc(11px) !default; $button-font-sml: emCalc(13px) !default; $button-font-lrg: emCalc(20px) !default; $button-font-weight: bold !default; $button-font-align: center !default; // We use these to control various hover effects. $button-function-factor: 10% !default; // We use these to control button border styles. $button-border-width: 1px !default; $button-border-style: solid !default; $button-border-color: darken($primary-color, $button-function-factor) !default; // We use this to set the default radius used throughout the core. $button-radius: $global-radius !default; $button-round: $global-rounded !default; // We use this to set default opacity for disabled buttons. $button-disabled-opacity: 0.6 !default; // // Button Mixins // // We use this mixin to create a default button base. @mixin button-base($style:true, $display:$button-display) { @if $style { border-style: $button-border-style; border-width: $button-border-width; cursor: pointer; font-family: $button-font-family; font-weight: $button-font-weight; line-height: 1; margin: 0 0 $button-margin-bottom; position: relative; text-decoration: none; text-align: $button-font-align; } @if $display { display: $display; } } // We use this mixin to add button size styles @mixin button-size($padding:$button-med, $full-width:false, $is-input:false) { // We control which padding styles come through, // these can be turned off by setting $padding:false @if $padding { padding-top: $padding; padding-#{$opposite-direction}: $padding * 2; padding-bottom: $padding + emCalc(1px); padding-#{$default-float}: $padding * 2; // We control the font-size based on mixin input. @if $padding == $button-med { font-size: $button-font-med; } @else if $padding == $button-tny { font-size: $button-font-tny; } @else if $padding == $button-sml { font-size: $button-font-sml; } @else if $padding == $button-lrg { font-size: $button-font-lrg; } @else { font-size: $padding - emCalc(2px); } } // We can set $full-width:true to remove side padding extend width. @if $full-width { padding-top: $padding; padding-#{$opposite-direction}: 0px; padding-bottom: $padding + emCalc(1px); padding-#{$default-float}: 0px; width: 100%; } // 's and