Fix warnings when compiling SCSS

Foundation was using `!global` for non-existing variables, which
generated a warning on our current version of Sass.

This is (mostly) fixed on the latest version of Foundation. However,
this latest version isn't included in the `foundation-rails` gem, so we
can't upgrade yet.

So we're defining these variables before Foundation does so.

See issue 12080 in the foundation/foundation-sites repository for more
information.
This commit is contained in:
Javi Martín
2022-04-17 14:04:53 +02:00
parent 5c6ab81c38
commit 1e1edc02e9

View File

@@ -6,6 +6,7 @@
// 1. Foundation settings overrides // 1. Foundation settings overrides
// 2. CONSUL variables // 2. CONSUL variables
// 3. Foundation overrides depending on CONSUL variables // 3. Foundation overrides depending on CONSUL variables
// 4. Foundation fixes
// 1. Foundation settings overrides // 1. Foundation settings overrides
// --------------------------------- // ---------------------------------
@@ -154,3 +155,14 @@ $tab-content-border: $border !default;
$closebutton-color: $text !default; $closebutton-color: $text !default;
$tooltip-background-color: $brand !default; $tooltip-background-color: $brand !default;
// 4. Foundation fixes
// -------------------
$alert-color: null !default;
$primary-color: null !default;
$secondary-color: null !default;
$success-color: null !default;
$warning-color: null !default;
$-zf-bp-value: null !default;
$-zf-size: null !default;