Commit 3bae9bcf authored by Julien Fastré's avatar Julien Fastré

add less compilation + customizing bootstrap

parent 163ea9c8
...@@ -7,7 +7,8 @@ module.exports = function(grunt) { ...@@ -7,7 +7,8 @@ module.exports = function(grunt) {
'web': 'website', 'web': 'website',
'js': '<%= website.folders.web %>/js', 'js': '<%= website.folders.web %>/js',
'bower': './bower_components', 'bower': './bower_components',
'src': './src' 'src': './src',
'less': '<%= website.folders.src %>/less'
} }
}, },
bower: { bower: {
...@@ -21,6 +22,19 @@ module.exports = function(grunt) { ...@@ -21,6 +22,19 @@ module.exports = function(grunt) {
} }
} }
}, },
less: {
options: {
strictMath: true,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '<%= pkg.name %>.css.map',
sourceMapFilename: '<%= website.folders.web %>/css/<%= pkg.name %>.css.map',
paths: ['<%= website.folders.bower %>/bootstrap/less' ]
},
'<%= website.folders.web %>/css/chill.social.css': '<%= website.folders.less %>/index.less'
},
bootlint: { bootlint: {
options: { options: {
stoponerror: false, stoponerror: false,
...@@ -58,12 +72,13 @@ module.exports = function(grunt) { ...@@ -58,12 +72,13 @@ module.exports = function(grunt) {
} }
}); });
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-bootlint'); grunt.loadNpmTasks('grunt-bootlint');
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-bower-task'); grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['uglify', 'bootlint']); grunt.registerTask('default', ['uglify', 'bootlint', 'less']);
grunt.registerTask('install', ['bower', 'uglify', 'copy:img', 'copy:css']); grunt.registerTask('install', ['bower', 'uglify', 'copy:img', 'copy:css']);
}; };
......
//
// chill variables
//
// == chill colors
//
@yellow: yellow;
// Core variables and mixins
@import "variables.less";
@import "chill_variables.less";
@import "mixins.less";
// Reset and dependencies
@import "normalize.less";
@import "print.less";
@import "glyphicons.less";
// Core CSS
@import "scaffolding.less";
@import "type.less";
@import "code.less";
@import "grid.less";
//@import "tables.less";
//@import "forms.less";
@import "buttons.less";
// Components
//@import "component-animations.less";
//@import "dropdowns.less";
//@import "button-groups.less";
//@import "input-groups.less";
//@import "navs.less";
//@import "navbar.less";
//@import "breadcrumbs.less";
//@import "pagination.less";
//@import "pager.less";
//@import "labels.less";
//@import "badges.less";
@import "jumbotron.less";
//@import "thumbnails.less";
//@import "alerts.less";
//@import "progress-bars.less";
//@import "media.less";
//@import "list-group.less";
//@import "panels.less";
//@import "responsive-embed.less";
//@import "wells.less";
//@import "close.less";
// Components w/ JavaScript
//@import "modals.less";
//@import "tooltip.less";
//@import "popovers.less";
//@import "carousel.less";
// Utility classes
@import "utilities.less";
@import "responsive-utilities.less";
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<title>Chill, logiciel libre d'accompagnement social</title> <title>Chill, logiciel libre d'accompagnement social</title>
<!-- Bootstrap --> <!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/chill.social.css" rel="stylesheet">
<!-- font awesome --> <!-- font awesome -->
<link href="css/font-awesome.min.css" rel="stylesheet"> <link href="css/font-awesome.min.css" rel="stylesheet">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment