Skip to content

Commit

Permalink
refactor: replace to catalog link with mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
stardustmeg committed Jun 3, 2024
1 parent f42aab8 commit befca2d
Showing 1 changed file with 9 additions and 30 deletions.
39 changes: 9 additions & 30 deletions src/pages/CartPage/view/cartPageView.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,40 +160,19 @@
color: var(--noble-gray-200);
}

$padding: var(--tiny-offset) 0;
$color: var(--steam-green-800);

.continue {
position: relative;
@include link($padding, $color);

align-self: center;
padding: var(--tiny-offset) 0;
font: var(--regular-font);
color: var(--steam-green-800);
transition: color 0.2s;
cursor: pointer;
width: max-content;
height: max-content;
text-transform: none;

&::after {
content: '';
position: absolute;
left: 0;
bottom: 0.3rem;
width: 100%;
height: var(--two);
background-color: currentcolor;
opacity: 0;
transform: scaleX(0);
transform-origin: center;
transition:
transform 0.2s,
opacity 0.2s;
}

@media (hover: hover) {
&:hover {
color: var(--steam-green-800);

&::after {
opacity: 1;
transform: scaleX(1);
}
}
bottom: var(--five);
}
}

Expand Down

0 comments on commit befca2d

Please sign in to comment.