[TASK] Basic loader with info
This commit is contained in:
parent
1d074dc90e
commit
8eb3e40405
@ -13,5 +13,6 @@
|
||||
<script src="app.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="loader">Lade<br /><span class="spinner"></span><br />Karten & Knoten...</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -51,6 +51,9 @@ define(["chroma-js", "map", "sidebar", "tabs", "container", "meshstats",
|
||||
};
|
||||
}
|
||||
|
||||
var loader = document.getElementsByClassName("loader")[0];
|
||||
loader.classList.add("hidden");
|
||||
|
||||
contentDiv = document.createElement("div");
|
||||
contentDiv.classList.add("content");
|
||||
document.body.appendChild(contentDiv);
|
||||
|
@ -2,6 +2,7 @@
|
||||
@import 'modules/variables';
|
||||
@import 'custom/variables';
|
||||
// Add modules
|
||||
@import 'modules/loader';
|
||||
@import 'mixins/shadow';
|
||||
@import 'mixins/icon-mixin';
|
||||
@import 'modules/reset';
|
||||
|
@ -54,3 +54,7 @@ p {
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
23
scss/modules/_loader.scss
Normal file
23
scss/modules/_loader.scss
Normal file
@ -0,0 +1,23 @@
|
||||
.loader {
|
||||
color: $color-primary;
|
||||
font-size: 1.8em;
|
||||
line-height: 2;
|
||||
margin: 30vh auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
animation: .6s spinner ease-in-out infinite alternate;
|
||||
border-bottom: 2px solid $color-primary;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
height: 64px;
|
||||
margin-top: 10px;
|
||||
width: 64px;
|
||||
}
|
||||
|
||||
@keyframes spinner {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user