Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated position addon to support values of auto.

  • Loading branch information...
commit d5727d520b1d012ec150b58d796edc2fd3cd2115 1 parent b301698
Phil LaPier authored
Showing with 16 additions and 4 deletions.
  1. +16 −4 app/assets/stylesheets/addons/_position.scss
View
20 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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.