From: Daniel Samuels Date: Mon, 28 Apr 2014 17:55:04 +0000 (+0100) Subject: Fix button background color not being used when defined in settings. X-Git-Tag: v5.2.3~37^2~5^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F5074%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix button background color not being used when defined in settings. --- diff --git a/scss/foundation/_settings.scss b/scss/foundation/_settings.scss index d59257b89..b3a3ca678 100644 --- a/scss/foundation/_settings.scss +++ b/scss/foundation/_settings.scss @@ -355,7 +355,7 @@ // We use these to control button border styles. // $button-border-width: 0px; // $button-border-style: solid; -// $bg: $primary-color; +// $button-bg: $primary-color; // $button-border-color: scale-color($bg, $lightness: $button-function-factor); // We use this to set the default radius used throughout the core. diff --git a/scss/foundation/components/_buttons.scss b/scss/foundation/components/_buttons.scss index 1d06eb234..d7502fb2f 100644 --- a/scss/foundation/components/_buttons.scss +++ b/scss/foundation/components/_buttons.scss @@ -36,8 +36,8 @@ $button-function-factor: -20% !default; // We use these to control button border styles. $button-border-width: 0px !default; $button-border-style: solid !default; -$bg: $primary-color !default; -$button-border-color: scale-color($bg, $lightness: $button-function-factor) !default; +$button-bg: $primary-color !default; +$button-border-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; @@ -117,10 +117,10 @@ $button-disabled-opacity: 0.7 !default; // // We use this mixin to add button color styles // -// $bg - Primary color set in settings file. Default: $primary-color. +// $bg - Primary color set in settings file. Default: $button-bg. // $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:$primary-color, $radius:false, $disabled:false) { +@mixin button-style($bg:$button-bg, $radius:false, $disabled:false) { // We control which background styles are used, // these can be removed by setting $bg:false @@ -166,13 +166,13 @@ $button-disabled-opacity: 0.7 !default; // We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin" // // $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12) -// $bg - Primary color set in settings file. Default: $primary-color. +// $bg - Primary color set in settings file. Default: $button-bg. // $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default:false. // $full-width - We can set $full-width:true to remove side padding extend width. Default:false. // $disabled - We can set $disabled:true to create a disabled transparent button. Default:false. // $is-input - 's and