loadingscreen and minify css
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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'));
|
||||
})
|
||||
|
||||
@@ -200,4 +200,7 @@
|
||||
|
||||
</header>
|
||||
<!-- /header -->
|
||||
<div class="loadingscreen">
|
||||
|
||||
</div>
|
||||
<main role="main">
|
||||
@@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -378,13 +378,30 @@ $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;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 1;
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------- */
|
||||
// header */
|
||||
|
||||
Reference in New Issue
Block a user