File: /var/www/quadcode-site/src/style/components/button.scss
.button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
background: $red;
color: $white;
border: none;
outline: none;
padding: 16px 50px;
border-radius: 4px;
cursor: pointer;
@include breakpoint-down('tabM') {
padding: 11px 35px;
}
&--ghost {
padding: 13px 76px;
background: rgba(50, 50, 50, 0.3);
border: 1px solid $white;
border-radius: 4px;
color: $white;
}
&--transparent {
border: 1px solid #141414;
border-radius: 4px;
background: transparent;
color: #141414;
padding: 16px 115px;
@include breakpoint-down('deskS') {
font-size: 18px;
line-height: 25px;
}
@include breakpoint-down('deskS') {
font-size: 16px;
line-height: 22px;
}
&.button--loading {
background: transparent;
&:after {
border: 3px solid #141414;
border-color: #141414 transparent #141414 transparent;
}
}
}
&--loading {
color: transparent !important;
pointer-events: none;
background: $red;
&:after {
position: absolute;
top: 26%;
left: 48%;
content: " ";
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
border: 3px solid $white;
border-color: $white transparent $white transparent;
animation: lds-dual-ring 1.2s linear infinite;
@include breakpoint-down('tabM') {
top: 16%;
left: 44%;
}
}
}
}
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}