Skip to content

Commit 7bbe31a

Browse files
committed
调整外部连接的样式
1 parent 370ede5 commit 7bbe31a

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

packages/pure/components/basic/Footer.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const version = pkg.version
6969
<a
7070
href='https://github.com/withastro/astro'
7171
target='_blank'
72-
class='inline-flex items-center gap-x-1 underline underline-offset-4 hover:text-primary external-link'
72+
class='inline-flex items-center gap-x-1 hover:text-primary external-link'
7373
>
7474
{/* {Astro.generator} */}
7575
<DevIcon name='devicon:astro' class='size-4' />
@@ -79,7 +79,7 @@ const version = pkg.version
7979
<a
8080
href='https://github.com/cworld1/astro-theme-pure'
8181
target='_blank'
82-
class='underline underline-offset-4 hover:text-primary external-link'
82+
class='hover:text-primary external-link'
8383
>
8484
Pure theme
8585
</a>

src/assets/styles/external-link.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.external-link {
22
position: relative;
3-
color: hsl(var(--primary));
3+
/* color: hsl(var(--primary)); */
44
display: inline-flex;
55
align-items: center;
66
gap: 0.2em;
77
text-decoration: none;
8-
padding: 0.1em 0.3em;
8+
/* padding: 0.1em 0.3em;
99
margin: -0.1em -0.3em;
10-
border-radius: 0.2em;
10+
border-radius: 0.2em; */
1111
transition: all 0.2s ease;
12+
border-bottom: dashed;
1213
}
1314

1415
.external-link::after {
@@ -23,10 +24,10 @@
2324
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
2425
}
2526

26-
.external-link:hover {
27+
/* .external-link:hover {
2728
background-color: hsl(var(--primary) / 0.1);
2829
box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2);
29-
}
30+
} */
3031

3132
/* 特定网站的图标样式保持不变 */
3233
.external-link[href*="github.com"]::after {

0 commit comments

Comments
 (0)