Fix error when on sass file compilation

pull/167/head
christianesperar 2016-05-25 01:19:59 +08:00
parent 9a9bd41569
commit 8eb91e67f1
3 changed files with 15 additions and 9 deletions

View File

@ -1322,7 +1322,7 @@ ul.msg_list li a .message {
position: absolute; position: absolute;
text-shadow: none; text-shadow: none;
top: 100%; top: 100%;
z-index: 1000; z-index: 9998;
border: 1px solid #D9DEE4; border: 1px solid #D9DEE4;
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; } border-top-right-radius: 0; }

File diff suppressed because one or more lines are too long

View File

@ -15,20 +15,26 @@ gulp.task('scripts', function() {
.pipe(gulp.dest(DEST+'/js')); .pipe(gulp.dest(DEST+'/js'));
}); });
gulp.task('sass', function() { // TODO: Maybe we can simplify how sass compile the minify and unminify version
return sass('src/scss/*.scss') var compileSASS = function (filename, options) {
.pipe(concat('custom.css')) return sass('src/scss/*.scss', options)
.pipe(gulp.dest(DEST+'/css')) .pipe(concat(filename))
.pipe(rename({suffix: '.min'}))
.pipe(uglify())
.pipe(gulp.dest(DEST+'/css')); .pipe(gulp.dest(DEST+'/css'));
};
gulp.task('sass', function() {
return compileSASS('custom.css', {});
});
gulp.task('sass-minify', function() {
return compileSASS('custom.min.css', {style: 'compressed'});
}); });
gulp.task('watch', function() { gulp.task('watch', function() {
// Watch .js files // Watch .js files
gulp.watch('src/js/*.js', ['scripts']); gulp.watch('src/js/*.js', ['scripts']);
// Watch .scss files // Watch .scss files
gulp.watch('src/scss/*.scss', ['sass']); gulp.watch('src/scss/*.scss', ['sass', 'sass-minify']);
}); });
// Default Task // Default Task