diff options
| author | Marin Ivanov <[email protected]> | 2024-08-19 23:30:03 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-19 23:30:03 +0300 |
| commit | 08a1acccd6c6e6a11211b065a40629c08312686a (patch) | |
| tree | ada5e79462777a5eade461f263c86e96983269e2 /style.css | |
| parent | 5ed74ed5cdfc9e286f4a2263a0cd022364b946a6 (diff) | |
improve loader
Diffstat (limited to 'style.css')
| -rw-r--r-- | style.css | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -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; |
