Skip to content

Commit

Permalink
Fix bug with nested grids
Browse files Browse the repository at this point in the history
Nested grids were applying grid item styling to all descedent
grid items, and not only direct children
  • Loading branch information
ediblecode committed Jan 19, 2018
1 parent 4b5ab43 commit 5170fd6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/stylesheets/grid/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,55 +74,55 @@
.grid {
@include grid;

@include modifier('rev') {
&--rev {
@include grid-reverse;
}

@include modifier('gutterless') {
&--gutterless {
@include grid-gutterless;

[data-g] {
> [data-g] {
@include grid-item-gutterless;
}
}

@include modifier('compact') {
&--compact {
@include grid-compact;

[data-g] {
> [data-g] {
@include grid-item-compact;
}
}

@include modifier('loose') {
&--loose {
@include grid-loose;

[data-g] {
> [data-g] {
@include grid-item-loose;
}
}

@include modifier('right') {
&--right {
@include grid-right;
}

@include modifier('center') {
&--center {
@include grid-center;
}

@include modifier('middle') {
[data-g] {
&--middle {
> [data-g] {
@include grid-item-middle;
}
}

@include modifier('bottom') {
[data-g] {
&--bottom {
> [data-g] {
@include grid-item-bottom;
}
}

@include modifier('debug') {
&--debug {
@include grid-debug;

[data-g] {
Expand Down

0 comments on commit 5170fd6

Please sign in to comment.