Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #408 from jugnoo/bug/triangle_sass_32_compat
Browse files Browse the repository at this point in the history
Partially revert 089beb5 that breaks...
  • Loading branch information
Phil LaPier committed Apr 23, 2014
2 parents 4cf74ac + 7842aef commit cfb3103
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/assets/stylesheets/addons/_triangle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
$height: nth($size, length($size));

$foreground-color: nth($color, 1);
$background-color: if(length($color) == 2, nth($color, 2), transparent);
$background-color: transparent !default;
@if (length($color) == 2) {
$background-color: nth($color, 2);
}

@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {

Expand Down
5 changes: 4 additions & 1 deletion dist/addons/_triangle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
$height: nth($size, length($size));

$foreground-color: nth($color, 1);
$background-color: if(length($color) == 2, nth($color, 2), transparent);
$background-color: transparent !default;
@if (length($color) == 2) {
$background-color: nth($color, 2);
}

@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {

Expand Down

0 comments on commit cfb3103

Please sign in to comment.