Skip to content

Commit

Permalink
fix(sass): allow overriding $spacers
Browse files Browse the repository at this point in the history
fixes #10303
  • Loading branch information
KaelWD committed Jan 25, 2020
1 parent c8e9239 commit 6d913d3
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions packages/vuetify/src/styles/settings/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ $border-radius-root: 4px !default;

$spacer: 4px !default;

$spacers: ();
@for $i from 0 through 12 {
$spacers: map-merge($spacers, ($i: $spacer * $i))
};

$negative-spacers: ();
@for $i from 1 through 12 {
$negative-spacers: map-merge($negative-spacers, ("n" + $i: -$spacer * $i))
};
$spacers: () !default;
@if (type-of($spacers) == list) {
@for $i from 0 through 12 {
$spacers: map-merge($spacers, ($i: $spacer * $i))
}
}

$negative-spacers: () !default;
@if (type-of($negative-spacers) == list) {
@for $i from 1 through 12 {
$negative-spacers: map-merge($negative-spacers, ("n" + $i: -$spacer * $i))
}
}

$grid-breakpoints: () !default;
$grid-breakpoints: map-deep-merge(
Expand Down

0 comments on commit 6d913d3

Please sign in to comment.