File: D:/HostingSpaces/Neopoints/momsecurity.be/resources/sass/5-Components/_components.textButton.scss
.c-text-button {
display: inline-flex;
justify-content: center;
align-items: center;
color: palette(neutral, 900);
padding: 0; /* 2 */
background-color: transparent; /* 2 */
border: none; /* 2 */
cursor: pointer;
text-decoration: none;
font-weight: 500;
letter-spacing: 1.5px;
transition: color 300ms;
&:hover:not(:disabled) {
color: palette(neutral, 1000)
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
&:focus {
outline-color: palette(feedback, focus);
}
}
.c-text-button__text {
@include font-size(base);
}
.c-text-button__icon {
display: none; // By default icon is hidden
position: relative;
margin-left: space(1);
transition: transform 300ms;
.c-text-button:hover:not(:disabled) & {
transform: translateX(3px);
}
.c-text-button--icon &{
display: block; // Show when has icon modifier
}
}
// Change direction of icon (arrow)
.c-text-button--is-reversed {
.c-text-button__text { order: 2; }
.c-text-button__icon {
order: 1;
top: 1px;
margin-left: 0;
margin-right: space(1);
transform: rotate(0.5turn);
}
&:hover:not(:disabled) .c-text-button__icon {
transform: rotate(0.5turn) translateX(3px);
}
}
.c-text-button--on-dark {
color: palette(secondary, 500);
&:hover:not(:disabled) {
color: white;
}
}