aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/style.css
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2019-08-09 20:56:49 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2019-08-09 20:56:49 +0100
commit2bbcde7dd370f0f6eb6d8733aab697917f5a8963 (patch)
tree53478f00d7a0c95ff2c2b4a703456aba7422a087 /src/main/resources/style.css
parent3b1d5f080b013ab306fb9d356d6e3337c75c40c6 (diff)
downloadterrain-2bbcde7dd370f0f6eb6d8733aab697917f5a8963.tar.xz
terrain-2bbcde7dd370f0f6eb6d8733aab697917f5a8963.zip
Add loading overlay during terrain gen
Diffstat (limited to 'src/main/resources/style.css')
-rw-r--r--src/main/resources/style.css45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/resources/style.css b/src/main/resources/style.css
new file mode 100644
index 0000000..4d69b30
--- /dev/null
+++ b/src/main/resources/style.css
@@ -0,0 +1,45 @@
+body {
+ padding: 0;
+ margin: 0;
+}
+
+#loading-overlay {
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ background-color: rgba(0,0,0,.5);
+}
+
+#spinner {
+ width: 50px;
+ height: 50px;
+ margin-top: -40px;
+ margin-left: -40px;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+
+ border-width: 120px;
+ border-radius: 50%;
+ border: 16px solid #33abda;
+ border-top: 16px solid #3c3c3c;
+ -webkit-animation: spin 1s linear infinite;
+}
+
+@keyframes spin {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(360deg); }
+}
+
+canvas {
+ display: block;
+}
+
+.hidden {
+ display: none;
+} \ No newline at end of file