discourse/app/assets/stylesheets/common/foundation/spacing.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
389 B
SCSS
Raw Normal View History

$base-space: 4px;
@function s(
$sizes: (
0
)
) {
$spaces: ();
@each $size in $sizes {
@if ($size == 0) {
// Strip units if 0
$size: $size * $base-space;
$size: $size / ($size * 0 + 1);
} @else if ($size == auto) {
$size: auto;
} @else {
$size: $size * $base-space;
}
$spaces: append($spaces, $size);
}
@return $spaces;
}