Skip to content

Commit

Permalink
Update external link mixin styles
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 1, 2024
1 parent e127904 commit 102abfe
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,36 @@
Link underscore
*/

@mixin external-link {
@include focus-outline;

display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
width: max-content;
margin: 0;
gap: 4px;
color: var(--color--primary);
text-decoration: underline;

svg path {
fill: var(--color--primary);
transition:
transform $transition,
fill $transition;
}

&:hover {
color: var(--color--text);

svg path {
fill: var(--color--text);
transform: translate(2px, -2px);
}
}
}

@mixin highlight-link {
position: relative;
display: inline;
Expand Down

0 comments on commit 102abfe

Please sign in to comment.