Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
feat(styling): add less support
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Burgmer committed Apr 3, 2015
1 parent d9e8f18 commit 5ced513
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules
.sass-cache
bower_components
bin-debug
temp
17 changes: 16 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-html2js');
grunt.loadNpmTasks('grunt-bump');
Expand Down Expand Up @@ -75,6 +76,20 @@ module.exports = function (grunt) {
src: '**/*.scss',
dest: 'dist/js'
}]
},
less: {
src: 'src/js/w11k-flash.less',
dest: 'dist/js/w11k-flash.less'
}
},
less: {
dist: {
options: {
paths: ['src/js']
},
files: {
'temp/w11k-flash.less.css': 'src/js/w11k-flash.less'
}
}
},
html2js: {
Expand Down Expand Up @@ -131,5 +146,5 @@ module.exports = function (grunt) {
});

grunt.registerTask('default', ['build']);
grunt.registerTask('build', ['clean', 'jshint:src', 'sass', 'copy', 'html2js', 'uglify']);
grunt.registerTask('build', ['clean', 'jshint:src', 'sass', 'less', 'copy', 'html2js', 'uglify']);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-jshint": "0.8.0",
"grunt-contrib-sass": "0.7.2",
"grunt-contrib-less": "0.12.0",
"grunt-contrib-copy": "0.5.0",
"grunt-contrib-uglify": "0.4.0",
"grunt-html2js": "0.2.4",
Expand Down
8 changes: 8 additions & 0 deletions src/js/w11k-flash.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.w11k-flash-container {
position: relative;
overflow: hidden;
}

.w11k-flash-container object {
visibility: inherit !important;
}

0 comments on commit 5ced513

Please sign in to comment.