aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/AppLoader/styles.ts
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-14 08:48:08 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-14 08:48:08 +0200
commitf06c7da3e09afbbe757101677b4c8f32d051e471 (patch)
treeb8ceb13fef267c6963931286d082a07d62ed3402 /src/components/ui/AppLoader/styles.ts
parent5.6.3-nightly.33 [skip ci] (diff)
downloadferdium-app-f06c7da3e09afbbe757101677b4c8f32d051e471.tar.gz
ferdium-app-f06c7da3e09afbbe757101677b4c8f32d051e471.tar.zst
ferdium-app-f06c7da3e09afbbe757101677b4c8f32d051e471.zip
chore: convert class components to functional (#2065)
Diffstat (limited to 'src/components/ui/AppLoader/styles.ts')
-rw-r--r--src/components/ui/AppLoader/styles.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/ui/AppLoader/styles.ts b/src/components/ui/AppLoader/styles.ts
new file mode 100644
index 000000000..9891e0387
--- /dev/null
+++ b/src/components/ui/AppLoader/styles.ts
@@ -0,0 +1,22 @@
1let sloganTransition = 'none';
2
3if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) {
4 sloganTransition = 'opacity 1s ease';
5}
6
7export default {
8 component: {
9 color: '#FFF',
10 },
11 slogan: {
12 display: 'block',
13 opacity: 0,
14 transition: sloganTransition,
15 position: 'absolute',
16 textAlign: 'center',
17 width: '100%',
18 },
19 visible: {
20 opacity: 1,
21 },
22};