Skip to content

Commit

Permalink
updated omega to works as nth-omega
Browse files Browse the repository at this point in the history
  • Loading branch information
Duke committed Nov 11, 2012
1 parent 2c01b93 commit 9914275
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions app/assets/stylesheets/grid/_grid.scss
Expand Up @@ -89,13 +89,19 @@ $fg-max-width: $max-width;
} }


// Remove element gutter // Remove element gutter
@mixin omega($display: block, $direction: right) { @mixin omega($display_or_nth: block, $direction_or_display: right, $direction: right) {
@if $display == table { @if $display_or_nth == table {
padding-#{$direction}: 0; padding-#{$direction_or_display}: 0;
} } @else if $display_or_nth == block {

margin-#{$direction_or_display}: 0;
@else { } @else {
margin-#{$direction}: 0; &:nth-child(#{$display_or_nth}) {
@if $direction_or_display == table {
padding-#{$direction}: 0;
} @else {
margin-#{$direction}: 0;
}
}
} }
} }


Expand Down

0 comments on commit 9914275

Please sign in to comment.