Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Grid: add small and large gutter modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Hudders committed Jan 27, 2016
1 parent 60c11ee commit 790945c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _objects.grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ $grid-gutter : $columns-gutter !default;
@include margin-lr(-($grid-gutter),-($grid-gutter));
}

.o-grid--gutter-sm {
@include margin-lr(-($grid-gutter/2),-($grid-gutter/2));
}

.o-grid--gutter-lg {
@include margin-lr(-($grid-gutter*2),-($grid-gutter*2));
}

// Grid item, takes the full width by default

.o-grid__item {
Expand All @@ -43,4 +51,12 @@ $grid-gutter : $columns-gutter !default;
.o-grid--gutter > & {
@include padding-lr($grid-gutter,$grid-gutter);
}

.o-grid--gutter-sm > & {
@include padding-lr($grid-gutter/2,$grid-gutter/2);
}

.o-grid--gutter-lg > & {
@include padding-lr($grid-gutter*2,$grid-gutter*2);
}
}

0 comments on commit 790945c

Please sign in to comment.