Skip to content

Commit 8a73963

Browse files
committed
fix: merge duplicate :root block in globals.css
1 parent 305d246 commit 8a73963

File tree

1 file changed

+46
-60
lines changed

1 file changed

+46
-60
lines changed

frontend/src/app/globals.css

Lines changed: 46 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
--chart-5: 27 87% 67%;
4242

4343
--radius: 0.5rem;
44+
45+
/* Map tiles filter (shared across themes) */
46+
--map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
4447
}
4548

4649
/* =========================
@@ -82,36 +85,26 @@
8285
--chart-5: 340 75% 55%;
8386
}
8487

85-
86-
87-
88-
89-
88+
/* =========================
89+
Animations
90+
========================= */
9091
@keyframes spin {
91-
0% {
92-
transform: rotate(0deg);
93-
}
94-
95-
100% {
96-
transform: rotate(360deg);
97-
}
92+
0% { transform: rotate(0deg); }
93+
100% { transform: rotate(360deg); }
9894
}
9995

10096
@keyframes fade-in-out {
101-
0%,
102-
100% {
103-
opacity: 0;
104-
}
105-
106-
50% {
107-
opacity: 1;
108-
}
97+
0%, 100% { opacity: 0; }
98+
50% { opacity: 1; }
10999
}
110100

111101
.animate-fade-in-out {
112102
animation: fade-in-out 2s ease-in-out infinite;
113103
}
114104

105+
/* =========================
106+
Base Styles
107+
========================= */
115108
* {
116109
margin: 0;
117110
padding: 0;
@@ -130,48 +123,27 @@ a {
130123
color: inherit;
131124
}
132125

126+
/* =========================
127+
More Animations
128+
========================= */
133129
@keyframes fadeIn {
134-
from {
135-
opacity: 0;
136-
}
137-
138-
to {
139-
opacity: 1;
140-
}
130+
from { opacity: 0; }
131+
to { opacity: 1; }
141132
}
142133

143134
@keyframes scaleIn {
144-
from {
145-
opacity: 0;
146-
transform: scale(0.9);
147-
}
148-
149-
to {
150-
opacity: 1;
151-
transform: scale(1);
152-
}
135+
from { opacity: 0; transform: scale(0.9); }
136+
to { opacity: 1; transform: scale(1); }
153137
}
154138

155139
@keyframes fadeOut {
156-
from {
157-
opacity: 1;
158-
}
159-
160-
to {
161-
opacity: 0;
162-
}
140+
from { opacity: 1; }
141+
to { opacity: 0; }
163142
}
164143

165144
@keyframes scaleOut {
166-
from {
167-
opacity: 1;
168-
transform: scale(1);
169-
}
170-
171-
to {
172-
opacity: 0;
173-
transform: scale(0.9);
174-
}
145+
from { opacity: 1; transform: scale(1); }
146+
to { opacity: 0; transform: scale(0.9); }
175147
}
176148

177149
.animate-spin {
@@ -186,25 +158,28 @@ a {
186158
animation: scaleIn 0.3s ease-out;
187159
}
188160

161+
/* =========================
162+
Markdown & Lists
163+
========================= */
189164
.md-wrapper ol {
190165
list-style: decimal;
191166
}
192167

168+
/* =========================
169+
Base Layer
170+
========================= */
193171
@layer base {
194172
* {
195173
@apply border-border;
196174
}
197-
198175
body {
199176
@apply bg-background text-foreground;
200177
}
201178
}
202179

203-
:root {
204-
--map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3)
205-
brightness(0.7);
206-
}
207-
180+
/* =========================
181+
Dark Theme - Map Tiles
182+
========================= */
208183
@media (prefers-color-scheme: dark) {
209184
.dark .map-tiles {
210185
filter: var(--map-tiles-filter, none);
@@ -224,6 +199,9 @@ a {
224199
display: none !important;
225200
}
226201

202+
/* =========================
203+
Hover Effects
204+
========================= */
227205
.icon-rotate {
228206
transition: transform 2.5s ease;
229207
}
@@ -240,6 +218,9 @@ a {
240218
transform: rotateY(180deg);
241219
}
242220

221+
/* =========================
222+
Scrollbar Styles
223+
========================= */
243224
::-webkit-scrollbar {
244225
width: 8px;
245226
}
@@ -266,6 +247,9 @@ a {
266247
background: #718096;
267248
}
268249

250+
/* =========================
251+
Popup & Tooltip Styles
252+
========================= */
269253
.popup-content {
270254
cursor: pointer;
271255
color: black;
@@ -306,6 +290,9 @@ a {
306290
opacity: 0.6;
307291
}
308292

293+
/* =========================
294+
General Utilities
295+
========================= */
309296
html {
310297
scroll-behavior: smooth;
311298
}
@@ -333,7 +320,6 @@ section {
333320
@apply absolute left-0 top-full mt-2 w-48 rounded-lg bg-white p-3 shadow-lg dark:bg-gray-800;
334321
@apply invisible opacity-0 transition-all duration-200 ease-in-out;
335322
@apply flex flex-col space-y-2;
336-
/* Stack items vertically */
337323
}
338324

339325
.dropdown:hover .dropdown-menu {
@@ -344,4 +330,4 @@ section {
344330
.dark ::selection {
345331
@apply bg-blue-500 text-white;
346332
}
347-
}
333+
}

0 commit comments

Comments
 (0)