Skip to content

A platform for community discussion. Free, open, simple.

UX: Prevent overlap between splash loader and splash text on some browsers (#17340)

Joe4acf2394e6bd
diff --git a/app/views/common/_discourse_splash.html.erb b/app/views/common/_discourse_splash.html.erb
index fbe8ac931c9..ea7b952e57f 100644
--- a/app/views/common/_discourse_splash.html.erb
+++ b/app/views/common/_discourse_splash.html.erb
@@ -24,8 +24,7 @@
height: 100vh;
}
- #d-splash .preloader-text {
- padding-top: 4em;
+ #d-splash .preloader-text-wrapper {
position: absolute;
opacity: 0;
animation: fade-in 0.5s ease-in-out;
@@ -35,11 +34,14 @@
color: var(--primary);
}
+ #d-splash .preloader-text {
+ padding-top: 4em;
+ }
+
#d-splash .preloader-text:after {
animation: loading-text 3s infinite;
content: "";
position: absolute;
- top: 4em;
margin: 0 0.1em;
left: 100%;
}
@@ -80,8 +82,8 @@
alt="<%=SiteSetting.title%>"
/>
- <div class="preloader-text">
- <span> <%= I18n.t("js.preloader_text") %> </span>
+ <div class="preloader-text-wrapper">
+ <div class="preloader-text"><%= I18n.t("js.preloader_text") %></div>
</div>
<noscript>