From 05887c02c291a5828d7f83970cd0c0cb8f4c528e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 13 Oct 2018 02:31:06 +0200 Subject: [PATCH] Squashed: responsive design fixes; gulp setup --- themes/geeklab/gulpfile.js | 15 +- .../geeklab/layouts/partials/pagination.html | 20 +- themes/geeklab/package.json | 1 + themes/geeklab/src/css/_style.css | 476 ++++++++---------- themes/geeklab/src/css/chroma_github.css | 2 + themes/geeklab/src/css/nested.css | 10 + themes/geeklab/static/default.css | 177 +++---- themes/geeklab/static/default.min.css | 2 +- 8 files changed, 321 insertions(+), 382 deletions(-) create mode 100644 themes/geeklab/src/css/nested.css diff --git a/themes/geeklab/gulpfile.js b/themes/geeklab/gulpfile.js index d4b72b3..43be1c2 100644 --- a/themes/geeklab/gulpfile.js +++ b/themes/geeklab/gulpfile.js @@ -1,8 +1,9 @@ -var gulp = require('gulp'); -var minifyCSS = require('gulp-csso'); -var concat = require('gulp-concat'); -var rename = require('gulp-rename'); -var cleanCSS = require('gulp-clean-css'); +const gulp = require('gulp'); +const minifyCSS = require('gulp-csso'); +const concat = require('gulp-concat'); +const rename = require('gulp-rename'); +const cleanCSS = require('gulp-clean-css'); +const autoprefixer = require('gulp-autoprefixer'); var CSSDEST = 'static/' @@ -12,6 +13,10 @@ function defaultTask(done) { return gulp.src('src/css/*.css') .pipe(concat('default.css')) .pipe(cleanCSS({format: 'beautify'})) + .pipe(autoprefixer({ + browsers: ['last 4 versions'], + cascade: false + })) .pipe(gulp.dest(CSSDEST)) .pipe(cleanCSS()) .pipe(rename({ extname: '.min.css' })) diff --git a/themes/geeklab/layouts/partials/pagination.html b/themes/geeklab/layouts/partials/pagination.html index ff62a01..85da08f 100644 --- a/themes/geeklab/layouts/partials/pagination.html +++ b/themes/geeklab/layouts/partials/pagination.html @@ -1,11 +1,15 @@ {{ $pag := $.Paginator }} -