Skip to content

Commit

Permalink
refactor(breadcrumbs): use mixin for styling hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiarokh committed Nov 23, 2023
1 parent a845645 commit aac25ae
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/components/breadcrumbs/breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,30 +74,7 @@ ol {
}

a.step {
cursor: pointer;
transition: color 0.2s ease;
&:before {
transition: opacity 0.2s ease, transform 0.3s ease-out;
content: '';
position: absolute;
inset: auto 0 0 0;
width: calc(100% - 0.5rem);
margin: auto;
height: 0.125rem;
border-radius: 1rem;

background-color: currentColor;
opacity: 0;
transform: scale(0.6);
}

&:hover {
--limel-breadcrumbs-item-text-color: rgb(var(--color-blue-default));
&:before {
opacity: 0.3;
transform: scale(1);
}
}
@include mixins.hyperlink($color: var(--limel-breadcrumbs-item-text-color));
}

button.step {
Expand Down

0 comments on commit aac25ae

Please sign in to comment.