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

Commit

Permalink
Partially revert 089beb5 that breaks...
Browse files Browse the repository at this point in the history
Sass 3.2 compatibility.

Fixes #405.
  • Loading branch information
kenips committed Apr 23, 2014
1 parent 4cf74ac commit 7842aef
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 7842aef

Please sign in to comment.