是否可以有不同的mixin取决于宽度?如何使它工作?
例如
.fs (@weight: 300, @size: 2vw, @color: black) {
@size2: @size/10.2;
font-family: 'Lato', sans-serif;
font-weight: @weight;
font-size: unit(@size2,vw);
color: @color;
}
@media screen and (min-width: 1024px){
.fs (@weight: 300, @size: 10px, @color: black) {
font-family: 'Lato', sans-serif;
font-weight: @weight;
font-size: unit(@size,px)!important;
color: @color;
}
}
谢谢你