plyr/demo/src/sass/components/links.scss
2023-03-24 22:35:49 +11:00

43 lines
791 B
SCSS

// ==========================================================================
// Links
// ==========================================================================
.link {
align-items: center;
border-bottom: 1px dashed currentColor;
color: $color-link;
position: relative;
text-decoration: none;
transition: all 0.2s ease;
&::after {
background: currentColor;
content: '';
height: 1px;
left: 50%;
position: absolute;
top: 100%;
transform: translateX(-50%);
transition: width 0.2s ease;
width: 0;
}
&:hover,
&:focus {
border-bottom-color: transparent;
outline: 0;
&::after {
width: 100%;
}
}
&:focus-visible {
@include focus-visible($color-link);
}
&.no-border::after {
display: none;
}
}