Skip to content

Commit 5af03be

Browse files
committed
Add inline css to show loading indicator
1 parent d9a8525 commit 5af03be

File tree

2 files changed

+38
-21
lines changed

2 files changed

+38
-21
lines changed

src/index.ejs

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,50 @@
1515
<% if (htmlWebpackPlugin.options.platform === 'browser') { %>
1616
<base href="<%= htmlWebpackPlugin.options.metadata.baseUrl %>">
1717
<% } %>
18+
19+
<style>
20+
.splash {
21+
text-align: center;
22+
margin: 10% 0 0 0;
23+
}
24+
25+
.splash .message {
26+
font-size: 72px;
27+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
28+
}
29+
30+
.sk-three-bounce {
31+
margin: 40px auto;
32+
}
33+
34+
.sk-three-bounce .sk-child {
35+
width: 30px;
36+
height: 30px;
37+
background-color: #333;
38+
border-radius: 100%;
39+
display: inline-block;
40+
animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
41+
}
42+
43+
.sk-three-bounce .sk-bounce1 { animation-delay: -0.32s; }
44+
.sk-three-bounce .sk-bounce2 { animation-delay: -0.16s; }
45+
46+
@keyframes sk-three-bounce {
47+
0%, 80%, 100% { transform: scale(0); }
48+
40% { transform: scale(1); }
49+
}
50+
</style>
1851
</head>
1952

2053
<body>
2154
<div aurelia-app="main">
2255
<div class="splash">
2356
<div class="message"><%- htmlWebpackPlugin.options.metadata.title %></div>
24-
<i class="fa fa-spinner fa-spin"></i>
57+
<div class="sk-three-bounce">
58+
<div class="sk-child sk-bounce1"></div>
59+
<div class="sk-child sk-bounce2"></div>
60+
<div class="sk-child sk-bounce3"></div>
61+
</div>
2562
</div>
2663
</div>
2764

src/scss/_aurelia.scss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22
* Base styles
33
* TODO Move to the app structure
44
*/
5-
.splash {
6-
text-align: center;
7-
margin: 10% 0 0 0;
8-
box-sizing: border-box;
9-
}
10-
11-
.splash .message {
12-
font-size: 72px;
13-
line-height: 72px;
14-
text-shadow: rgba(0, 0, 0, 0.5) 0 0 15px;
15-
text-transform: uppercase;
16-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
17-
}
18-
19-
.splash .fa-spinner {
20-
text-align: center;
21-
display: inline-block;
22-
font-size: 72px;
23-
margin-top: 50px;
24-
}
255

266
.page-host {
277
position: absolute;

0 commit comments

Comments
 (0)