Skip to content

Instantly share code, notes, and snippets.

@suisho
Last active August 29, 2015 14:23
Show Gist options
  • Save suisho/a82cd2deeb68accef918 to your computer and use it in GitHub Desktop.
Save suisho/a82cd2deeb68accef918 to your computer and use it in GitHub Desktop.
SCSSと付き合う上でやって(知って)よかったこと8選 ref: http://qiita.com/inuscript/items/e996c42798bbb17add13
div {
-webkit-box-shadow: 0px 0px 10px rgba(255,0,0,.5);
-moz-box-shadow: 0px 0px 10px rgba(255,0,0,.5);
box-shadow: 0px 0px 10px rgba(255,0,0,.5);
}
sass -> css -> css (postcss後)
gulp.task('autoprefixer', function () {
return gulp.src('./src/*.css')
.pipe(postcss([ autoprefixer({ browsers: ['last 2 version'] }) ]))
.pipe(gulp.dest('./dest'));
});
body.foo-controller.baz-action{
@import "path/to/component"
}
body.boo-controller.brr-action{
@import "path/to/component2"
}
*.css binary
div {
box-shadow: 0px 0px 10px rgba(255,0,0,.5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment