Skip to content

Commit 7523e84

Browse files
committed
Media mixin: display an error message when given no arguments
1 parent 8f07f53 commit 7523e84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/styles/mixins/media.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
$media: ''
3232
$disjunctionCount: length($breakpoints)
3333

34+
@if $disjunctionCount == 0
35+
@error "The media mixin expects at leas one argument! None given."
36+
3437
@for $i from 1 through $disjunctionCount
3538
$conjunction: nth($breakpoints, $i)
3639
$conjunctionCount: length($conjunction)

0 commit comments

Comments
 (0)