From e90e128c8bad11ed3b461644a798a05592302f81 Mon Sep 17 00:00:00 2001 From: "Eevee (Alex Munroe)" Date: Wed, 21 Aug 2013 19:07:17 -0700 Subject: Shut up, position(). Also, learn about "to". --- scss/functions/compass/helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1