Вы не передаете @content
при использовании @include desktop-breakpoint
в своем large-breakpoint
миксине. Это исправит ошибку вашей компиляции:
@mixin large-breakpoint {
// Remember to pass content received by mixin to @include
@include desktop-breakpoint {
@content;
}
}
Тогда ваш CSS будет правильно скомпилирован, как и предполагалось:
.my-class {
font-size: small;
}
@media only screen and (min-width: 769px) {
.my-class {
font-size: big;
}
}
.my-other-class {
color: red;
}
@media only screen and (min-width: 769px) {
.my-other-class {
color: blue;
}
}
См. Пример проверки концепции на основе вашего измененного кода: https://www.sassmeister.com/gist/3109af060293eed0b89a22c27fa20527