Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/components/LinkOut.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const { href, withIcon = true } = Astro.props;
href={href}
target="_blank"
rel="noopener noreferrer"
class="icon"
>
<slot />
<span class="icon"></span>
</a> :
<a
href={href}
Expand All @@ -21,13 +21,9 @@ const { href, withIcon = true } = Astro.props;

<style>
.icon {
white-space: nowrap;
display: inline-flex;
gap: var(--space-3xs);
}

.icon::after {
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="hsl(221,8%,56%)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
display: inline-block;
margin-left: var(--space-3xs);
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="hsl(221,8%,56%)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
height: 0.75em;
width: 0.75em;
}
Expand Down