diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 59cf39d02c..3f562511a3 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -70,10 +70,35 @@ } #splash { position: fixed; + inset: 0; + display: flex; + align-items: center; + justify-content: center; + background-color: white; + pointer-events: none; + } + #splash svg { width: 100px; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%) translateY(-50px); + } + @media (prefers-color-scheme: dark) { + #splash { + background-color: black; + } + } + .animate-splash { + animation: splash-out 0.2s ease-in forwards; + } + @keyframes splash-out { + 0% { + opacity: 1; + } + 80% { + opacity: 0; + } + 100% { + opacity: 0; + transform: scale(1.5); + } } /* We need this style to prevent web dropdowns from shifting the display when opening */ body { @@ -96,11 +121,11 @@ {%- block body_all %} -
-
- - -
+
+ +
+ +
-
-
+
+ +
- +
-