【发布时间】:2013-09-23 15:03:38
【问题描述】:
简而言之,通过使用 Susy 的 at-breakpoint 响应式混合,有没有一种方法或功能可以在断点调用的主体中包含外部 CSS 文件?
类似这样的:
.page {
border: 1px dashed #000;
height: 650px;
@include container;
.content {
color: red;
text-align: center;
border: 1px dashed red;
height: 400px;
@include span-columns(4 omega, 6);
.main {
color: green;
border: 1px dashed green;
text-align: center;
@include span-columns(1, 2);
}
.secondary {
color: blue;
border: 1px dashed blue;
@include span-columns(2, 3);
}
}
@include at-breakpoint(800px 8 250px) {
@include container;
.content {
@include span-columns(1, 1);
}
//IMPORT or INCLUDE CSS FILE HERE somehow...
} //end of breakpoint
}
我希望这是可能的,因为这比编写我希望内联应用的所有 CSS 规则要干净得多。让我知道这是否可行或在这种情况下最佳做法是什么。
谢谢!
【问题讨论】:
标签: grid responsive-design susy-compass