Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/functions/_grid-width.scss

raw
1 @function grid-width($n) {
2 @return $n * $gw-column + ($n - 1) * $gw-gutter;
3 }
4
5 // The $gw-column and $gw-gutter variables must be defined in your base stylesheet to properly use the grid-width function.
6 //
7 // $gw-column: 100px; // Column Width
8 // $gw-gutter: 40px; // Gutter Width
9 //
10 // div {
11 // width: grid-width(4); // returns 520px;
12 // margin-left: $gw-gutter; // returns 40px;
13 // }