app/assets/stylesheets/grid/_omega.scss in neat-1.5.0 vs app/assets/stylesheets/grid/_omega.scss in neat-1.5.1

- old
+ new

@@ -7,56 +7,38 @@ @warn "The omega mixin will no longer take a $direction argument. To change the layout direction, use row($direction) or set $default-layout-direction instead." } @else { $direction: get-direction($layout-direction, $default-layout-direction); } + @if $table { + @warn "The omega mixin no longer removes padding in table layouts." + } + @if length($query) == 1 { @if $auto { &:last-child { margin-#{$direction}: 0; } } - @else if contains-display-value($query) { - @if $table { - padding-#{$direction}: 0; - } - - @else { - margin-#{$direction}: 0; - } + @else if contains-display-value($query) and $table == false { + margin-#{$direction}: 0; } @else { @include nth-child($query, $direction); } } @else if length($query) == 2 { - @if $table { - @if $auto { - &:last-child { - padding-#{$direction}: 0; - } + @if $auto { + &:last-child { + margin-#{$direction}: 0; } - - @else { - &:nth-child(#{nth($query, 1)}) { - padding-#{$direction}: 0; - } - } } @else { - @if $auto { - &:last-child { - margin-#{$direction}: 0; - } - } - - @else { - @include nth-child(nth($query, 1), $direction); - } + @include nth-child(nth($query, 1), $direction); } } @else { @warn "Too many arguments passed to the omega() mixin."