Last active
August 29, 2015 14:23
-
-
Save suisho/a82cd2deeb68accef918 to your computer and use it in GitHub Desktop.
SCSSと付き合う上でやって(知って)よかったこと8選 ref: http://qiita.com/inuscript/items/e996c42798bbb17add13
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
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); | |
} |
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 -> css -> css (postcss後) |
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
gulp.task('autoprefixer', function () { | |
return gulp.src('./src/*.css') | |
.pipe(postcss([ autoprefixer({ browsers: ['last 2 version'] }) ])) | |
.pipe(gulp.dest('./dest')); | |
}); |
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
body.foo-controller.baz-action{ | |
@import "path/to/component" | |
} | |
body.boo-controller.brr-action{ | |
@import "path/to/component2" | |
} | |
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
*.css binary |
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
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