diff options
| -rw-r--r-- | gospeladlershof.de/gulpfile.js | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/gospeladlershof.de/gulpfile.js b/gospeladlershof.de/gulpfile.js index 7dacab4..250f2d7 100644 --- a/gospeladlershof.de/gulpfile.js +++ b/gospeladlershof.de/gulpfile.js @@ -12,11 +12,36 @@ gulp.task('concat', function() { .pipe(gulp.dest('./static/css/')); }); +/** + * ignore ist wichtig für die Navbar im Collapsed-Zustand, für ein mögliches Modal, .affix für das scrollen (glaub ich) + * https://stackoverflow.com/questions/28082782/gulp-uncss-breaks-bootstrap-dropdown-navbar-navigation + * https://github.com/giakki/uncss/issues/64 + */ gulp.task('uncss', function() { return gulp.src('static/css/concat.css') .pipe(uncss({ html: ['public/*.html', 'public/impressum/*.html'], - ignore: ['.text-right', '.text-left', '.affix', '.navbar-default.affix'] + ignore: ['.text-right', '.text-left', '.affix', '.navbar-default.affix', + '/\w\.in/', + '.fade', + '.collapse', + '.collapsing', + /(#|\.)navbar(\-[a-zA-Z]+)?/, + /(#|\.)dropdown(\-[a-zA-Z]+)?/, + /(#|\.)(open)/, + '.modal', + '.modal.fade.in', + '.modal-dialog', + '.modal-document', + '.modal-scrollbar-measure', + '.modal-backdrop.fade', + '.modal-backdrop.in', + '.modal.fade.modal-dialog', + '.modal.in.modal-dialog', + '.modal-open', + '.in', + '.modal-backdrop' + ] })) .pipe(cssnano()) .pipe(gulp.dest('./static/uncss')); |
