41 lines
No EOL
1.2 KiB
HTML
41 lines
No EOL
1.2 KiB
HTML
<a [href]="href">
|
|
<span><slot></slot></span>
|
|
<svg xmlns="http://www.w3.org/2000/svg" height="24" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
|
<path font-weight="bold" stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" />
|
|
</svg>
|
|
|
|
</a>
|
|
|
|
<style>
|
|
a {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
text-decoration: none !important;
|
|
text-transform: uppercase;
|
|
color: inherit;
|
|
background-image: linear-gradient(135deg,
|
|
black 0%,
|
|
black 50%,
|
|
transparent 50%,
|
|
transparent 100%
|
|
);
|
|
background-size: 250%;
|
|
background-position: 90% 90%;
|
|
border: 2px solid;
|
|
transition-property: color, border-color, background-position;
|
|
transition-duration: .75s;
|
|
}
|
|
a span, a svg {
|
|
display: block;
|
|
}
|
|
a:hover {
|
|
color: white;
|
|
background-position: 0% 0%;
|
|
border-color: black;
|
|
}
|
|
</style> |