ファウンデーションフレームワーク(http://foundation.zurb.com/)を使用して小さなサンプルグリッドを作成しました。グリッドは、デスクトップモードの4つのフローティング要素で構成されています(_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.
ファンデーションベースのプロジェクトで、さまざまなメディアクエリごとに列構造を再定義するための作業方法を教えてもらえますか?