Skip to content

Commit

Permalink
fix: [link-animation] use background-position variation instead padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud authored and Mike Lebeau committed Oct 26, 2023
1 parent ad92018 commit 707f0e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/theme/src/link.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@use './common/typography.scss';

.puik-link {
@apply relative py-[1px] text-primary bg-gradient-to-bl from-primary-500 to-primary-500 bg-no-repeat bg-[length:100%_1px] bg-left-bottom transition-all ease-in-out duration-150;
@apply relative py-[0.5px] text-primary bg-gradient-to-bl from-primary-500 to-primary-500 bg-no-repeat bg-[length:100%_1px] transition-all ease-in-out duration-150;
background-position: left bottom 0px;
&:hover,
&:active {
@apply py-[2.5px] cursor-pointer from-primary-800 to-primary-800 transition-all ease-in-out duration-150;
@apply cursor-pointer from-primary-800 to-primary-800 transition-all ease-in-out duration-150;
background-position: left bottom 1.25px;
}
&:focus-visible {
@apply outline-none ring-2 ring-blue rounded-[4px] shadow-none;
Expand Down

0 comments on commit 707f0e8

Please sign in to comment.