This repository has no description
1/* Main container for single mode and comparison mode */
2.score-result {
3 margin: 20px auto;
4 width: 100%;
5 }
6
7.mode-toggle {
8 display: flex;
9 align-items: center;
10 justify-content: center; /* Centers the content horizontally */
11 max-width: 300px; /* Set a maximum width for the container */
12 margin: 10px auto; /* Center the div on the page */
13 padding: 10px;
14 border: 1px solid #ddd;
15 border-radius: 8px;
16 background-color: #f9f9f9;
17 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
18}
19
20.mode-toggle label {
21 font-size: 16px;
22 color: #333;
23 display: flex;
24 align-items: center;
25 gap: 8px; /* Adds spacing between the checkbox and the label text */
26}
27
28.mode-toggle input[type="checkbox"] {
29 width: 18px; /* Adjusts the checkbox size */
30 height: 18px;
31 cursor: pointer;
32}
33
34
35/* Comparison mode layout */
36
37/* Individual score breakdown cards */
38.score-breakdowns {
39 display: flex;
40 flex-direction: column; /* Default to column for single mode */
41 gap: 20px;
42 width: 100%;
43 display: none;
44}
45
46/* Adjustments for comparison mode */
47.comparison-mode .score-breakdowns {
48 flex-direction: row; /* Side-by-side in comparison mode */
49 justify-content: space-between; /* Evenly space the breakdowns */
50}
51
52.score-breakdown {
53 box-sizing: border-box;
54 flex: 1 1;
55 max-width: 100%;
56 font-size: 16px;
57 padding: 30px;
58 text-align: center;
59 background-color: var(--navbar-bg);
60 border: 5px solid var(--card-border);
61 border-radius: 12px;
62 box-shadow: none;
63 display: flex;
64 flex-direction: column;
65 gap: 15px;
66 margin: 10px auto;
67 }
68
69/* Remove or comment out the existing custom bar-fill since Recharts handles it */
70.bar-fill {
71 display: none; /* Hide custom bar-fill since Recharts handles it */
72}
73
74/* Remove or comment out the existing h3 if it's no longer needed */
75/* .score-breakdown h3 {
76 text-align: center;
77 color: #333;
78 margin-bottom: 15px;
79} */
80
81/* New styles for the breakdown sections */
82.score-breakdown .breakdown-section {
83 background-color: var(--navbar-bg);
84 border: 5px solid var(--card-border);
85 padding: 1rem;
86 border-radius: 8px;
87 margin-bottom: 1rem;
88}
89
90.score-breakdown .breakdown-section:last-child {
91 margin-bottom: 0;
92}
93
94.score-breakdown .breakdown-section h4 {
95 margin-bottom: 0.5rem;
96 color: #333;
97}
98
99.score-breakdown .breakdown-section ul {
100 list-style-type: disc;
101 padding-left: 1.5rem;
102}
103
104.score-breakdown .breakdown-section li {
105 margin-bottom: 0.5rem;
106 color: #555;
107}
108
109/* Score Toggle Controls */
110.score-toggle-controls {
111 display: flex;
112 justify-content: center;
113 gap: 20px;
114 margin-bottom: 15px;
115}
116
117.score-toggle-controls label {
118 font-size: 14px;
119 color: var(--text);
120 cursor: pointer;
121 display: flex;
122 align-items: center;
123 gap: 5px;
124}
125
126.score-toggle-controls input[type="checkbox"] {
127 width: 16px;
128 height: 16px;
129 cursor: pointer;
130}
131
132/* Bar Fill Container */
133.bar-fill {
134 display: flex;
135 height: 30px;
136 width: 100%;
137 background-color: #e0e0e0; /* Light gray background */
138 border-radius: 5px;
139 overflow: hidden;
140 position: relative;
141}
142
143/* Bluesky Segment */
144.bluesky-segment {
145 background-color: #3B9AF8; /* Blue color */
146 position: relative;
147 transition: opacity 0.3s ease;
148}
149
150.bluesky-segment:hover {
151 opacity: 0.8;
152}
153
154/* Atproto Segment */
155.atproto-segment {
156 background-color: #28a745; /* Green color */
157 position: relative;
158 transition: opacity 0.3s ease;
159}
160
161.atproto-segment:hover {
162 opacity: 0.8;
163}
164
165/* Bar Label */
166.bar-label {
167 width: 150px; /* Fixed width */
168 text-align: right;
169 padding-right: 10px;
170 font-weight: bold;
171 color: #333;
172}
173
174/* Bar Container */
175.bar {
176 display: flex;
177 align-items: center;
178 gap: 10px;
179}
180
181/* Single Mode Chart */
182.single-chart .bar-chart {
183 width: 100%;
184}
185
186/* Comparison Mode Chart */
187.comparison-chart .bar-chart {
188 width: 100%;
189}
190
191/* Score Breakdown Header */
192.score-breakdown-header {
193 font-size: 1.5rem;
194 font-weight: bold;
195 color: #3B9AF8; /* Blue color to make it stand out */
196 text-align: center;
197 margin-bottom: 1rem;
198}
199
200/* Ensure that the username header doesn't interfere with breakdown sections */
201.score-breakdown-header + .breakdown-section {
202 margin-top: 0;
203}
204
205/* Existing breakdown list styles */
206.score-breakdown ul {
207 list-style: none;
208 padding: 0;
209 margin: 15px 0 0;
210}
211
212.score-breakdown li {
213 margin-bottom: 8px;
214 color: #555;
215}
216
217.score-breakdown p {
218 margin: 8px 0;
219 color: #222;
220 font-weight: bold;
221}
222
223/* Center score breakdown card in single mode */
224.single-mode .score-breakdown {
225 max-width: 400px;
226 margin: 0 auto;
227}
228
229.single-chart {
230 margin-bottom: 20px;
231}
232
233/* Comparison chart and single chart styles */
234.chart {
235 margin-top: 20px;
236 padding: 15px;
237 background-color: #fff;
238 border: 1px solid #ddd;
239 border-radius: 8px;
240 background-color: #f9f9f9;
241 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
242}
243
244.bar-chart {
245 display: flex;
246 flex-direction: column;
247 gap: 10px;
248 padding: 10px;
249 border: 1px solid #ddd;
250 border-radius: 8px;
251 background-color: #f9f9f9;
252 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
253}
254
255.bar {
256 display: flex;
257 align-items: center;
258 height: 40px; /* Ensure consistent height for bars */
259 gap: 10px;
260}
261
262.bar-label {
263 width: 150px; /* Fixed size for labels */
264 text-align: right;
265 font-weight: bold;
266 color: #333;
267}
268
269
270.bar-fill {
271 display: none; /* Hide custom bar-fill since Recharts handles it */
272}
273
274/* Score Fill Span */
275.bar-fill span {
276 position: absolute;
277 width: 100%;
278 left: 0;
279 top: 0;
280 height: 100%;
281 display: flex;
282 align-items: center;
283 justify-content: center;
284 color: #fff;
285 font-weight: bold;
286}
287
288.bar-fill::before {
289 content: "";
290 position: absolute;
291 top: 0;
292 left: 0;
293 height: 100%;
294 background: #3B9AF8;
295 border-radius: 5px;
296 z-index: 0;
297 width: 100%;
298}
299
300/* High-Level Comparison Summary */
301.comparison-summary {
302 font-size: 16px;
303 padding: 15px;
304 text-align: center;
305 background-color: var(--navbar-bg);
306 border: 5px solid var(--card-border);
307 border-radius: 12px;
308 box-shadow: none;
309 display: flex;
310 flex-direction: column;
311 gap: 15px;
312 margin: 10px auto;
313 max-width: 500px;
314 }
315
316.comparison-summary p {
317 margin: 10px 0;
318}
319
320/* Container for elements below the score breakdowns */
321.comparison-extras {
322 flex: 1 1 100%;
323}
324
325
326.loading-skeleton {
327 background-color: #f0f0f0;
328 border-radius: 8px;
329 padding: 20px;
330 width: 100%;
331 max-width: 400px;
332 margin: 0 auto 20px;
333 animation: pulse 1.5s infinite;
334}
335
336.skeleton-title {
337 height: 20px;
338 width: 50%;
339 margin-bottom: 15px;
340 background-color: #e0e0e0;
341 border-radius: 4px;
342}
343
344.skeleton-bar {
345 height: 20px;
346 width: 100%;
347 margin-bottom: 15px;
348 background-color: #e0e0e0;
349 border-radius: 4px;
350}
351
352.skeleton-paragraph {
353 height: 15px;
354 width: 80%;
355 margin-bottom: 10px;
356 background-color: #e0e0e0;
357 border-radius: 4px;
358}
359
360@keyframes pulse {
361 0% {
362 background-color: #f0f0f0;
363 }
364 50% {
365 background-color: #e0e0e0;
366 }
367 100% {
368 background-color: #f0f0f0;
369 }
370}
371
372
373/* Responsive Design */
374@media (max-width: 768px) {
375 .comparison-mode .score-breakdowns {
376 flex-direction: column; /* Stack breakdowns vertically on small screens */
377 }
378
379 .score-breakdown {
380 max-width: 100%;
381 }
382
383 .bar-label {
384 width: 100px;
385 }
386}
387
388@media (max-width: 768px) {
389 .score-result {
390 width: 90%; /* Take up more width on smaller screens */
391 padding: 15px; /* Reduce padding for smaller screens */
392 }
393}
394
395/* Additional Styles for Breakdown Sections */
396
397.score-breakdown .breakdown-section h4 {
398 margin-bottom: 0.5rem;
399 margin-top: 0px;
400 color: #333;
401}
402
403.score-breakdown .breakdown-section ul {
404 list-style-type: disc;
405 padding-left: 1.5rem;
406}
407
408.score-breakdown .breakdown-section li {
409 margin-bottom: 0.5rem;
410 color: #555;
411}
412
413.score-breakdown-header {
414 color: #3b9af8;
415 font-size: 1.5rem;
416 font-weight: 700;
417 margin-bottom: 0px;
418 text-align: center;
419 margin-top: 0px;
420 }
421
422/* Customize Recharts Tooltip */
423.recharts-tooltip-wrapper {
424 background-color: rgba(255, 255, 255, 0.9);
425 border: 1px solid #ccc;
426 border-radius: 4px;
427 padding: 10px;
428}
429
430/* Customize Recharts Legend */
431.recharts-legend-wrapper {
432 font-size: 14px;
433 color: #333;
434 text-align: center;
435}
436
437/* Optional: Customize Legend Items */
438.recharts-legend-item-text {
439 cursor: pointer;
440}
441
442.recharts-default-legend {
443 padding-top: 20px;
444}
445
446/* Hover Effects on Legend Items */
447.recharts-legend-item-text:hover {
448 text-decoration: underline;
449}
450
451
452/* Custom Tooltip Styles */
453.custom-tooltip {
454 background-color: rgba(255, 255, 255, 0.95);
455 border: 1px solid #ccc;
456 border-radius: 4px;
457 padding: 10px;
458 box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
459}
460
461.custom-tooltip .label {
462 font-weight: bold;
463 margin-bottom: 5px;
464 color: #333;
465}
466
467.custom-tooltip p {
468 margin: 0;
469 color: #555;
470 font-size: 14px;
471}
472
473
474.compare-scores-page h2 {
475 text-align: center;
476 }
477
478 .compare-scores-page {
479 text-align: center;
480 margin: 20px auto 20px;
481 text-align: center;
482 padding: 20px;
483 }
484
485 .loading-container-1 {
486 min-height: 0vh !important;
487 }
488
489 .compare-scores.loading-container {
490 margin-top: 30px;
491 }
492
493 .compare-scores-page h2 {
494 text-align: center;
495 margin: 0px;
496 }
497
498 .compare-scores-page input {
499 margin-top: 10px;
500 border: 2px solid var(--button-bg);
501 }
502
503 .compare-scores-page h1 {
504 margin: 0px;
505 }
506
507 .compare-scores-page form {
508 padding: 30px 20px;
509 max-width: 400px;
510 margin-top: 0px;
511 margin-bottom: 0px;
512 }
513
514 .recharts-responsive-container {
515 max-width: 500px;
516 margin: auto;
517 }
518
519 .score-toggle-controls input {
520 margin-top: 0px;
521 }
522
523 .profile-1-button {
524 margin: 0px;
525 word-break: break-all;
526 word-wrap: break-word;
527 max-width: 145px;
528 }
529
530 .profile-2-button {
531 margin: 0px;
532 word-break: break-all;
533 word-wrap: break-word;
534 max-width: 145px;
535 }
536
537 .profile-button-container {
538 display: flex;
539 justify-content: center;
540 align-content: center;
541 font-size: 0.8em;
542 gap: 20px;
543 margin-bottom: 23px;
544 margin-top: -10px;
545 }
546
547 .compare-scores-page .recharts-wrapper {
548 margin-left: -19.5px;
549 }