Skip to content

Commit d60131a

Browse files
committed
Merge pull request #67 from cazzerson/master
Set $current-bp and $counter in global scope
2 parents da67f78 + 97b4b7b commit d60131a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

breakpoint/_core.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ $first-breakpoint: append($first-breakpoint, ());
3030
// normalize quotes
3131
$label: quote(unquote($label));
3232

33-
$counter: $counter + 1;
33+
$counter: $counter + 1 !global;
3434

3535
// push label to label list names = push(names, myname)
3636
$first-breakpoint: append($first-breakpoint, $label, comma);
3737

3838
}
3939

4040
// set current breakpoint for fluid function
41-
$current-bp: $min;
41+
$current-bp: $min !global;
4242

4343
// min width mq
4444
@if ($min and $max == false) {

breakpoint/_grid.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ img { max-width: 100%; }
1717
.no-js .responsive-image { display: none; }
1818

1919
// Grid container
20-
// Must only contain `.grid` or `.grid-cell` components as children.
20+
// Must only contain `.grid` or `.grid__cell` components as children.
2121
.grid {
2222
display: block;
2323
padding: 0;
@@ -27,7 +27,7 @@ img { max-width: 100%; }
2727
// Remove inter-unit whitespace for all non-monospace font-families
2828
// If you're using a monospace base font, you will need to set the `grid`
2929
// font-family to `sans-serif` and then redeclare the monospace font on
30-
// the `grid-cell` objects.
30+
// the `grid__cell` objects.
3131
letter-spacing: -0.31em;
3232
// Protect against WebKit bug with optimizelegibility
3333
text-rendering: optimizespeed;
@@ -86,4 +86,4 @@ img { max-width: 100%; }
8686
.grid__cell--center {
8787
display: block;
8888
margin: 0 auto;
89-
}
89+
}

0 commit comments

Comments
 (0)