Skip to content

Instantly share code, notes, and snippets.

@pierreburel
Last active August 29, 2015 14:18
Show Gist options
  • Save pierreburel/69b5c566280af10fef9d to your computer and use it in GitHub Desktop.
Save pierreburel/69b5c566280af10fef9d to your computer and use it in GitHub Desktop.
Using sass-rem with sass syntax
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
gulp.src('./*.sass')
.pipe(sass({indentedSyntax: true}))
.pipe(gulp.dest('./'));
});
html {
font-size: 62.5%; }
body {
font-size: 22px;
font-size: 2.2rem;
padding: 9px 6px 4px;
padding: 0.9rem 0.6rem 0.4rem; }
@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