Skip to content

Commit

Permalink
Small fixes, updated gulp.
Browse files Browse the repository at this point in the history
Separated xl file to be outside the large media query
  • Loading branch information
ramono committed Oct 15, 2015
1 parent 105449b commit b024929
Show file tree
Hide file tree
Showing 6 changed files with 608 additions and 17 deletions.
19 changes: 17 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ gulp.task('style', function() {
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(minify())
.pipe(gulp.dest(config.cssDir));
});
gulp.task('style-dev', function() {
gulp.src(config.scssDir + '/*.scss')
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(sourcemaps.write())
.pipe(gulp.dest(config.cssDir));
});
Expand All @@ -40,20 +46,29 @@ gulp.task('compress', function() {
.pipe(uglify())
.pipe(gulp.dest(config.jsDir + '/min'));
});
gulp.task('compress-dev', function() {
return gulp.src(config.jsDir + '/scripts.js')
.pipe(gulp.dest(config.jsDir + '/min'));
});

// Production
gulp.task('build', function() {
gulp.start('style');
gulp.start('compress');
});

// Watch for changes
gulp.task('watch', function() {
watch(config.scssDir + '/**/*.scss', function () {
gulp.start('style');
gulp.start('style-dev');
});

watch(config.jsDir + '/src/*.js', function () {
gulp.start('js');
});

watch(config.jsDir + '/scripts.js', function () {
gulp.start('compress');
gulp.start('compress-dev');
});

});
149 changes: 147 additions & 2 deletions css/ie.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

437 changes: 435 additions & 2 deletions css/style.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"clone": "^1.0.2",
"clone-stats": "0.0.1",
"gulp-install": "^0.4.0",
"gulp-install": "^0.6.0",
"inherits": "^2.0.1",
"lodash": "^3.9.3",
"readable-stream": "^2.0.0"
Expand All @@ -42,10 +42,10 @@
"gulp": "^3.9.0",
"gulp-bower": "0.0.10",
"gulp-concat": "^2.5.2",
"gulp-sass": "^1.3.3",
"gulp-sass": "^2.0.4",
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.2.0",
"gulp-minify-css": "1.1.1",
"gulp-minify-css": "1.2.1",
"gulp-watch": "^4.2.0"
},
"scripts": {}
Expand Down
5 changes: 5 additions & 0 deletions scss/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

@import 'l/base';

}
@media (min-width: $bp-xl) {

@import 'l/xl';

}
@media (min-width: $bp-m) and (max-width: ($bp-l - 1)) {

Expand Down
9 changes: 1 addition & 8 deletions scss/l/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,4 @@ $wrap: ($col-width * $col-qty) + $gutter * ($col-qty - 1);
.center {
float: none;
margin: 0 auto;
}

// * Extra large screens
@media (min-width: $bp-xl) {

@import 'xl';

}
}

0 comments on commit b024929

Please sign in to comment.