Skip to content

Commit

Permalink
feat(Grid): Add support for offset-0 classes for non-xs breakpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
kendrick committed Nov 21, 2017
1 parent d826f75 commit dba01cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rocketbelt/base/grid/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@
&.#{$key} {
$str: '&';
@for $i from 1 through $columns {
@if ($key != 'xs' and $i == 1) {
$str: $str + ', &-offset-0';
}

$str: $str + ', &-' + $i + ', &-offset-' + $i;
}

Expand All @@ -144,6 +148,10 @@
@include column-span(auto);
}

&-offset-0 {
@include column-offset(0);
}

@for $i from 1 through $columns {
&-#{$i} {
@include column-span($i);
Expand Down

0 comments on commit dba01cd

Please sign in to comment.