summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2024-08-19 23:30:03 +0300
committerMarin Ivanov <[email protected]>2024-08-19 23:30:03 +0300
commit08a1acccd6c6e6a11211b065a40629c08312686a (patch)
treeada5e79462777a5eade461f263c86e96983269e2 /style.css
parent5ed74ed5cdfc9e286f4a2263a0cd022364b946a6 (diff)
improve loader
Diffstat (limited to 'style.css')
-rw-r--r--style.css26
1 files changed, 16 insertions, 10 deletions
diff --git a/style.css b/style.css
index 47f6315..0e2bb9d 100644
--- a/style.css
+++ b/style.css
@@ -26,6 +26,7 @@ main {
}
section {
flex: 1;
+ position: relative;
}
section > div {
height: 100%;
@@ -72,6 +73,21 @@ nav a:hover:not(.active) {
color: white;
}
+#loader {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: grid;
+ text-align: center;
+ align-content: center;
+ background: rgba(0,0,0,0.5);
+}
+#loader.hidden {
+ display: none;
+}
+
@media (max-width: 900px) {
.container, nav {
width: 100%;
@@ -90,16 +106,6 @@ nav a:hover:not(.active) {
}
}
-.grid {
- display: grid;
-}
-.center {
- text-align: center;
-}
-.middle {
- align-content: center;
-}
-
.loadspin {
display: inline-block;
pointer-events: none;