mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Fix inconsistent argument name in grid-space() function in Sass
This commit is contained in:
@@ -114,11 +114,11 @@ $context: 'frontend' !default;
|
|||||||
// }
|
// }
|
||||||
// ```
|
// ```
|
||||||
//
|
//
|
||||||
// @param {number} $number - The percentage spacer
|
// @param {number} $number - The percentage number
|
||||||
// @param {number} $inset - The grid gutter inset
|
// @param {number} $inset - The grid gutter inset
|
||||||
// @return {function<number>}
|
// @return {function<number>}
|
||||||
@function grid-space($percentage, $inset: 0) {
|
@function grid-space($number, $inset: 0) {
|
||||||
@return calc(#{$percentage} * (100vw - 2 * var(--grid-margin, 0px)) - (1 - #{$percentage}) * var(--grid-gutter, 0px) + #{$inset} * var(--grid-gutter, 0px));
|
@return calc(#{$number} * (100vw - 2 * var(--grid-margin, 0px)) - (1 - #{$number}) * var(--grid-gutter, 0px) + #{$inset} * var(--grid-gutter, 0px));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns calculation of a percentage of the viewport small height.
|
// Returns calculation of a percentage of the viewport small height.
|
||||||
|
|||||||
Reference in New Issue
Block a user