Skip to content

Commit 6a68d3c

Browse files
author
Darius Rosendahl
committed
Fix for B1 and B2
1 parent 3edc575 commit 6a68d3c

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

sass/layout/grid.scss

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -179,35 +179,37 @@
179179
@for $b from 1 through 2 {
180180
$breakpoint : map-get($breakpoint-map, $b);
181181
$gutter : map-get($gutter-map, $b);
182+
183+
@media only screen and (min-width: $breakpoint) {
184+
185+
@for $i from 1 through 12 {
186+
$width: ($i/12) * 100%;
182187

183-
@for $i from 1 through 12 {
184-
$width: ($i/12) * 100%;
185-
186-
@if $i < 10 {
187-
.b#{$b}_0#{ $i } { width: $width; }
188+
@if $i < 10 {
189+
.b#{$b}_0#{ $i } { width: $width; }
188190

189-
.b#{$b}_push_0#{ $i } { margin-left: $width; }
190-
} @else {
191+
.b#{$b}_push_0#{ $i } { margin-left: $width; }
192+
} @else {
191193

192-
.b#{$b}_#{ $i } { width: $width; }
194+
.b#{$b}_#{ $i } { width: $width; }
193195

194-
.b#{$b}_push_#{ $i } { margin-left: $width; }
195-
}
196-
@for $i from 13 through 24 {
197-
$width: ($i/12) * 100%;
196+
.b#{$b}_push_#{ $i } { margin-left: $width; }
197+
}
198+
@for $i from 13 through 24 {
199+
$width: ($i/12) * 100%;
200+
}
198201
}
199-
}
200202

201-
.g {
202-
margin-left: -#{$gutter};
203-
204-
> * {
205-
padding-left: $gutter;
203+
.g {
204+
margin-left: -#{$gutter};
205+
206+
> * {
207+
padding-left: $gutter;
208+
}
206209
}
207-
}
208-
209-
.b2_push_none { margin-left: 0; }
210210

211+
.b#{$b}_push_none { margin-left: 0; }
212+
}
211213
}
212214

213215
/* 24 column grid for $b3 and higher */

0 commit comments

Comments
 (0)