$button-border-style: solid !default;
$button-bg: $primary-color !default;
$button-border-color: scale-color($button-bg, $lightness: $button-function-factor) !default;
+$button-hover-color: scale-color($button-bg, $lightness: $button-function-factor) !default;
+
// We use this to set the default radius used throughout the core.
$button-radius: $global-radius !default;
// We use this mixin to add button color styles
//
// $bg - Primary color set in settings file. Default: $button-bg.
+// $bc - Button Border Color. Default: $button-border-color
+// $bh - Button Hover Color. Default: $button-hover-color
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: true
// $disabled - We can set $disabled:true to create a disabled transparent button. Default: false
-@mixin button-style($bg:$button-bg, $radius:false, $disabled:false) {
+@mixin button-style($bg:$button-bg, $bc:$button-border-color, $bh:$button-hover-color, $radius:false, $disabled:false) {
// We control which background styles are used,
// these can be removed by setting $bg:false
$bg-lightness: lightness($bg);
background-color: $bg;
- border-color: $button-border-color;
+ border-color: $bc;
&:hover,
- &:focus { background-color: scale-color($bg, $lightness: $button-function-factor); }
+ &:focus { background-color: $bh; }
// We control the text color for you based on the background color.
@if $bg-lightness > 70% {