-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
23 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
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,19 @@ | ||
@mixin legacy-settings-warning { | ||
$legacyVars: ( | ||
'default-media': 'default media', | ||
'default-feature': 'default feature', | ||
'force-media-all': 'force all media type', | ||
'to-ems': 'to ems', | ||
'resolutions': 'transform resolutions', | ||
'no-queries': 'no queries', | ||
'no-query-fallbacks': 'no query fallbacks', | ||
'base-font-size': 'base font size', | ||
'legacy-syntax': 'legacy syntax' | ||
); | ||
|
||
@each $legacy, $new in $legacyVars { | ||
@if global-variable-exists('breakpoint-' + $legacy) { | ||
@warn "In order to avoid variable namspace collisions, we have updated the way to change settings for Breakpoint. Please change all instances of `$breakpoint-#{$legacy}: {{setting}}` to `@include breakpoint-set('#{$new}', {{setting}})`. This warning will be deprecated in a future release." | ||
} | ||
} | ||
} |