Fix page loader centering (#1802)

Affects issues:
- Fixed #1783
This commit is contained in:
Antti Koponen 2021-03-18 09:25:50 +02:00 committed by GitHub
parent aa25f2ff07
commit 477c547c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 11 deletions

View File

@ -72,6 +72,7 @@ public class Contributors {
new Contributor("QuakyCZ", LANG),
new Contributor("MrFriggo", LANG),
new Contributor("vacoup", CODE),
new Contributor("Kopo942", CODE),
};
private Contributors() {

View File

@ -7,22 +7,25 @@
text-align: center;
}
.loader-container {
position: relative;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.loader {
display: inline-block;
width: 2rem;
height: 2rem;
position: absolute;
border: 4px solid #368F17;
border-radius: 5px;
top: 50%;
background-color: #368F17;
animation: loader 2s infinite ease;
}
.loader-text {
position: relative;
top: 55%;
left: 1rem;
margin-top: 0.5rem;
}
@keyframes loader {

View File

@ -274,8 +274,10 @@ function runQuery() {
if (timestamp) {
document.querySelector('#content .tab').innerHTML =
`<div class="page-loader">
<div class="loader-container">
<span class="loader"></span>
<p class="loader-text">Loading..</p>
</div>
</div>`;
} else {
const icon = document.createElement('template');

View File

@ -30,8 +30,10 @@
const gmPieColors = [${gmPieColors}];
</script>
<div class="page-loader">
<span class="loader"></span>
<p class="loader-text">Please wait..</p>
<div class="loader-container">
<span class="loader"></span>
<p class="loader-text">Please wait..</p>
</div>
</div>
<!-- Page Wrapper -->

View File

@ -30,8 +30,10 @@
var gmPieColors = [${gmPieColors}];
</script>
<div class="page-loader">
<span class="loader"></span>
<p class="loader-text">Please wait..</p>
<div class="loader-container">
<span class="loader"></span>
<p class="loader-text">Please wait..</p>
</div>
</div>
<!-- Page Wrapper -->

View File

@ -28,8 +28,10 @@
var gmPieColors = [${gmPieColors}];
</script>
<div class="page-loader">
<span class="loader"></span>
<p class="loader-text">Please wait..</p>
<div class="loader-container">
<span class="loader"></span>
<p class="loader-text">Please wait..</p>
</div>
</div>
<!-- Page Wrapper -->