|
33 | 33 | color: #6366f1; |
34 | 34 | } |
35 | 35 |
|
| 36 | +@media (max-width: 768px) { |
| 37 | + .header { |
| 38 | + margin-bottom: 32px; |
| 39 | + } |
| 40 | + |
| 41 | + .title { |
| 42 | + font-size: 24px; |
| 43 | + } |
| 44 | + |
| 45 | + .subtitle { |
| 46 | + font-size: 15px; |
| 47 | + } |
| 48 | +} |
| 49 | + |
| 50 | +@media (max-width: 480px) { |
| 51 | + .title { |
| 52 | + font-size: 20px; |
| 53 | + } |
| 54 | + |
| 55 | + .subtitle { |
| 56 | + font-size: 14px; |
| 57 | + } |
| 58 | +} |
| 59 | + |
36 | 60 | .subtitle { |
37 | 61 | font-size: 17px; |
38 | 62 | max-width: 600px; |
|
63 | 87 | margin-bottom: 24px; |
64 | 88 | } |
65 | 89 |
|
| 90 | +@media (max-width: 768px) { |
| 91 | + .title-filter-container { |
| 92 | + flex-direction: column; |
| 93 | + gap: 12px; |
| 94 | + } |
| 95 | + |
| 96 | + .top-performers-title { |
| 97 | + font-size: 20px; |
| 98 | + } |
| 99 | +} |
| 100 | + |
66 | 101 | .top-performers-title { |
67 | 102 | font-size: 24px; |
68 | 103 | font-weight: 700; |
|
87 | 122 | margin-bottom: 40px; |
88 | 123 | } |
89 | 124 |
|
| 125 | +@media (max-width: 1024px) { |
| 126 | + .leaderboard-podium { |
| 127 | + gap: 40px; |
| 128 | + padding: 40px 15px 15px; |
| 129 | + } |
| 130 | +} |
| 131 | + |
| 132 | +@media (max-width: 768px) { |
| 133 | + .leaderboard-podium { |
| 134 | + flex-direction: column; |
| 135 | + align-items: center; |
| 136 | + gap: 20px; |
| 137 | + padding: 20px 10px; |
| 138 | + } |
| 139 | + |
| 140 | + .podium-card { |
| 141 | + width: 100%; |
| 142 | + max-width: 280px; |
| 143 | + transform: none !important; |
| 144 | + } |
| 145 | + |
| 146 | + .first-place, |
| 147 | + .second-place, |
| 148 | + .third-place { |
| 149 | + transform: none !important; |
| 150 | + } |
| 151 | + |
| 152 | + .first-place:hover, |
| 153 | + .second-place:hover, |
| 154 | + .third-place:hover { |
| 155 | + transform: translateY(-5px) !important; |
| 156 | + } |
| 157 | +} |
| 158 | + |
90 | 159 | .podium-card { |
91 | 160 | background-color: white; |
92 | 161 | padding: 20px; |
|
173 | 242 | border: 4px solid #f0f0f0; |
174 | 243 | } |
175 | 244 |
|
| 245 | +@media (max-width: 768px) { |
| 246 | + .podium-card .user-photo { |
| 247 | + width: 70px; |
| 248 | + height: 70px; |
| 249 | + border: 3px solid #f0f0f0; |
| 250 | + } |
| 251 | +} |
| 252 | + |
| 253 | +@media (max-width: 480px) { |
| 254 | + .podium-card .user-photo { |
| 255 | + width: 60px; |
| 256 | + height: 60px; |
| 257 | + border: 2px solid #f0f0f0; |
| 258 | + } |
| 259 | +} |
| 260 | + |
176 | 261 | .dark .podium-card .user-photo { |
177 | 262 | border-color: #444; |
178 | 263 | } |
|
232 | 317 | gap: 8px; |
233 | 318 | margin-top: 5px; |
234 | 319 | justify-content: center; |
| 320 | + flex-wrap: wrap; |
| 321 | +} |
| 322 | + |
| 323 | +@media (max-width: 768px) { |
| 324 | + .podium-card .stats { |
| 325 | + gap: 6px; |
| 326 | + } |
| 327 | + |
| 328 | + .podium-card .prs, |
| 329 | + .podium-card .points { |
| 330 | + font-size: 0.75em; |
| 331 | + padding: 3px 8px; |
| 332 | + } |
235 | 333 | } |
236 | 334 |
|
237 | 335 | .podium-card .prs, |
|
648 | 746 | flex-wrap: wrap; |
649 | 747 | cursor: pointer; |
650 | 748 | transition: all 0.2s ease; |
| 749 | + max-width: 100%; |
| 750 | + overflow: hidden; |
651 | 751 | } |
652 | 752 |
|
653 | 753 | .contributor-badges:hover { |
|
665 | 765 | cursor: pointer; |
666 | 766 | background: rgba(255, 255, 255, 0.1); |
667 | 767 | padding: 2px; |
| 768 | + flex-shrink: 0; |
668 | 769 | } |
669 | 770 |
|
670 | 771 | .contributor-badge-icon:hover { |
|
674 | 775 | position: relative; |
675 | 776 | } |
676 | 777 |
|
| 778 | +@media (max-width: 1024px) { |
| 779 | + .contributor-badge-icon { |
| 780 | + width: 40px; |
| 781 | + height: 40px; |
| 782 | + } |
| 783 | +} |
| 784 | + |
| 785 | +@media (max-width: 768px) { |
| 786 | + .contributor-badge-icon { |
| 787 | + width: 36px; |
| 788 | + height: 36px; |
| 789 | + } |
| 790 | + |
| 791 | + .contributor-badges { |
| 792 | + gap: 6px; |
| 793 | + justify-content: center; |
| 794 | + } |
| 795 | +} |
| 796 | + |
| 797 | +@media (max-width: 480px) { |
| 798 | + .contributor-badge-icon { |
| 799 | + width: 32px; |
| 800 | + height: 32px; |
| 801 | + } |
| 802 | + |
| 803 | + .contributor-badges { |
| 804 | + gap: 4px; |
| 805 | + } |
| 806 | +} |
| 807 | + |
677 | 808 | .username-with-badges { |
678 | 809 | display: flex; |
679 | 810 | flex-direction: column; |
|
687 | 818 | align-items: center; |
688 | 819 | justify-content: flex-start; |
689 | 820 | padding: 8px; |
| 821 | + overflow: hidden; |
| 822 | +} |
| 823 | + |
| 824 | +@media (max-width: 768px) { |
| 825 | + .contributor-cell.badges-cell { |
| 826 | + justify-content: center; |
| 827 | + padding: 8px 0; |
| 828 | + width: 100%; |
| 829 | + } |
690 | 830 | } |
691 | 831 |
|
692 | 832 | /* Badge display in top performer cards */ |
693 | 833 | .top-performer-card .contributor-badges { |
694 | 834 | margin-top: 8px; |
695 | 835 | justify-content: center; |
| 836 | + max-width: 100%; |
| 837 | + overflow: hidden; |
696 | 838 | } |
697 | 839 |
|
698 | 840 | .top-performer-card .contributor-badge-icon { |
699 | 841 | width: 36px; |
700 | 842 | height: 36px; |
| 843 | + flex-shrink: 0; |
| 844 | +} |
| 845 | + |
| 846 | +@media (max-width: 768px) { |
| 847 | + .top-performer-card .contributor-badge-icon { |
| 848 | + width: 32px; |
| 849 | + height: 32px; |
| 850 | + } |
| 851 | + |
| 852 | + .top-performer-card .contributor-badges { |
| 853 | + gap: 6px; |
| 854 | + } |
| 855 | +} |
| 856 | + |
| 857 | +@media (max-width: 480px) { |
| 858 | + .top-performer-card .contributor-badge-icon { |
| 859 | + width: 28px; |
| 860 | + height: 28px; |
| 861 | + } |
701 | 862 | } |
702 | 863 |
|
703 | 864 | /* Badge display in podium cards */ |
|
711 | 872 | .podium-card .contributor-badges { |
712 | 873 | margin-top: 4px; |
713 | 874 | justify-content: center; |
| 875 | + max-width: 100%; |
| 876 | + overflow: hidden; |
714 | 877 | } |
715 | 878 |
|
716 | 879 | .podium-card .contributor-badge-icon { |
717 | 880 | width: 32px; |
718 | 881 | height: 32px; |
| 882 | + flex-shrink: 0; |
| 883 | +} |
| 884 | + |
| 885 | +@media (max-width: 768px) { |
| 886 | + .podium-card .contributor-badge-icon { |
| 887 | + width: 28px; |
| 888 | + height: 28px; |
| 889 | + } |
| 890 | + |
| 891 | + .podium-card .contributor-badges { |
| 892 | + gap: 6px; |
| 893 | + flex-wrap: wrap; |
| 894 | + } |
| 895 | +} |
| 896 | + |
| 897 | +@media (max-width: 480px) { |
| 898 | + .podium-card .contributor-badge-icon { |
| 899 | + width: 24px; |
| 900 | + height: 24px; |
| 901 | + } |
719 | 902 | } |
720 | 903 |
|
721 | 904 | /* Position the badge inside the cell */ |
|
1081 | 1264 |
|
1082 | 1265 | .contributor-row { |
1083 | 1266 | grid-template-columns: 1fr; |
1084 | | - gap: 16px; |
| 1267 | + gap: 12px; |
1085 | 1268 | padding: 16px; |
1086 | 1269 | margin-bottom: 12px; |
1087 | 1270 | border-radius: 8px; |
| 1271 | + position: relative; |
1088 | 1272 | } |
1089 | 1273 |
|
1090 | 1274 | .contributor-cell { |
|
1095 | 1279 | position: absolute; |
1096 | 1280 | top: 8px; |
1097 | 1281 | left: 8px; |
| 1282 | + z-index: 1; |
1098 | 1283 | } |
1099 | 1284 |
|
1100 | 1285 | .avatar-cell { |
1101 | 1286 | justify-self: center; |
| 1287 | + margin-top: 8px; |
1102 | 1288 | } |
1103 | 1289 |
|
1104 | 1290 | .username-cell { |
1105 | 1291 | text-align: center; |
| 1292 | + margin-top: 4px; |
1106 | 1293 | } |
1107 | 1294 |
|
1108 | 1295 | .prs-cell, |
1109 | 1296 | .points-cell { |
1110 | 1297 | justify-self: center; |
| 1298 | + margin: 4px 0; |
| 1299 | + } |
| 1300 | + |
| 1301 | + .badges-cell { |
| 1302 | + justify-self: center; |
| 1303 | + width: 100%; |
| 1304 | + display: flex; |
| 1305 | + justify-content: center; |
| 1306 | + padding: 8px 0; |
| 1307 | + margin-top: 4px; |
| 1308 | + overflow: visible; |
| 1309 | + } |
| 1310 | + |
| 1311 | + .contributor-badges { |
| 1312 | + justify-content: center; |
| 1313 | + max-width: 100%; |
| 1314 | + flex-wrap: wrap; |
| 1315 | + gap: 6px; |
| 1316 | + } |
| 1317 | + |
| 1318 | + .contributor-badge-icon { |
| 1319 | + width: 36px; |
| 1320 | + height: 36px; |
| 1321 | + } |
| 1322 | +} |
| 1323 | + |
| 1324 | +@media (max-width: 480px) { |
| 1325 | + .contributor-row { |
| 1326 | + padding: 12px; |
| 1327 | + gap: 10px; |
| 1328 | + } |
| 1329 | + |
| 1330 | + .contributor-badge-icon { |
| 1331 | + width: 32px; |
| 1332 | + height: 32px; |
| 1333 | + } |
| 1334 | + |
| 1335 | + .contributor-badges { |
| 1336 | + gap: 4px; |
| 1337 | + } |
| 1338 | + |
| 1339 | + .podium-card { |
| 1340 | + max-width: 100%; |
| 1341 | + padding: 16px; |
1111 | 1342 | } |
1112 | 1343 | } |
1113 | 1344 |
|
|
1163 | 1394 | .contributors-container .pagination-ellipsis { |
1164 | 1395 | margin: 0 2px; |
1165 | 1396 | } |
| 1397 | + |
| 1398 | + .contributor-badge-icon { |
| 1399 | + width: 28px; |
| 1400 | + height: 28px; |
| 1401 | + } |
| 1402 | + |
| 1403 | + .podium-card .contributor-badge-icon { |
| 1404 | + width: 20px; |
| 1405 | + height: 20px; |
| 1406 | + } |
| 1407 | + |
| 1408 | + .contributor-badges { |
| 1409 | + gap: 3px; |
| 1410 | + } |
1166 | 1411 | } |
1167 | 1412 |
|
1168 | 1413 | /* Skeleton Loader Styles */ |
|
2122 | 2367 | font-size: 14px; |
2123 | 2368 | } |
2124 | 2369 | } |
| 2370 | + |
0 commit comments