Last active
August 29, 2015 14:18
-
-
Save pierreburel/69b5c566280af10fef9d to your computer and use it in GitHub Desktop.
Using sass-rem with sass syntax
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
gulp.task('sass', function () { | |
gulp.src('./*.sass') | |
.pipe(sass({indentedSyntax: true})) | |
.pipe(gulp.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
html { | |
font-size: 62.5%; } | |
body { | |
font-size: 22px; | |
font-size: 2.2rem; | |
padding: 9px 6px 4px; | |
padding: 0.9rem 0.6rem 0.4rem; } |
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 "bower_components/sass-rem/rem" | |
html | |
font-size: 62.5% | |
body | |
+rem((font-size: 22px, padding: 9px 6px 4px)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment