Skip to content

Commit 9314efb

Browse files
committed
refactor: clean up main.css move animation to tailwind config
1 parent 5c8481a commit 9314efb

File tree

2 files changed

+14
-41
lines changed

2 files changed

+14
-41
lines changed

frontend/src/assets/styles/main.scss

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,20 @@
1313
min-height: 100%;
1414
overflow: hidden;
1515
margin: 0;
16+
@apply bg-background text-foreground;
17+
}
1618

17-
@media (max-width: 768px) {
19+
@media (max-width: 768px) {
20+
html,
21+
body {
1822
overflow-x: auto;
1923
}
2024
}
2125

26+
* {
27+
@apply border-border;
28+
}
29+
2230
.native-html {
2331
p {
2432
margin-bottom: 0.5rem;
@@ -215,37 +223,6 @@
215223
}
216224
}
217225

218-
.dot-loader {
219-
display: inline-flex;
220-
align-items: center;
221-
}
222-
223-
.dot {
224-
width: 4px;
225-
height: 4px;
226-
border-radius: 50%;
227-
background-color: currentColor;
228-
margin: 0 2px;
229-
animation: dot-flashing 1s infinite linear alternate;
230-
}
231-
232-
.dot:nth-child(2) {
233-
animation-delay: 0.2s;
234-
}
235-
236-
.dot:nth-child(3) {
237-
animation-delay: 0.4s;
238-
}
239-
240-
@keyframes dot-flashing {
241-
0% {
242-
opacity: 0.2;
243-
}
244-
100% {
245-
opacity: 1;
246-
}
247-
}
248-
249226
[data-radix-popper-content-wrapper] {
250227
z-index: 9999 !important;
251228
}
@@ -256,12 +233,3 @@
256233
@apply text-blue-500 hover:underline;
257234
}
258235
}
259-
260-
@layer base {
261-
* {
262-
@apply border-border;
263-
}
264-
body {
265-
@apply bg-background text-foreground;
266-
}
267-
}

frontend/tailwind.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ module.exports = {
8282
sm: 'calc(var(--radius) - 4px)'
8383
},
8484
keyframes: {
85+
'dot-flashing': {
86+
'0%': { opacity: '0.2' },
87+
'100%': { opacity: '1' },
88+
},
8589
'accordion-down': {
8690
from: {
8791
height: 0
@@ -198,6 +202,7 @@ module.exports = {
198202
'slide-in': 'slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
199203
'slide-out': 'slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
200204
'shake': 'shake 0.5s infinite',
205+
'dot-flashing': 'dot-flashing 1s infinite linear alternate',
201206
}
202207
}
203208
},

0 commit comments

Comments
 (0)