Skip to content

Commit a8862d9

Browse files
committed
ui(footer): don't underline icon links on hover
1 parent c016755 commit a8862d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/common/Footer.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ import { Icon } from "astro-icon/components";
3838
<a href="/donation/">ご寄付・ご協賛</a>
3939
<h3 class="footer-title mt-6">ソーシャルリンク</h3>
4040
<div class="grid grid-flow-col gap-4">
41-
<a href="https://github.com/ut-code" target="_blank">
41+
<a href="https://github.com/ut-code" target="_blank" data-icon-link>
4242
<Icon name="flowbite:github-solid" class="text-5xl" />
4343
</a>
44-
<a href="https://x.com/utokyo_code" target="_blank">
44+
<a href="https://x.com/utokyo_code" target="_blank" data-icon-link>
4545
<Icon name="flowbite:x-solid" class="text-5xl" />
4646
</a>
4747
</div>
@@ -55,17 +55,17 @@ import { Icon } from "astro-icon/components";
5555

5656
<style>
5757
@media (prefers-reduced-motion) {
58-
a:hover {
58+
a:not([data-icon-link]):hover {
5959
text-decoration: underline;
6060
}
6161
}
6262
@media not (prefers-reduced-motion) {
63-
a {
63+
a:not([data-icon-link]) {
6464
background: linear-gradient(currentColor 0 0) bottom left/
6565
var(--underline-width, 0%) 0.1em no-repeat;
6666
transition: background-size 0.1s linear;
6767
}
68-
a:hover {
68+
a:not([data-icon-link]):hover {
6969
--underline-width: 100%;
7070
@starting-style {
7171
--underline-width: 0%;

0 commit comments

Comments
 (0)