File: D:/HostingSpaces/SBogers10/ste.komma.pro/resources/sass/5-Components/_components.textButton.scss
/* ==========================================================================
* Text button
* ========================================================================== */
/**
* 1. Color gets inherited and used for nested elements with 'currentColor' property
* 2. Reset default button styling
*/
.c-text-button {
display: inline-flex;
align-items: flex-start;
color: palette(neutral, 700); // 1
padding: 0; /* 2 */
background-color: transparent; /* 2 */
border: none; /* 2 */
cursor: pointer;
text-decoration: none;
transition: color 0.3s;
&:hover:not(:disabled){
color: palette(secondary, 500);
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
.c-text-button__text {
@include font-size(base);
@include font-weight(extraBold);
line-height: 1.5;
margin-top: 2px;
margin-bottom: 2px;
&::first-letter {
text-transform: capitalize;
}
}
.c-text-button__icon {
flex: none;
position: relative;
margin-top: 6px;
margin-right: space(2);
color: palette(secondary, 400);
transition: transform 150ms ease-in-out;
.c-text-button:hover:not(:disabled) & {
transform: translateX(4px);
}
}
.c-text-button--white {
color: palette(neutral, 0);
&:hover:not(:disabled){
color: rgba(palette(neutral, 0), 0.8);
}
}