Skip to content

Commit

Permalink
Merge pull request #6328 from emmanuelgautier/panel-border-option
Browse files Browse the repository at this point in the history
make panel border an option
  • Loading branch information
rafibomb committed Feb 26, 2015
2 parents 73696d7 + 44eb2ff commit fea2103
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scss/foundation/components/_panels.scss
Expand Up @@ -37,14 +37,20 @@ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightne
// $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default
// $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
// $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) {
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust, $border:true) {

@if $bg {
$bg-lightness: lightness($bg);

border-style: $panel-border-style;
border-width: $panel-border-size;
border-color: scale-color($bg, $lightness: $panel-function-factor);
@if $border {
border-style: $panel-border-style;
border-width: $panel-border-size;
border-color: scale-color($bg, $lightness: $panel-function-factor);
} @else {
border-style: none;
border-width: 0;
}

margin-bottom: $panel-margin-bottom;
padding: $padding;

Expand Down

0 comments on commit fea2103

Please sign in to comment.