编译sass文件时出现此错误:
Illegal nesting: Only properties may be nested beneath properties. on line 4 of src/sass/_vars_and_mixins.sass
导致问题的代码是第四行
$breakpoints: (mobile: 768px, tablet: 767px, desktop: 1024px, large: 1280px)
@mixin mobile
@media screen and (max-width: map-get($breakpoints, mobile))
@content
由于某种原因,以下mixin没有抛出任何错误。
@mixin tablet
@media screen and (min-width: map-get($breakpoints, tablet))
@content
任何人都可以发现差异吗?