Skip to content

Commit cc9cac9

Browse files
committed
WIP: second attempt
1 parent d61ad38 commit cc9cac9

File tree

3 files changed

+63
-7
lines changed

3 files changed

+63
-7
lines changed

assets/css/custom.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,56 @@
6161
.blox-resume-biography div {
6262
text-align: center;
6363
}
64+
65+
/* Force black text color for collaborators on mobile */
66+
@media (max-width: 768px) {
67+
.blox-collaborators .resume-biography {
68+
color: black !important;
69+
}
70+
71+
.blox-collaborators .resume-biography h3,
72+
.blox-collaborators .resume-biography div:not(.network-icon) {
73+
color: black !important;
74+
}
75+
76+
/* Set default link color to black, but allow hover to work */
77+
.blox-collaborators .resume-biography a {
78+
color: black !important;
79+
}
80+
81+
/* Preserve hover effects - use primary color on hover */
82+
.blox-collaborators .resume-biography a:hover {
83+
color: rgb(37 99 235) !important; /* primary-600 */
84+
}
85+
86+
/* Organization links hover */
87+
.blox-collaborators .resume-biography div a:hover {
88+
color: rgb(37 99 235) !important; /* primary-600 */
89+
}
90+
91+
.blox-collaborators .network-icon {
92+
color: black !important;
93+
}
94+
95+
.blox-collaborators .network-icon svg,
96+
.blox-collaborators .network-icon path {
97+
fill: black !important;
98+
}
99+
100+
/* Allow hover on network icons */
101+
.blox-collaborators .network-icon a:hover svg,
102+
.blox-collaborators .network-icon a:hover path {
103+
fill: rgb(37 99 235) !important; /* primary-600 */
104+
}
105+
}
106+
107+
/* Ensure dark mode still works on larger screens */
108+
@media (min-width: 769px) {
109+
.dark .blox-collaborators .resume-biography {
110+
color: white;
111+
}
112+
113+
.dark .blox-collaborators .resume-biography a {
114+
color: white;
115+
}
116+
}

hugo_stats.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"dark:hover:text-gray-50",
127127
"dark:hover:text-neutral-800",
128128
"dark:hover:text-primary-400",
129+
"dark:hover:text-primary-600",
129130
"dark:prose-invert",
130131
"dark:text-gray-100",
131132
"dark:text-gray-300",
@@ -135,6 +136,7 @@
135136
"dark:text-neutral-400",
136137
"dark:text-primary-200",
137138
"dark:text-primary-300",
139+
"dark:text-primary-400",
138140
"dark:text-primary-900",
139141
"dark:text-slate-100",
140142
"dark:text-slate-200",
@@ -237,6 +239,7 @@
237239
"hover:text-neutral-300",
238240
"hover:text-primary-600",
239241
"hover:text-primary-700",
242+
"hover:text-primary-800",
240243
"inline-block",
241244
"inline-flex",
242245
"inset-0",

layouts/partials/blox/collaborators.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{{ $path := printf "%s.md" $author }}
5353
{{- $collaborator := site.GetPage "page" $path -}}
5454

55-
<div class="resume-biography flex flex-col items-center text-center max-w-xs dark:text-white">
55+
<div class="resume-biography flex flex-col items-center text-center max-w-xs text-black dark:text-white">
5656
{{ if $avatar }}
5757
<div class="avatar-wrapper mb-2">
5858
{{ $avatar_image := $avatar.Fill "150x150 Center" }}
@@ -76,7 +76,7 @@
7676
<rb>
7777
<a
7878
href="{{ $collaborator.RelPermalink }}"
79-
class="text-white font-semibold text-primary-400 hover:text-primary-600 transition duration-150"
79+
class="text-black dark:text-white font-semibold text-primary-600 dark:text-primary-400 hover:text-primary-800 dark:hover:text-primary-600 transition duration-150"
8080
>
8181
{{ $person_page.Title }}
8282
</a>
@@ -86,24 +86,24 @@
8686
{{- else -}}
8787
<a
8888
href="{{ $collaborator.RelPermalink }}"
89-
class="text-white font-semibold text-primary-400 hover:text-primary-600 transition duration-150"
89+
class="text-black dark:text-white font-semibold text-primary-600 dark:text-primary-400 hover:text-primary-800 dark:hover:text-primary-600 transition duration-150"
9090
>
9191
{{ $person_page.Title }}
9292
</a>
9393
{{- end -}}
9494
</div>
9595

96-
{{ with $person.role }}<h3 class="font-semibold mb-2">{{ . | markdownify | emojify }}</h3>{{ end }}
96+
{{ with $person.role }}<h3 class="font-semibold mb-2 text-black dark:text-white">{{ . | markdownify | emojify }}</h3>{{ end }}
9797

9898
{{ range $person.organizations }}
99-
<div class="mb-2">
100-
{{ with .url }}<a href="{{ . }}" target="_blank" rel="noopener">{{ end }}
99+
<div class="mb-2 text-black dark:text-white">
100+
{{ 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 }}
101101
<div>{{ .name }}</div>
102102
{{ if .url }}</a>{{ end }}
103103
</div>
104104
{{ end }}
105105

106-
<ul class="network-icon dark:text-zinc-100">
106+
<ul class="network-icon text-black dark:text-zinc-100">
107107
{{ range $person.profiles }}
108108
{{ $pack := or .icon_pack "fas" }}
109109
{{ $pack_prefix := $pack }}

0 commit comments

Comments
 (0)