summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-21 19:07:17 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-21 19:07:17 -0700
commite90e128c8bad11ed3b461644a798a05592302f81 (patch)
tree3c87d9115ea15c6fbef74335228d01715dc3e18b
parente6e920ac90368f0044536505a408f8809860aece (diff)
downloadpyscss-e90e128c8bad11ed3b461644a798a05592302f81.tar.gz
Shut up, position(). Also, learn about "to".
-rw-r--r--scss/functions/compass/helpers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/functions/compass/helpers.py b/scss/functions/compass/helpers.py
index 92f1ed3..0ba2f18 100644
--- a/scss/functions/compass/helpers.py
+++ b/scss/functions/compass/helpers.py
@@ -398,6 +398,9 @@ def _position(opposite, positions):
else:
ret.append(pos)
continue
+ elif pos_value == 'to':
+ # Gradient syntax keyword; leave alone
+ ret.append(pos)
elif isinstance(pos, Number):
if pos.unit == '%':
@@ -414,7 +417,8 @@ def _position(opposite, positions):
ret.append(pos)
continue
- log.warn("Can't find opposite for position %r" % (pos,))
+ if opposite:
+ log.warn("Can't find opposite for position %r" % (pos,))
ret.append(pos)
return List(ret, use_comma=False).maybe()