Skip to content

Commit 23cf8c1

Browse files
committed
Fix anchor style.
1 parent d23b97b commit 23cf8c1

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

src/components/button-link/button-link.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const resolvedIsExternal =
2222
---
2323

2424
<a
25-
class={`font-bold text-lg px-4 py-4 bg-button rounded-[10px] inline-block leading-4 hover:bg-button-hover not-prose
25+
class={`button-link font-bold text-lg px-4 py-4 bg-button rounded-[10px] inline-block leading-4 hover:bg-button-hover not-prose
2626
${secondary || disabled ? "bg-primary text-white hover:bg-primary-hover" : "text-text-inverted"}
2727
${secondary ? "text-text" : ""}
2828
${className || ""}

src/components/card/card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { title, subtitle, url, image } = Astro.props;
2929
</div>
3030
</a>
3131
<div class="flex items-center flex-col flex-grow mb-2">
32-
<a href={url} class="block hover:underline">
32+
<a href={url} class="button-link block hover:underline">
3333
<h3 >{title}</h3>
3434
</a>
3535
<slot />

src/components/ui/Button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const {
2222
2323
const resolvedIsExternal = isExternal ?? url?.startsWith("http");
2424
25-
const baseClasses = "font-bold text-lg px-4 py-4 rounded-lg inline-flex items-center justify-center leading-4 transition-colors duration-200 not-prose border hover:text-black";
25+
const baseClasses = "button-link font-bold text-lg px-4 py-4 rounded-lg inline-flex items-center justify-center leading-4 transition-colors duration-200 not-prose border hover:text-black";
2626
const primaryClasses = "bg-button text-text-inverted hover:bg-button-hover border-transparent";
2727
const secondaryClasses = "bg-primary text-white hover:bg-primary-hover border-transparent";
2828
const clearClasses = "bg-transparent text-primary hover:bg-transparent hover:text-primary-active border-transparent";

src/layouts/Layout.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ const externalDomain = new URL(Astro.site || "").hostname;
5454
max-width: 1150px;
5555
}
5656

57-
main a[href^="http"]:not([href*="var(--externalDomain)"]):not(:has(img))::after {
58-
content: "↗";
57+
main a[href^="http"]:not([href*="var(--externalDomain)"]):not(.button-link):not(:has(img))::after {
5958
font-size: 0.8em;
59+
content: " ↗";
60+
display: inline-block;
61+
white-space: nowrap;
62+
overflow-wrap: break-word;
63+
word-break: break-word;
6064
}
6165
</style>
6266

0 commit comments

Comments
 (0)