From 772ac123295403d7a1d04c78cd98ec438f6836c8 Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Thu, 27 May 2021 11:20:39 +0200 Subject: [PATCH] create separate startup css to load before the theme is chosen --- angular.json | 1 + src/app/root/root.component.html | 2 +- src/index.html | 1 - src/styles/_global-styles.scss | 4 ---- src/styles/startup.scss | 8 ++++++++ 5 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 src/styles/startup.scss diff --git a/angular.json b/angular.json index 00799dc33c..d158577e06 100644 --- a/angular.json +++ b/angular.json @@ -47,6 +47,7 @@ "src/robots.txt" ], "styles": [ + "src/styles/startup.scss", { "input": "src/styles/base-theme.scss", "inject": false, diff --git a/src/app/root/root.component.html b/src/app/root/root.component.html index aef07d79f4..4768fb737c 100644 --- a/src/app/root/root.component.html +++ b/src/app/root/root.component.html @@ -24,7 +24,7 @@ -
+
diff --git a/src/index.html b/src/index.html index cb5d35e4f5..491a2d319c 100644 --- a/src/index.html +++ b/src/index.html @@ -7,7 +7,6 @@ DSpace - diff --git a/src/styles/_global-styles.scss b/src/styles/_global-styles.scss index d151bb3ba7..2098fc4f74 100644 --- a/src/styles/_global-styles.scss +++ b/src/styles/_global-styles.scss @@ -40,10 +40,6 @@ ds-admin-sidebar { z-index: var(--ds-sidebar-z-index); } -.ds-full-screen-loader { - height: 100vh; -} - .sticky-top { z-index: 0; } diff --git a/src/styles/startup.scss b/src/styles/startup.scss new file mode 100644 index 0000000000..c6866f6b45 --- /dev/null +++ b/src/styles/startup.scss @@ -0,0 +1,8 @@ +.ds-full-screen-loader { + height: 100vh; + text-align: center; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +}