diff options
Diffstat (limited to 'scss/functions/compass/helpers.py')
-rw-r--r-- | scss/functions/compass/helpers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scss/functions/compass/helpers.py b/scss/functions/compass/helpers.py index 5f56b6d..4fc9062 100644 --- a/scss/functions/compass/helpers.py +++ b/scss/functions/compass/helpers.py @@ -417,6 +417,13 @@ def _position(opposite, positions): else: ret.append(pos) continue + elif pos.unit == 'deg': + # TODO support other angle types? + if opposite: + ret.append(NumberValue((pos.value + 180) % 360, 'deg')) + else: + ret.append(pos) + continue warnings.warn("Can't find opposite for position %r" % (pos,)) ret.append(pos) |