失敗履歴

Webデザイン

カテゴリー: SCSS  閲覧数:603 配信日:2015-12-23 18:33


D:\0-scss\scss>
sass --style expanded style.scss:style.css
Errno::ENOENT: No such file or directory @ rb_sysopen - style.scss
 Use --trace for backtrace.


D:\0-scss\scss>
sass --style expanded landio.scss:new.css
Error: Import directives may not be used within control directives or mixins.
       on line 95 of landio.scss
 Use --trace for backtrace.


▼new.css
/*
Error: Import directives may not be used within control directives or mixins.
       on line 95 of landio.scss

90: // Video JS
91: @import 'plugins/videojs-landio-skin';
92:
93: // Animate CSS (none for mobile)
94: @include media-breakpoint-up(md) {
95:   @import 'plugins/animate';
96: }
97:
98:
99: //
100: // =Waypoint animations

Backtrace:
landio.scss:95
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/check_nesting.rb:13:in `visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:52:in `map'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:52:in `visit_children'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/check_nesting.rb:49:in `visit_children'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:38:in `visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/check_nesting.rb:15:in `visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:52:in `map'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:52:in `visit_children'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/check_nesting.rb:49:in `visit_children'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:36:in `block in visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/check_nesting.rb:57:in `visit_root'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:36:in `visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/check_nesting.rb:15:in `visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/visitors/base.rb:24:in `visit'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/root_node.rb:35:in `css_tree'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/tree/root_node.rb:29:in `render_with_sourcemap'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/engine.rb:378:in `_render_with_sourcemap'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/engine.rb:295:in `render_with_sourcemap'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/exec/sass_scss.rb:412:in `run'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/exec/sass_scss.rb:63:in `process_result'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/exec/base.rb:52:in `parse'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/lib/sass/exec/base.rb:19:in `parse!'
D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.20/bin/sass:13:in `<top (required)>'
D:/Ruby22-x64/bin/sass:23:in `load'
D:/Ruby22-x64/bin/sass:23:in `<main>'
*/
body:before {
 white-space: pre;
 font-family: monospace;
 content: "Error: Import directives may not be used within control directives or mixins.\A         on line 95 of landio.scss\A \A 90: // Video JS\A 91: @import 'plugins/videojs-landio-skin';\A 92: \A 93: // Animate CSS (none for mobile)\A 94: @include media-breakpoint-up(md) {\A 95:   @import 'plugins/animate';\A 96: }\A 97: \A 98: \A 99: //\A 100: // =Waypoint animations"; }


対応
▼landio.scss
// Animate CSS (none for mobile)
@include media-breakpoint-up(md) {
// @import 'plugins/animate';
}



Error: Import directives may not be used within control directives or mixins.on line ★★ of hoge.scss

週間人気ページランキング / 4-19 → 4-25
順位 ページタイトル抜粋 アクセス数
1 16進数カラーコード / 2進数 23
2 Windows10で「Google Chrome」が常に最前面に表示される。「アクティブウィンドウ」が最前面で表示されない → 解決方法存在しない | Google Chrome(ブラウザ) 14
3 「Font Awesome 4」と「Font Awesome 5」の違い(Font Awesome バージョン4からのアップグレード) | Font Awesome(フォント) 13
4 「マウスオーバー」「ロールオーバー」「ホバー」の違い | CSS 12
5 RGB ⇔ Lab | 色変換(色) 9
5 Chromeデベロッパーツールで、スマホソースコードを確認したいが、USBデバッグ機能をどうしても有効にすることが出来ない | モバイルデザイン(デザイン) 9
6 Design 0 8
6 血の色 / #b30000 / #360800 / #ff0000 | カラーコード(色) 8
7 Chrome でキャッシュを効かさない | Google Chrome(ブラウザ) 6
8 「z-index」効果を打ち消すスタイルシートは、「z-index:auto;」 5
8 「Chrome拡張機能」開発中に遭遇したエラー | Chrome 拡張機能 5
9 max-width: 100%の効果を打ち消すには、max-width: none; | CSS 4
10 「line-height」効果を打ち消すスタイルシートは、「line-height:normal; 3
10 「overflow」効果を打ち消すスタイルシートは、「overflow: auto;」 3
10 「群青色」「瑠璃色」「ウルトラマリンブルー」の違い 3
10 「bgcolor」「background-color」「background」の違い | CSS 3
11 HTML5でiframeスクロールバーを表示しない方法が不明 | HTML5(HTML) 2
11 「Midjourney」を使用してみた感想。2022 年 8 月 2 時点では、画像生成能力自体は素晴らしいと思いますが、UIが致命的に分かりづらかったです。 | AI画像生成 2
11 2進数 / Binary Number 2
11 鉄道会社毎のカラーコード | カラーコード(色) 2
2024/4/26 1:01 更新
指定期間人気ページランキング / 2020-5-30 → 2024-4-25
順位 ページタイトル抜粋 アクセス数
1 RGB ⇔ Lab | 色変換(色) 8131
2 「マウスオーバー」「ロールオーバー」「ホバー」の違い | CSS 4354
3 血の色 / #b30000 / #360800 / #ff0000 | 色 3484
4 Design 0 3405
5 RGBの種類 / ビットカラー | RGB(色) 2443
6 Windows10で「Google Chrome」が常に最前面に表示される。「アクティブウィンドウ」が最前面で表示されない → 解決方法存在しない | Google Chrome(ブラウザ) 2354
7 「bgcolor」「background-color」「background」の違い | CSS 1773
8 コズミックブルーが何色か分からない | 色 1697
9 金融機関ブランドカラー / コーポレートカラー | カラーコード(色) 1696
10 「:hover」「z-index」を組み合わせて使用すると、正常動作しないことがある | z-index(CSS) 1526
10 「属性」「プロパティ」「アトリビュート」の違い | CSS 1526
11 「Bootstrapデザイン」✕「グラフ」 | 2系(Bootstrap) 1458
12 「Font Awesome 4」と「Font Awesome 5」の違い(Font Awesome バージョン4からのアップグレード) | Font Awesome(フォント) 1423
13 16進数カラーコード / 2進数 1407
14 Chrome でキャッシュを効かさない | Google Chrome(ブラウザ) 1229
15 HSLとHSVの違い | 色変換(色) 1130
16 使用していないCSSをチェックする、標準的な方法を知りたい | CSS 1010
17 黒体 / 色温度 / D65(6500K)/ D50(5000K)/ K | 色 965
18 「:after擬似要素」は、Chromeの「要素を検証」で確認できない | 擬似(CSS) 956
19 GIFアニメーション | 画像 912
2024/4/26 1:01 更新