Skip to content

Commit c818791

Browse files
committed
Remove loading.scss
1 parent 5725cc4 commit c818791

File tree

5 files changed

+44
-181
lines changed

5 files changed

+44
-181
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
</head>
1414
<body class="theme-mode-light no-reduce-motion">
1515
<div id="soapbox" class="h-full">
16-
<div class="loading-indicator-wrapper">
17-
<div class="loading-indicator">
18-
<div class="loading-indicator__container">
19-
<div class="loading-indicator__figure"></div>
16+
<div class="h-screen w-screen flex justify-center items-center">
17+
<div class="loading-indicator text-gray-50 text-xs uppercase flex flex-col justify-center overflow-visible h-screen w-screen items-center">
18+
<div class="size-10 relative">
19+
<div class="animate-loader-figure absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-12 rounded-full bg-transparent border-6 border-solid border-gray-200"></div>
2020
</div>
2121
</div>
2222
</div>

src/styles/application.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@use 'loading';
21
@use 'ui';
32
@use 'emoji-picker';
43
@use 'accessibility';

src/styles/loading.scss

Lines changed: 0 additions & 176 deletions
This file was deleted.

src/styles/tailwind.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,9 @@
215215
}
216216

217217
}
218+
219+
@layer components {
220+
.loading-indicator span {
221+
@apply animate-loader-label;
222+
}
223+
}

tailwind.config.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const config: Config = {
6969
'greentext': true,
7070
}),
7171
animation: {
72+
'loader-figure': 'loader-figure 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1)',
73+
'loader-label': 'loader-label 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1)',
7274
fade: 'fade 150ms linear',
7375
'sonar-scale-4': 'sonar-scale-4 3s linear infinite',
7476
'sonar-scale-3': 'sonar-scale-3 3s 0.5s linear infinite',
@@ -78,6 +80,38 @@ const config: Config = {
7880
'leave': 'leave 150ms ease-in forwards',
7981
},
8082
keyframes: {
83+
'loader-figure': {
84+
'0%': {
85+
backgroundColor: 'rgb(229, 231, 235)',
86+
width: '0px',
87+
height: '0px',
88+
},
89+
90+
'29%': {
91+
backgroundColor: 'rgb(229, 231, 235)',
92+
},
93+
94+
'30%': {
95+
width: '3rem',
96+
height: '3rem',
97+
backgroundColor: 'transparent',
98+
opacity: '1',
99+
borderWidth: '6px',
100+
},
101+
102+
'100%': {
103+
width: '3rem',
104+
height: '3rem',
105+
borderWidth: '0',
106+
opacity: '0',
107+
backgroundColor: 'transparent',
108+
},
109+
},
110+
'loader-label': {
111+
'0%': { opacity: '0.25' },
112+
'30%': { opacity: '1' },
113+
'100%': { opacity: '0.25' },
114+
},
81115
fade: {
82116
'0%': { opacity: '0' },
83117
'100%': { opacity: '1' },

0 commit comments

Comments
 (0)