Skip to content
This repository was archived by the owner on Aug 9, 2019. It is now read-only.

Commit afcd390

Browse files
committed
renaming variables to scsslint preferred syntax
1 parent c0a7096 commit afcd390

9 files changed

+25
-26
lines changed

css/smart-grid-flexbox.css

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/smart-grid-flexbox.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/smart-grid.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/smart-grid.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sass/smart-grid-columns.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
@mixin column() {
44
float: left;
55
margin: 0 0 0 $gutter;
6-
width: $onecol;
6+
width: $one-column;
77
&:first-child {
88
margin-left: 0;
99
}
10-
@if $flexbox_support == true {
10+
@if $flexbox-support == true {
1111
html.flexbox & {
1212
float: none;
1313
}
1414
}
1515
}
1616
@mixin columns($count:1) {
17-
width: ($onecol * $count) + ($gutter * ($count - 1));
17+
width: ($one-column * $count) + ($gutter * ($count - 1));
1818
}
1919
@mixin offset($columns:1) {
20-
margin-left: ($onecol * $columns) + ($gutter * ($columns + 1));
20+
margin-left: ($one-column * $columns) + ($gutter * ($columns + 1));
2121
&:first-child {
22-
margin-left: ($onecol * $columns) + ($gutter * $columns);
22+
margin-left: ($one-column * $columns) + ($gutter * $columns);
2323
}
2424
}
2525

2626
@mixin column-set() {
2727
.columns {
2828
@include column;
29-
@each $i in $columnList {
29+
@each $i in $column-list {
3030
$selectors: ();
3131
@for $j from 2 to length($i) + 1 {
3232
$selectors: $selectors, unquote("&.#{nth($i, $j)}");
@@ -35,7 +35,7 @@
3535
@include columns(nth($i, 1));
3636
}
3737
}
38-
@each $i in $offsetList {
38+
@each $i in $offset-list {
3939
$selectors: ();
4040
@for $j from 2 to length($i) + 1 {
4141
$selectors: $selectors, unquote("&.offset-#{nth($i, $j)}");

sass/smart-grid-containers.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@mixin flexbox_row() {
55
html.flexbox & {
6-
@media (min-width:$columnsBreakPoint) {
6+
@media (min-width:$columns-break-point) {
77
display: -moz-flex;
88
display: -ms-flex; // one day, maybe
99
display: -ms-flexbox;
@@ -20,7 +20,7 @@
2020
}
2121

2222
@mixin container() {
23-
max-width: $containerMaxWidth;
23+
max-width: $container-max-width;
2424
padding: 0 $gutter/2;
2525
margin: 0 auto;
2626
}

sass/smart-grid-flexbox.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
@include clearfix;
1212
}
1313

14-
@if $flexbox_support == true {
14+
@if $flexbox-support == true {
1515
.row {
1616
@include flexbox_row;
1717
}
1818
}
1919

20-
@media (min-width:$columnsBreakPoint) {
20+
@media (min-width:$columns-break-point) {
2121
@include column-set;
2222
}
2323

sass/smart-grid-variables.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
$gutter: percentage(20px/940px);
33

44
// 60px at 960px wide container
5-
$onecol: 6.3829787%;
5+
$one-column: 6.3829787%;
66

77
// set this to the minimum width you want the columns to take effect at
8-
$columnsBreakPoint: 481px !default;
8+
$columns-break-point: 481px !default;
99

1010
// set this to the maximum width you want .container to have
11-
$containerMaxWidth: 940px !default;
11+
$container-max-width: 940px !default;
1212

1313
// set this to true to include support for CSS Flexbox (modern syntax).
14-
$flexbox_support: true !default;
14+
$flexbox-support: true !default;
1515

1616
// a collection of the columns you want to build. the first parameter must be an integer of how many columns wide this instance is, followed by 1 or more class names to apply this width to.
17-
$columnList: (2, "two") (3, "three", "one-fourth") (4, "four", "one-third") (5, "five") (6, "six", "one-half") (7, "seven") (8, "eight", "two-thirds") (9, "nine", "three-fourths") (10, "ten") (11, "eleven") (12, "twelve", "full") !default;
17+
$column-list: (2, "two") (3, "three", "one-fourth") (4, "four", "one-third") (5, "five") (6, "six", "one-half") (7, "seven") (8, "eight", "two-thirds") (9, "nine", "three-fourths") (10, "ten") (11, "eleven") (12, "twelve", "full") !default;
1818

1919
// a collection of the offsets you want to build. the first parameter must be an integer of how many columns wide this instance is offset, followed by 1 or more class names to apply this offset to.
20-
$offsetList: (1, "one") (2, "two") (3, "three") (4, "four") (5, "five") (6, "six") (7, "seven") (8, "eight") (9, "nine") (10, "ten") (11, "eleven") !default;
20+
$offset-list: (1, "one") (2, "two") (3, "three") (4, "four") (5, "five") (6, "six") (7, "seven") (8, "eight") (9, "nine") (10, "ten") (11, "eleven") !default;

sass/smart-grid.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import "smart-grid-variables";
2-
$flexbox_support: false;
2+
$flexbox-support: false;
33
@import "smart-grid-containers";
44
@import "smart-grid-columns";
55

@@ -12,13 +12,13 @@ $flexbox_support: false;
1212
@include clearfix;
1313
}
1414

15-
@if $flexbox_support == true {
15+
@if $flexbox-support == true {
1616
.row {
1717
@include flexbox_row;
1818
}
1919
}
2020

21-
@media (min-width:$columnsBreakPoint) {
21+
@media (min-width:$columns-break-point) {
2222
@include column-set;
2323
}
2424

0 commit comments

Comments
 (0)