Skip to content

Commit

Permalink
Replace $g with $gutter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Sep 19, 2014
1 parent d0e4512 commit 5e15644
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions scss/jeet/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@
/**
* Get the width of a column and nothing else.
* @param {number} [$ratios=1] - A width relative to its container as a fraction.
* @param {number} [$g=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
* @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
*/
@function column-width($ratios: 1, $g: $jeet-gutter) {
@return unquote(nth(jeet-get-column($ratios, $g), 1) + '%');
@function column-width($ratios: 1, $gutter: $jeet-gutter) {
@return unquote(nth(jeet-get-column($ratios, $gutter), 1) + '%');
}

/**
* Get the gutter size of a column and nothing else.
* @param {number} [ratios=1] - A width relative to its container as a fraction.
* @param {number} [g=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
* @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
*/
@function column-gutter($ratios: 1, $g: $jeet-gutter) {
@return unquote(nth(jeet-get-column($ratios, $g), 2) + '%');
@function column-gutter($ratios: 1, $gutter: $jeet-gutter) {
@return unquote(nth(jeet-get-column($ratios, $gutter), 2) + '%');
}

/**
Expand Down
12 changes: 6 additions & 6 deletions stylus/jeet/_grid.styl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ col = column
/**
* Get the width of a column and nothing else.
* @param {number} [ratios=1] - A width relative to its container as a fraction.
* @param {number} [g=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
* @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
*/
column-width(ratios = 1, g = jeet.gutter)
return jeet-get-column(ratios, g)[0] + '%'
column-width(ratios = 1, gutter = jeet.gutter)
return jeet-get-column(ratios, gutter)[0] + '%'

/**
* An alias for the column-width function.
Expand All @@ -69,10 +69,10 @@ cw = column-width
/**
* Get the gutter size of a column and nothing else.
* @param {number} [ratios=1] - A width relative to its container as a fraction.
* @param {number} [g=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
* @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
*/
column-gutter(ratios = 1, g = jeet.gutter)
return jeet-get-column(ratios, g)[1] + '%'
column-gutter(ratios = 1, gutter = jeet.gutter)
return jeet-get-column(ratios, gutter)[1] + '%'

/**
* An alias for the column-gutter function.
Expand Down
2 changes: 1 addition & 1 deletion tests/functions/column-gutter/column-gutter.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import 'scss/jeet/index';

.test {
margin-right: column-gutter($ratios: 1/5, $g: 5);
margin-right: column-gutter($ratios: 1/5, $gutter: 5);
}
2 changes: 1 addition & 1 deletion tests/functions/column-gutter/column-gutter.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'stylus/jeet/index'

.test
margin-right: column-gutter(ratios: 1/5, g: 5)
margin-right: column-gutter(ratios: 1/5, gutter: 5)
2 changes: 1 addition & 1 deletion tests/functions/column-width/column-width.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import 'scss/jeet/index';

.test {
margin-right: column-width($ratios: 1/5, $g: 5);
margin-right: column-width($ratios: 1/5, $gutter: 5);
}
2 changes: 1 addition & 1 deletion tests/functions/column-width/column-width.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'stylus/jeet/index'

.test
margin-right: column-width(ratios: 1/5, g: 5)
margin-right: column-width(ratios: 1/5, gutter: 5)

0 comments on commit 5e15644

Please sign in to comment.