mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-10-30 08:06:28 +00:00
14 lines
418 B
SCSS
14 lines
418 B
SCSS
|
@function grid-width($n) {
|
||
|
@return $n * $gw-column + ($n - 1) * $gw-gutter;
|
||
|
}
|
||
|
|
||
|
// The $gw-column and $gw-gutter variables must be defined in your base stylesheet to properly use the grid-width function.
|
||
|
//
|
||
|
// $gw-column: 100px; // Column Width
|
||
|
// $gw-gutter: 40px; // Gutter Width
|
||
|
//
|
||
|
// div {
|
||
|
// width: grid-width(4); // returns 520px;
|
||
|
// margin-left: $gw-gutter; // returns 40px;
|
||
|
// }
|