loadingscreen and minify css

This commit is contained in:
infeeeee
2019-09-07 02:29:46 +02:00
parent 19cec75d2c
commit 1e14664a54
6 changed files with 33 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -30,5 +30,10 @@ gulp.task('watch', function () {
livereload.listen()
gulp.watch('./sass/**/*.scss', gulp.series('sass'))
gulp.watch(['./**','!./node_modules/**'], gulp.series('liverel'))
});
gulp.task('minify-svg', function(){
return gulp.src('./img/**/*.svg')
.pipe(svgmin())
.pipe(gulp.dest('./imgmin'));
})

View File

@@ -200,4 +200,7 @@
</header>
<!-- /header -->
<div class="loadingscreen">
</div>
<main role="main">

View File

@@ -589,8 +589,9 @@
loadPage()
/* --------------------------- hide loading scree --------------------------- */
$('.loadingscreen').hide()
/* -------------------------------------------------------------------------- */
/* Black logo on scroll on mobile */
@@ -610,7 +611,7 @@
}
$(window).scroll(function () {
if (isMobile && !isMenuOpen() && (isHome || isSingle) ) {
if (isMobile && !isMenuOpen() && (isHome || isSingle)) {
$('.dis-logo, .menubutton-icon').addClass('black')
}
})

View File

@@ -15,6 +15,7 @@
"node-sass": "^4.11.0"
},
"dependencies": {
"gulp-clean-css": "^4.2.0"
"gulp-clean-css": "^4.2.0",
"gulp-svgmin": "^2.2.0"
}
}

View File

@@ -378,7 +378,23 @@ $v-unit-6: 24rem;
// STRUCTURE */
// -------------------------------------------------------------------------- */
// wrapper */
.no-js body .loadingscreen{
display: none;
}
.loadingscreen{
background-color: #fff;
width: 100vw;
height: 100vh;
position: fixed;
z-index: 3100;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
// wrapper
.wrapper {
margin: 0 auto;
position: relative;
@@ -386,6 +402,7 @@ $v-unit-6: 24rem;
height: 100vh;
z-index: 1;
// -------------------------------------------------------------------------- */
// header */
// -------------------------------------------------------------------------- */