We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$grid-breakpoints
1 parent 7787f64 commit 0f91977Copy full SHA for 0f91977
scss/_functions.scss
@@ -23,10 +23,12 @@
23
// Starts at zero
24
// Used to ensure the min-width of the lowest breakpoint starts at 0.
25
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
26
- $values: map-values($map);
27
- $first-value: nth($values, 1);
28
- @if $first-value != 0 {
29
- @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
+ @if length($map) > 0 {
+ $values: map-values($map);
+ $first-value: nth($values, 1);
+ @if $first-value != 0 {
30
+ @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
31
+ }
32
}
33
34
0 commit comments