我需要在媒体查询下更改一些变量的值。对,不是它不起作用。有可能吗?
$origami-width: 565px;
$origami-height: 332px;
@media (max-width: $screen-sm-max){
$origami-width: 370px;
$origami-height: 300px;
}发布于 2014-05-23 06:51:56
我让它像这样工作。谢谢!
@media (min-width: $screen-md){
$origami-width: 565px;
$origami-height: 332px;
.origami-container {
width: $origami-width * 2;
}
.origami {
@include size($origami-width, $origami-height);
.content {
height: $origami-height;
}
}
}
@media (max-width: $screen-sm-max){
$origami-width: 370px;
$origami-height: 300px;
.origami-container {
width: $origami-width * 2;
}
.origami {
@include size($origami-width, $origami-height);
.content {
height: $origami-height;
}
}
}https://stackoverflow.com/questions/23818203
复制相似问题