From a7e08ea53ae18c405198df90c4f55dea6bdbbae2 Mon Sep 17 00:00:00 2001 From: Josh Lockhart Date: Sun, 27 Sep 2015 19:29:22 -0400 Subject: [PATCH] Implement redesign first stage --- .gitignore | 1 + Gruntfile.js | 47 +++++ _layouts/default.html | 74 ++++---- _layouts/page.html | 47 +++-- banners.md | 2 +- css/all.css | 354 ++++++++++++++++++++++++++++++++++++++ index.html | 13 +- less/all.less | 389 ++++++++++++++++++++++++++++++++++++++++++ package.json | 10 ++ 9 files changed, 869 insertions(+), 68 deletions(-) create mode 100644 Gruntfile.js create mode 100644 css/all.css create mode 100644 less/all.less create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 460916ba8..0b09c012c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /_site/ *.DS_Store +node_modules diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..5953168a1 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,47 @@ +module.exports = function(grunt) { + // Project configuration + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + less: { + dist: { + options: { + cleancss: true, + ieCompat: true + }, + files: { + "css/all.css": "less/all.less" + } + } + }, + postcss: { + options: { + map: true, + processors: [ + require('autoprefixer')({ + browsers: ['last 2 versions', 'ie 9'] + }) + ] + }, + dist: { + src: 'css/all.css' + } + }, + watch: { + less: { + files: ['less/**/*.less'], + tasks: ['less:dist', 'postcss:dist'], + options: { + spawn: false + } + } + } + }); + + // Load plugins + grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-postcss'); + + // Default task(s) + grunt.registerTask('default', ['less', 'postcss:dist']); +}; diff --git a/_layouts/default.html b/_layouts/default.html index 55a6527cd..391375496 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -12,10 +12,7 @@ - - - - + -