我用基础框架(http://foundation.zurb.com/)制作了一个小示例网格。网格由桌面模式下的四个浮动元素组成(_setting, $rowWidth 1140px)
*标记
<div id="container">
<div id="main">
<div id="column">
*scss
#container{
@include outerRow();
}
.column{
@include column(3);
}
以上基于这些来源的混合:http: //foundation.zurb.com/docs/sass-mixins.php
现在我想在平板电脑上以纵向模式查看示例时更改列结构。我做了这样的事情:
@media screen and (min-width: 768px) and (orientation: portrait) {
#container{
@include outerRow();
}
.column{
@include column(6);
}
}
出现以下错误:
> DEPRECATION WARNING on line 21 of /Library/Ruby/Gems/1.8/gems/zurb-foundation-3.2.3/scss/foundation/mixins/_semantic-grid.scss:
> @extending an outer selector from within @media is deprecated.
> You may only @extend selectors within the same directive.
> This will be an error in Sass 3.3.
> It can only work once @extend is supported natively in the browser.
谁能告诉我在基于基础的项目中为每个不同的媒体查询重新定义列结构的工作方法是什么?