Skip to content

Commit f9dcedb

Browse files
committed
FIX: same
1 parent e08dceb commit f9dcedb

2 files changed

Lines changed: 41 additions & 8 deletions

File tree

assets/css/custom.css

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
text-align: center;
6363
}
6464

65-
/* Force black text color for collaborators on mobile */
65+
/* Force proper text colors for collaborators on mobile - respect dark mode */
6666
@media (max-width: 768px) {
67+
/* Light mode: black text */
6768
.blox-collaborators .resume-biography {
6869
color: black !important;
6970
}
@@ -73,17 +74,14 @@
7374
color: black !important;
7475
}
7576

76-
/* Set default link color to black, but allow hover to work */
7777
.blox-collaborators .resume-biography a {
7878
color: black !important;
7979
}
8080

81-
/* Preserve hover effects - use primary color on hover */
8281
.blox-collaborators .resume-biography a:hover {
8382
color: rgb(37 99 235) !important; /* primary-600 */
8483
}
8584

86-
/* Organization links hover */
8785
.blox-collaborators .resume-biography div a:hover {
8886
color: rgb(37 99 235) !important; /* primary-600 */
8987
}
@@ -97,14 +95,49 @@
9795
fill: black !important;
9896
}
9997

100-
/* Allow hover on network icons */
10198
.blox-collaborators .network-icon a:hover svg,
10299
.blox-collaborators .network-icon a:hover path {
103100
fill: rgb(37 99 235) !important; /* primary-600 */
104101
}
102+
103+
/* Dark mode on mobile: white text */
104+
.dark .blox-collaborators .resume-biography {
105+
color: white !important;
106+
}
107+
108+
.dark .blox-collaborators .resume-biography h3,
109+
.dark .blox-collaborators .resume-biography div:not(.network-icon) {
110+
color: white !important;
111+
}
112+
113+
.dark .blox-collaborators .resume-biography a {
114+
color: white !important;
115+
}
116+
117+
.dark .blox-collaborators .resume-biography a:hover {
118+
color: rgb(96 165 250) !important; /* primary-400 */
119+
}
120+
121+
.dark .blox-collaborators .resume-biography div a:hover {
122+
color: rgb(96 165 250) !important; /* primary-400 */
123+
}
124+
125+
.dark .blox-collaborators .network-icon {
126+
color: white !important;
127+
}
128+
129+
.dark .blox-collaborators .network-icon svg,
130+
.dark .blox-collaborators .network-icon path {
131+
fill: white !important;
132+
}
133+
134+
.dark .blox-collaborators .network-icon a:hover svg,
135+
.dark .blox-collaborators .network-icon a:hover path {
136+
fill: rgb(96 165 250) !important; /* primary-400 */
137+
}
105138
}
106139

107-
/* Ensure dark mode still works on larger screens */
140+
/* Ensure dark mode works on larger screens */
108141
@media (min-width: 769px) {
109142
.dark .blox-collaborators .resume-biography {
110143
color: white;

layouts/partials/blox/collaborators.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{{ $person_page.Title }}
8282
</a>
8383
</rb>
84-
<rt>{{ $person.name_pronunciation }}</rt>
84+
<rt class="text-black dark:text-white">{{ $person.name_pronunciation }}</rt>
8585
</ruby>
8686
{{- else -}}
8787
<a
@@ -98,7 +98,7 @@
9898
{{ range $person.organizations }}
9999
<div class="mb-2 text-black dark:text-white">
100100
{{ with .url }}<a href="{{ . }}" target="_blank" rel="noopener" class="text-black dark:text-white hover:text-primary-600 dark:hover:text-primary-400 transition duration-150">{{ end }}
101-
<div>{{ .name }}</div>
101+
<div class="text-black dark:text-white">{{ .name }}</div>
102102
{{ if .url }}</a>{{ end }}
103103
</div>
104104
{{ end }}

0 commit comments

Comments
 (0)