From d5727d520b1d012ec150b58d796edc2fd3cd2115 Mon Sep 17 00:00:00 2001 From: Phil LaPier Date: Thu, 10 May 2012 14:46:50 -0400 Subject: [PATCH] Updated position addon to support values of auto. --- app/assets/stylesheets/addons/_position.scss | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/addons/_position.scss b/app/assets/stylesheets/addons/_position.scss index 6ad330f1d..faad1cae5 100644 --- a/app/assets/stylesheets/addons/_position.scss +++ b/app/assets/stylesheets/addons/_position.scss @@ -12,19 +12,31 @@ position: $position; - @if not(unitless($top)) { + @if $top == auto { + top: $top; + } + @else if not(unitless($top)) { top: $top; } - @if not(unitless($right)) { + @if $right == auto { + right: $right; + } + @else if not(unitless($right)) { right: $right; } - @if not(unitless($bottom)) { + @if $bottom == auto { + bottom: $bottom; + } + @else if not(unitless($bottom)) { bottom: $bottom; } - @if not(unitless($left)) { + @if $left == auto { + left: $left; + } + @else if not(unitless($left)) { left: $left; } }