vendor/assets/stylesheets/settings/functions/_position.css.sass in oulu-rails-0.5.9 vs vendor/assets/stylesheets/settings/functions/_position.css.sass in oulu-rails-0.5.10
- old
+ new
@@ -2,10 +2,25 @@
@if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "center"
@return true
@else
@return null
+@function direction($value)
+ @if string($value)
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right" or $value == "horizontal" or $value == "vertical" or $value == "all"
+ @return true
+ @else
+ @return null
+ @else
+ @return null
+
+@function four_position($value)
+ @if $value == "top" or $value == "bottom" or $value == "left" or $value == "right"
+ @return true
+ @else
+ @return null
+
@function top($value)
@if $value == "top"
@return true
@else
@return null
@@ -40,8 +55,26 @@
@else
@return null
@function position_horizontal($value)
@if $value == 'left' or $value == 'right'
+ @return true
+ @else
+ @return null
+
+@function all($value)
+ @if $value == "all"
+ @return true
+ @else
+ @return null
+
+@function horizontal($value)
+ @if $value == "horizontal"
+ @return true
+ @else
+ @return null
+
+@function vertical($value)
+ @if $value == "vertical"
@return true
@else
@return null