Skip to content

Commit ccc7b20

Browse files
authored
Merge pull request #738 from TerriaJS/update-loader-look
Change loader to single background
2 parents 3a4a76e + 0ab0007 commit ccc7b20

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

entry.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@ function createLoader() {
1212
loaderDiv.classList.add("loader-ui");
1313
const loaderGif = document.createElement("img");
1414
loaderGif.src = globeGif;
15-
const loaderLeft = document.createElement("div");
16-
loaderLeft.classList.add("loader-ui-left");
17-
const loaderGrabber = document.createElement("div");
18-
loaderGrabber.classList.add("loader-ui-grabber");
19-
const loaderRight = document.createElement("div");
20-
loaderRight.classList.add("loader-ui-right");
21-
loaderRight.appendChild(loaderGif);
15+
loaderDiv.appendChild(loaderGif);
2216

23-
loaderDiv.appendChild(loaderLeft);
24-
loaderDiv.appendChild(loaderRight);
25-
loaderDiv.appendChild(loaderGrabber);
2617
loaderDiv.style.backgroundColor = "#383F4D";
2718
document.body.appendChild(loaderDiv);
2819

lib/Styles/loader.css

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.loader-ui-right img {
1+
.loader-ui img {
22
display: block;
33
margin: calc(50vh - 150px) auto;
44
}
@@ -12,33 +12,6 @@
1212
width: 100vw;
1313
height: 100vh;
1414
}
15-
16-
.loader-ui-left {
17-
background: #3f4854;
18-
height: 100vh;
19-
width: 350px;
20-
position: relative;
21-
}
22-
23-
.loader-ui-right {
24-
height: 100vh;
25-
width: calc(100% - 350px);
26-
}
27-
.loader-ui-grabber {
28-
left: 350px;
29-
top: 70px;
30-
height: 15px;
31-
width: 31px;
32-
position: absolute;
33-
margin-left: -15px;
34-
transform: perspective(10px) rotateY(10deg);
35-
padding: 8px 0px;
36-
border-width: 0px 1px 0px 0px;
37-
border-right: 1px solid #3f4854;
38-
border-radius: 0px 2px 2px 0px;
39-
background: #3f4854;
40-
z-index: -2;
41-
}
4215
}
4316

4417
.loader-ui {

0 commit comments

Comments
 (0)