`$breakpoint-classes` is a list, not a map.
Use `sl-remove()` from SassyList
(https://github.com/at-import/SassyLists) instead of `map-remove()` to
remove the small breakpoint from `$breakpoint-classes`.
Other changes:
- Rename `$map` to `$list`.
- Rename `$size` to `$name`. `$breakpoint-classes` contains breakpoint
names, not sizes. Keep `$-zf-size` for compatibility.
// Sass
SASS_DEPS_FILES: [
- 'node_modules/@(normalize-scss)/sass/**/*.scss'
+ 'node_modules/@(normalize-scss)/sass/**/*.scss',
+ 'node_modules/@(sassy-lists)/stylesheets/**/*.scss'
],
SASS_DOC_PATHS: [
// Prepare dependencies
gulp.task('customizer:prepareSassDeps', function() {
return gulp.src([
- 'node_modules/@(normalize-scss)/sass/**/*.scss'
+ 'node_modules/@(normalize-scss)/sass/**/*.scss',
+ 'node_modules/@(sassy-lists)/stylesheets/**/*'
])
.pipe(gulp.dest('_vendor/scss'));
});
"rimraf": "^2.3.2",
"run-sequence": "^1.1.4",
"sass-true": "^2.0.3",
+ "sassy-lists": "^3.0.0",
"sinon": "^1.17.3",
"supercollider": "^1.4.0",
"touch": "^1.0.0",
// Dependencies
@import "../_vendor/scss/normalize-scss/sass/normalize";
+@import "../_vendor/scss/sassy-lists/stylesheets/SassyLists";
// Settings
// import your own `settings` here or
///
/// @param {Boolean} $small [true] - If `false`, the mixin will skip the `small` breakpoint. Use this with components that don't prefix classes with `small-`, only `medium-` and up.
@mixin -zf-each-breakpoint($small: true) {
- $map: $breakpoint-classes;
+ $list: $breakpoint-classes;
@if not $small {
- $map: map-remove($map, $-zf-zero-breakpoint);
+ $list: sl-remove($list, $-zf-zero-breakpoint);
}
- @each $size in $map {
- $-zf-size: $size !global;
+ @each $name in $list {
+ $-zf-size: $name !global;
- @include breakpoint($size) {
+ @include breakpoint($name) {
@content;
}
}