Skip to content

Commit

Permalink
Removed legacy webkit support; commented out the canvas generated lin…
Browse files Browse the repository at this point in the history
…ear gradient; prepared the linear gradient to be available in vendor-prefixed properties like border-image; actually fixes #14; fixes #71
  • Loading branch information
kizu authored and notslang committed Jul 30, 2013
1 parent ac9913f commit c5bfee1
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/nib/gradients.styl
Expand Up @@ -15,19 +15,6 @@ replace(expr, str, val)
expr[i] = val
expr

/*
* Normalize gradient points.
*/

grad-point(pos)
if length(pos) == 1
return left pos if pos in (top bottom)
return pos top if pos in (left right)
else if pos[0] in (top bottom)
pos[1] pos[0]
else
pos

/*
* Implicit color stop position.
*/
Expand Down Expand Up @@ -76,13 +63,6 @@ join-stops(stops, translate)
str += translate(color, pos)
unquote(str)

/*
* Legacy Webkit color stop.
*/

webkit-stop(color, pos)
'color-stop(%d, %s)' % (pos / 100 color)

/*
* Standard color stop.
*/
Expand Down

0 comments on commit c5bfee1

Please sign in to comment.