Skip to content

Commit

Permalink
change hover color on blog tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDTR committed Oct 21, 2024
1 parent 37086e4 commit 1083ca7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/layouts/Blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const imgLink = `${Astro.site.origin}/og${Astro.url.pathname.replace(/\/$/, "")}
Tags:
{frontmatter.tags.map((tag) => (
<a href={`/tags/${tag}`}>
<code>{tag}</code>
<code class="tag-code">{tag}</code>
</a>
))}
</p>
Expand Down Expand Up @@ -95,5 +95,13 @@ const imgLink = `${Astro.site.origin}/og${Astro.url.pathname.replace(/\/$/, "")}
.tags a {
text-decoration: none;
}

.tag-code {
transition: background-color 0.2s;
}

.tag-code:hover {
background-color: #555f6a;
}
</style>
</BaseLayout>

0 comments on commit 1083ca7

Please sign in to comment.