nex3/sass — Issue #307: Color-stop as list
Author: tixz
Created: 2012-03-04 15:46:28+00:00
State: open

I was trying to write a linear-gradient mixin that will take the first color stop and set it as the background color. However SASS recognizes my list as a set of color-stops so I can't access the first element with the ```nth``` function:

$colorStopsList: (#fff 20%, #f6f6f6 50%, #eee 50%, #f4f4f4 100%);
$colorStop: nth($colorStops, 1): //Type-of: compass::sassextensions::functions::gradientsupport::colorstop
//$colorStop: #fff 20%
background-color: type-of(nth($colorStop, 1)); //Returns #fff 20%, where #fff was expected

I don't know if this is a Compass issue or a Sass issue...