|
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 { |
|
669 | 769 | box-shadow 0.2s ease; |
670 | 770 | cursor: pointer; |
671 | 771 | background: rgba(255, 255, 255, 0.1); |
672 | | - padding: 0; |
673 | | - margin: 0; |
| 772 | + padding: 2px; |
| 773 | + flex-shrink: 0; |
674 | 774 | } |
675 | 775 |
|
676 | 776 | .contributor-badge-icon:hover { |
|
680 | 780 | position: relative; |
681 | 781 | } |
682 | 782 |
|
| 783 | +@media (max-width: 1024px) { |
| 784 | + .contributor-badge-icon { |
| 785 | + width: 40px; |
| 786 | + height: 40px; |
| 787 | + } |
| 788 | +} |
| 789 | + |
| 790 | +@media (max-width: 768px) { |
| 791 | + .contributor-badge-icon { |
| 792 | + width: 36px; |
| 793 | + height: 36px; |
| 794 | + } |
| 795 | + |
| 796 | + .contributor-badges { |
| 797 | + gap: 6px; |
| 798 | + justify-content: center; |
| 799 | + } |
| 800 | +} |
| 801 | + |
| 802 | +@media (max-width: 480px) { |
| 803 | + .contributor-badge-icon { |
| 804 | + width: 32px; |
| 805 | + height: 32px; |
| 806 | + } |
| 807 | + |
| 808 | + .contributor-badges { |
| 809 | + gap: 4px; |
| 810 | + } |
| 811 | +} |
| 812 | + |
683 | 813 | .username-with-badges { |
684 | 814 | display: flex; |
685 | 815 | flex-direction: column; |
|
693 | 823 | align-items: center; |
694 | 824 | justify-content: flex-start; |
695 | 825 | padding: 4px; |
| 826 | + overflow: hidden; |
| 827 | +} |
| 828 | + |
| 829 | +@media (max-width: 768px) { |
| 830 | + .contributor-cell.badges-cell { |
| 831 | + justify-content: center; |
| 832 | + padding: 8px 0; |
| 833 | + width: 100%; |
| 834 | + } |
696 | 835 | } |
697 | 836 |
|
698 | 837 | /* Badge display in top performer cards */ |
699 | 838 | .top-performer-card .contributor-badges { |
700 | 839 | margin-top: 0; |
701 | 840 | justify-content: center; |
| 841 | + max-width: 100%; |
| 842 | + overflow: hidden; |
702 | 843 | } |
703 | 844 |
|
704 | 845 | .top-performer-card .contributor-badge-icon { |
705 | 846 | width: 36px; |
706 | 847 | height: 36px; |
| 848 | + flex-shrink: 0; |
| 849 | +} |
| 850 | + |
| 851 | +@media (max-width: 768px) { |
| 852 | + .top-performer-card .contributor-badge-icon { |
| 853 | + width: 32px; |
| 854 | + height: 32px; |
| 855 | + } |
| 856 | + |
| 857 | + .top-performer-card .contributor-badges { |
| 858 | + gap: 6px; |
| 859 | + } |
| 860 | +} |
| 861 | + |
| 862 | +@media (max-width: 480px) { |
| 863 | + .top-performer-card .contributor-badge-icon { |
| 864 | + width: 28px; |
| 865 | + height: 28px; |
| 866 | + } |
707 | 867 | } |
708 | 868 |
|
709 | 869 | /* Badge display in podium cards */ |
|
717 | 877 | .podium-card .contributor-badges { |
718 | 878 | margin-top: 0; |
719 | 879 | justify-content: center; |
| 880 | + max-width: 100%; |
| 881 | + overflow: hidden; |
720 | 882 | } |
721 | 883 |
|
722 | 884 | .podium-card .contributor-badge-icon { |
723 | 885 | width: 32px; |
724 | 886 | height: 32px; |
| 887 | + flex-shrink: 0; |
| 888 | +} |
| 889 | + |
| 890 | +@media (max-width: 768px) { |
| 891 | + .podium-card .contributor-badge-icon { |
| 892 | + width: 28px; |
| 893 | + height: 28px; |
| 894 | + } |
| 895 | + |
| 896 | + .podium-card .contributor-badges { |
| 897 | + gap: 6px; |
| 898 | + flex-wrap: wrap; |
| 899 | + } |
| 900 | +} |
| 901 | + |
| 902 | +@media (max-width: 480px) { |
| 903 | + .podium-card .contributor-badge-icon { |
| 904 | + width: 24px; |
| 905 | + height: 24px; |
| 906 | + } |
725 | 907 | } |
726 | 908 |
|
727 | 909 | /* Position the badge inside the cell */ |
|
1088 | 1270 |
|
1089 | 1271 | .contributor-row { |
1090 | 1272 | grid-template-columns: 1fr; |
1091 | | - gap: 16px; |
| 1273 | + gap: 12px; |
1092 | 1274 | padding: 16px; |
1093 | 1275 | margin-bottom: 12px; |
1094 | 1276 | border-radius: 8px; |
| 1277 | + position: relative; |
1095 | 1278 | } |
1096 | 1279 |
|
1097 | 1280 | .contributor-cell { |
|
1102 | 1285 | position: absolute; |
1103 | 1286 | top: 8px; |
1104 | 1287 | left: 8px; |
| 1288 | + z-index: 1; |
1105 | 1289 | } |
1106 | 1290 |
|
1107 | 1291 | .avatar-cell { |
1108 | 1292 | justify-self: center; |
| 1293 | + margin-top: 8px; |
1109 | 1294 | } |
1110 | 1295 |
|
1111 | 1296 | .username-cell { |
1112 | 1297 | text-align: center; |
| 1298 | + margin-top: 4px; |
1113 | 1299 | } |
1114 | 1300 |
|
1115 | 1301 | .prs-cell, |
1116 | 1302 | .points-cell { |
1117 | 1303 | justify-self: center; |
| 1304 | + margin: 4px 0; |
| 1305 | + } |
| 1306 | + |
| 1307 | + .badges-cell { |
| 1308 | + justify-self: center; |
| 1309 | + width: 100%; |
| 1310 | + display: flex; |
| 1311 | + justify-content: center; |
| 1312 | + padding: 8px 0; |
| 1313 | + margin-top: 4px; |
| 1314 | + overflow: visible; |
| 1315 | + } |
| 1316 | + |
| 1317 | + .contributor-badges { |
| 1318 | + justify-content: center; |
| 1319 | + max-width: 100%; |
| 1320 | + flex-wrap: wrap; |
| 1321 | + gap: 6px; |
| 1322 | + } |
| 1323 | + |
| 1324 | + .contributor-badge-icon { |
| 1325 | + width: 36px; |
| 1326 | + height: 36px; |
| 1327 | + } |
| 1328 | +} |
| 1329 | + |
| 1330 | +@media (max-width: 480px) { |
| 1331 | + .contributor-row { |
| 1332 | + padding: 12px; |
| 1333 | + gap: 10px; |
| 1334 | + } |
| 1335 | + |
| 1336 | + .contributor-badge-icon { |
| 1337 | + width: 32px; |
| 1338 | + height: 32px; |
| 1339 | + } |
| 1340 | + |
| 1341 | + .contributor-badges { |
| 1342 | + gap: 4px; |
| 1343 | + } |
| 1344 | + |
| 1345 | + .podium-card { |
| 1346 | + max-width: 100%; |
| 1347 | + padding: 16px; |
1118 | 1348 | } |
1119 | 1349 | } |
1120 | 1350 |
|
|
1170 | 1400 | .contributors-container .pagination-ellipsis { |
1171 | 1401 | margin: 0 2px; |
1172 | 1402 | } |
| 1403 | + |
| 1404 | + .contributor-badge-icon { |
| 1405 | + width: 28px; |
| 1406 | + height: 28px; |
| 1407 | + } |
| 1408 | + |
| 1409 | + .podium-card .contributor-badge-icon { |
| 1410 | + width: 20px; |
| 1411 | + height: 20px; |
| 1412 | + } |
| 1413 | + |
| 1414 | + .contributor-badges { |
| 1415 | + gap: 3px; |
| 1416 | + } |
1173 | 1417 | } |
1174 | 1418 |
|
1175 | 1419 | /* Skeleton Loader Styles */ |
|
2129 | 2373 | font-size: 14px; |
2130 | 2374 | } |
2131 | 2375 | } |
| 2376 | + |
0 commit comments