Skip to content

Commit fa61ed0

Browse files
authored
Merge pull request #1205 from steam-bell-92/main
make badges circular and fix hover behavior
2 parents 0dba306 + bbd46e4 commit fa61ed0

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

src/components/dashboard/LeaderBoard/leaderboard.css

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
}
369369

370370
.second-place:hover {
371-
transform: translateY(-35px);
371+
transform: translateY(-5px);
372372
border-color: #c0c0c0;
373373
box-shadow:
374374
0 0 15px rgba(192, 192, 192, 0.7),
@@ -742,7 +742,7 @@
742742
.contributor-badges {
743743
display: flex;
744744
align-items: center;
745-
gap: 8px;
745+
gap: 4px;
746746
flex-wrap: wrap;
747747
cursor: pointer;
748748
transition: all 0.2s ease;
@@ -754,11 +754,16 @@
754754
transform: translateY(-2px);
755755
}
756756

757+
.contributor-badges:hover .contributor-badge-icon:not(:hover) {
758+
transform: none;
759+
box-shadow: none;
760+
}
761+
757762
.contributor-badge-icon {
758763
width: 44px;
759764
height: 44px;
760765
object-fit: contain;
761-
border-radius: 8px;
766+
border-radius: 50%;
762767
transition:
763768
transform 0.2s ease,
764769
box-shadow 0.2s ease;
@@ -817,7 +822,7 @@
817822
display: flex;
818823
align-items: center;
819824
justify-content: flex-start;
820-
padding: 8px;
825+
padding: 4px;
821826
overflow: hidden;
822827
}
823828

@@ -831,7 +836,7 @@
831836

832837
/* Badge display in top performer cards */
833838
.top-performer-card .contributor-badges {
834-
margin-top: 8px;
839+
margin-top: 0;
835840
justify-content: center;
836841
max-width: 100%;
837842
overflow: hidden;
@@ -870,7 +875,7 @@
870875
}
871876

872877
.podium-card .contributor-badges {
873-
margin-top: 4px;
878+
margin-top: 0;
874879
justify-content: center;
875880
max-width: 100%;
876881
overflow: hidden;
@@ -949,13 +954,14 @@
949954
/* Badges */
950955
.badges-container {
951956
display: flex;
952-
gap: 8px;
953-
margin-top: 8px;
957+
gap: 4px;
958+
margin-top: 0;
954959
}
955960

956961
.badge {
957962
display: inline-block;
958-
padding: 4px 10px;
963+
padding: 0;
964+
margin: 0;
959965
border-radius: 9999px;
960966
font-size: 12px;
961967
font-weight: bold;
@@ -1528,7 +1534,7 @@
15281534

15291535
.skeleton-badges {
15301536
display: flex;
1531-
gap: 8px;
1537+
gap: 4px;
15321538
}
15331539

15341540
.skeleton-badge {

0 commit comments

Comments
 (0)