Skip to content

Commit e16c5ab

Browse files
committed
Fixes live contributors count font dynamically
1 parent 04fb955 commit e16c5ab

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/components/FloatingContributors/FloatingContributors.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,13 +784,20 @@
784784
display: flex;
785785
align-items: center;
786786
justify-content: center;
787-
font-size: 11px;
787+
font-size: 8px;
788788
font-weight: 600;
789789
color: rgba(255, 255, 255, 0.7);
790790
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
791791
cursor: pointer;
792792
}
793793

794+
.contributors-more span {
795+
font-size: 8px;
796+
line-height: 1;
797+
display: inline-block;
798+
text-align: center;
799+
}
800+
794801
.contributors-more:hover {
795802
background: rgba(102, 126, 234, 0.2);
796803
border-color: rgba(102, 126, 234, 0.5);
@@ -986,6 +993,13 @@
986993
font-size: 10px;
987994
}
988995

996+
.contributors-more span {
997+
font-size: 6.5px;
998+
line-height: 1;
999+
display: inline-block;
1000+
text-align: center;
1001+
}
1002+
9891003
.contributors-cta {
9901004
padding: 10px 14px;
9911005
font-size: 13px;
@@ -1042,6 +1056,13 @@
10421056
height: 24px;
10431057
font-size: 9px;
10441058
}
1059+
1060+
.contributors-more span {
1061+
font-size: 6.5px;
1062+
line-height: 1;
1063+
display: inline-block;
1064+
text-align: center;
1065+
}
10451066
}
10461067

10471068
/* Extra small screens */

0 commit comments

Comments
 (0)