Skip to content

Commit

Permalink
feat: [link animation] - tailwind classes for background-position
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Oct 24, 2023
1 parent bb38218 commit bff48ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/theme/src/link.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
@use './common/typography.scss';

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

0 comments on commit bff48ab

Please sign in to comment.