Created
May 15, 2015 10:04
-
-
Save suisho/3de1bd3f06429593d7a2 to your computer and use it in GitHub Desktop.
gulpでruby-sassからnode-sassへ移行するときのハマりどころ ref: http://qiita.com/suisho/items/8e91c825c525ad17539b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 読み込まれない(エラー出ない) | |
@import "basic"; | |
// 読み込まれる | |
@import "sass/basic"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.foo{ | |
color: #12345 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
filter: expression(document.execCommand("BackgroundImageCache",false, true)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin box-sizing-border{ | |
@at-root{ | |
#{&}{ | |
box-sizing: border-box; | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin box-sizing-border{ | |
@at-root{ | |
$selector: & | |
#{$selector}{ | |
box-sizing: border-box; | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass | |
├── _basic.scss | |
└── application.scss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment