Fixed the loading bar

This commit is contained in:
Tobias Reich 2016-01-24 15:39:12 +01:00
parent 454a503196
commit b4084102e8
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ loadingBar.show = function(status, errorText) {
if (!errorText) errorText = 'Whoops, it looks like something went wrong. Please reload the site and try again!'
// Move header down
if (visible.header()) header.dom().addClass('header__error')
if (visible.header()) header.dom().addClass('header--error')
// Modify loading
loadingBar.dom()
@ -56,7 +56,7 @@ loadingBar.show = function(status, errorText) {
loadingBar._timeout = setTimeout(() => {
// Move header down
if (visible.header()) header.dom().addClass('header__loading')
if (visible.header()) header.dom().addClass('header--loading')
// Modify loading
loadingBar.dom()
@ -81,7 +81,7 @@ loadingBar.hide = function(force) {
loadingBar.status = null
// Move header up
header.dom().removeClass('header__error header__loading')
header.dom().removeClass('header--error header--loading')
// Set timeout
clearTimeout(loadingBar._timeout)

View File

@ -19,7 +19,7 @@
background: none;
border-bottom: none;
.header__error { background-color: rgba(10, 10, 10, .99); }
&.header--error { background-color: rgba(10, 10, 10, .99); }
}
// Toolbars -------------------------------------------------------------- //