This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve backwards compatibility of triangle mixin
- Loading branch information
Phil LaPier
committed
Mar 27, 2014
1 parent
b15dc93
commit 089beb5
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,12 @@ | |
$height: nth($size, length($size)); | ||
|
||
$foreground-color: nth($color, 1); | ||
$background-color: transparent !default; | ||
@if (length($color) == 2) { | ||
$background-color: nth($color, 2); | ||
} | ||
$background-color: if(length($color) == 2, nth($color, 2), transparent); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kenips
|
||
|
||
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) { | ||
|
||
$width: $width / 2; | ||
$height: if(length($size) > 1, $height, $height/2); | ||
|
||
@if $direction == up { | ||
border-left: $width solid $background-color; | ||
|
@plapier I'm getting
List index is 2 but list is only 1 item long for 'nth'
.... maybe it should be@if
?