Skip to content

Commit

Permalink
Fix symbol HTML generation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Besim Huskic committed Jan 26, 2015
1 parent c0dd966 commit 496b10f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion _gulp/tasks/minifyCss.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
var gulp = require('gulp'),
config = require('../config').production,
minifyCSS = require('gulp-minify-css'),
size = require('gulp-filesize')
size = require('gulp-filesize'),
combineMQ = require('gulp-combine-mq');

gulp.task('minifyCss', ['sass'], function() {
return gulp.src(config.cssSrc)
.pipe(combineMQ())
.pipe(minifyCSS({advanced:false}))
.pipe(gulp.dest(config.cssDest))
.pipe(size());
Expand Down
4 changes: 2 additions & 2 deletions _gulp/tasks/watch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var gulp = require('gulp'),
watch = require('../util/watch'),
config = require('../config'),
gulpStart = require('../util/gulpstart')
gulpStart = require('../util/gulpstart'),
livereload = require('gulp-livereload');

gulp.task('watch', ['watchify'], function () {
Expand All @@ -18,7 +18,7 @@ gulp.task('watch', ['watchify'], function () {
when: 'symbols/*.+(svg)',
then: gulpStart('symbols')
}, {
when: 'images/**/*.+(png|jpg|svg|gif)',
when: 'images/**/*.+(png|jpg|jpeg|svg|gif)',
then: gulpStart('images')
}, {
when: 'sprites/**/*.+(png)',
Expand Down
4 changes: 2 additions & 2 deletions _src/sass/helpers/_symbols.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
@mixin symbols($symbol: false) {
@extend %symbols;

@if $symbol == "symbol-test" {
@if $symbol == "symbol-icon" {
content: '\E001';
}
}

// Individual CSS styles for when you call by the class name in markup.
.s-symbol-test:before { content: "\E001" }
.s-symbol-icon:before { content: "\E001" }
File renamed without changes

0 comments on commit 496b10f

Please sign in to comment.