@mixin sp-view @media only screen and (max-width: 767px) @content
こういう mixin をつくっておくと、
.hoge @include sp-view text-align: center
で、
@media only screen and (max-width: 767px) { .hoge { text-align: center; } }
みたいに展開されて便利。
ウェブサービスを作っています。
@mixin sp-view @media only screen and (max-width: 767px) @content
こういう mixin をつくっておくと、
.hoge @include sp-view text-align: center
で、
@media only screen and (max-width: 767px) { .hoge { text-align: center; } }
みたいに展開されて便利。