-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate default-margin and default-padding Sass variables
Please use custom properties instead.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@import "alchemy/deprecation"; | ||
|
||
@include alchemy-deprecated-variable("$default-padding", "var(--spacing-1)"); | ||
@include alchemy-deprecated-variable("$default-margin", "var(--spacing-1)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@charset "UTF-8"; | ||
|
||
/// Throws Sass warnings to announce backend deprecations. You can disable them | ||
/// by setting the `$output-alchemy-deprecation-warnings` variable to `false`. | ||
/// | ||
/// @access private | ||
|
||
$output-alchemy-deprecation-warnings: true !default; | ||
|
||
@mixin alchemy-deprecated-variable($variable, $replacement) { | ||
@if $output-alchemy-deprecation-warnings == true { | ||
@if global-variable-exists($variable) { | ||
@warn "[Alchemy] [Deprecation] Sass variable `#{$variable}` is deprecated and will be " + | ||
"removed in Alchemy 8.0. Please use custom property `#{$replacement}` instead"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters