Skip to content

Commit 00dd14f

Browse files
authored
fix: set white tab hover color, show blog date in dark mode (#377)
1 parent 32ffc16 commit 00dd14f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/BlogPostCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const firstCategory = post.data.categories.length
8989
{post.data.author}
9090
</a>
9191
</p>
92-
<div class="flex space-x-1 text-sm text-gray-600">
92+
<div class="flex space-x-1 text-sm text-gray-600 dark:text-gray-300">
9393
<time datetime={post.data.pubDate}
9494
>{formatDate(post.data.pubDate)}</time
9595
>

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ input[type="radio"]:checked + label {
132132
.tab {
133133
@apply px-3 py-1 leading-none font-mono font-bold text-sm text-gray-500 hover:text-black;
134134

135+
&:hover {
136+
@apply dark:text-white;
137+
}
138+
135139
span {
136140
@apply border-dotted border-b border-gray-400;
137141
}

0 commit comments

Comments
 (0)