Skip to content

Commit 67b9a16

Browse files
authored
Merge pull request #511 from singh-odyssey/text_visibility_fix
Text visiblity fix
2 parents 0ffa7d6 + 1618e20 commit 67b9a16

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

src/components/FloatingContributors/FloatingContributors.css

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@
8383
cursor: pointer; /* Add pointer cursor to indicate clickable */
8484
}
8585

86+
[data-theme='dark'] .contributor-activity-item {
87+
background-color: rgba(71, 85, 105, 0.3);
88+
}
89+
90+
[data-theme='dark'] .contributor-activity-item:hover {
91+
background-color: rgba(71, 85, 105, 0.5);
92+
}
93+
94+
[data-theme='light'] .contributor-activity-item {
95+
background-color: rgba(241, 245, 249, 0.6);
96+
}
97+
98+
[data-theme='light'] .contributor-activity-item:hover {
99+
background-color: rgba(226, 232, 240, 0.8);
100+
}
101+
86102
.contributor-activity-item:hover {
87103
background-color: rgba(255, 255, 255, 0.15);
88104
transform: translateY(-2px); /* Slight lift effect on hover */
@@ -131,6 +147,14 @@
131147
color: rgba(255, 255, 255, 0.95);
132148
}
133149

150+
[data-theme='dark'] .activity-item-username {
151+
color: #f1f5f9;
152+
}
153+
154+
[data-theme='light'] .activity-item-username {
155+
color: #1e293b;
156+
}
157+
134158
.activity-item-badge {
135159
background-color: rgba(59, 130, 246, 0.2);
136160
padding: 2px 6px;
@@ -139,12 +163,30 @@
139163
color: rgba(255, 255, 255, 0.9);
140164
}
141165

166+
[data-theme='dark'] .activity-item-badge {
167+
background-color: rgba(139, 92, 246, 0.2);
168+
color: #c084fc;
169+
}
170+
171+
[data-theme='light'] .activity-item-badge {
172+
background-color: rgba(59, 130, 246, 0.15);
173+
color: #3b82f6;
174+
}
175+
142176
.activity-item-action {
143177
font-size: 0.8rem;
144178
color: rgba(255, 255, 255, 0.7);
145179
margin-top: 2px;
146180
}
147181

182+
[data-theme='dark'] .activity-item-action {
183+
color: rgba(203, 213, 225, 0.8);
184+
}
185+
186+
[data-theme='light'] .activity-item-action {
187+
color: rgba(71, 85, 105, 0.8);
188+
}
189+
148190
.activities-more {
149191
text-align: center;
150192
padding: 8px;
@@ -155,6 +197,16 @@
155197
margin-top: 4px;
156198
}
157199

200+
[data-theme='dark'] .activities-more {
201+
color: rgba(203, 213, 225, 0.8);
202+
background-color: rgba(71, 85, 105, 0.2);
203+
}
204+
205+
[data-theme='light'] .activities-more {
206+
color: rgba(71, 85, 105, 0.8);
207+
background-color: rgba(241, 245, 249, 0.5);
208+
}
209+
158210
/* Header embedded version - larger size */
159211
.floating-contributors-container.header-embedded .floating-contributors-card {
160212
min-width: 450px;
@@ -199,6 +251,71 @@
199251
transition: background 0.3s ease, box-shadow 0.3s ease;
200252
}
201253

254+
/* Dark mode text color overrides */
255+
[data-theme='dark'] .floating-contributors-title {
256+
color: #f1f5f9;
257+
}
258+
259+
[data-theme='dark'] .floating-contributors-subtitle {
260+
color: rgba(203, 213, 225, 0.8);
261+
}
262+
263+
[data-theme='dark'] .floating-contributors-close {
264+
color: rgba(203, 213, 225, 0.7);
265+
background: rgba(71, 85, 105, 0.3);
266+
}
267+
268+
[data-theme='dark'] .activity-username {
269+
color: #f1f5f9;
270+
}
271+
272+
[data-theme='dark'] .activity-message {
273+
color: rgba(203, 213, 225, 0.8);
274+
}
275+
276+
[data-theme='dark'] .activity-time {
277+
color: rgba(148, 163, 184, 0.7);
278+
}
279+
280+
[data-theme='dark'] .contributors-grid-header {
281+
color: #f1f5f9;
282+
background: rgba(71, 85, 105, 0.4);
283+
}
284+
285+
[data-theme='dark'] .floating-contributors-activity {
286+
background: rgba(71, 85, 105, 0.3);
287+
}
288+
289+
[data-theme='dark'] .floating-contributors-activity:hover {
290+
background: rgba(71, 85, 105, 0.5);
291+
}
292+
293+
[data-theme='dark'] .contributors-avatars {
294+
background: rgba(71, 85, 105, 0.2);
295+
}
296+
297+
[data-theme='dark'] .activity-action-badge {
298+
background: rgba(139, 92, 246, 0.2);
299+
color: #c084fc;
300+
}
301+
302+
[data-theme='dark'] .contributors-count {
303+
background: rgba(139, 92, 246, 0.2);
304+
color: #c084fc;
305+
}
306+
307+
[data-theme='dark'] .contributors-more {
308+
background: rgba(71, 85, 105, 0.3);
309+
border-color: rgba(148, 163, 184, 0.3);
310+
color: rgba(203, 213, 225, 0.8);
311+
}
312+
313+
[data-theme='dark'] .contributors-more:hover {
314+
background: rgba(139, 92, 246, 0.3);
315+
border-color: rgba(139, 92, 246, 0.5);
316+
color: #f1f5f9;
317+
}
318+
202319
.floating-contributors-card::before {
203320
content: '';
204321
position: absolute;

0 commit comments

Comments
 (0)