77 lines
1.5 KiB
SCSS
77 lines
1.5 KiB
SCSS
.m-button {
|
|
display: inline-block;
|
|
color: $titles;
|
|
text-align: center;
|
|
letter-spacing: 0.2px;
|
|
line-height: 1;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
border-radius: 5px;
|
|
padding: 13px 25px;
|
|
cursor: pointer;
|
|
outline: 0;
|
|
border: 0;
|
|
position: relative;
|
|
background-color: transparent;
|
|
@extend .no-appearance;
|
|
@extend .focusable;
|
|
@include transition(all .25s cubic-bezier(.02,.01,.47,1));
|
|
|
|
&.outlined {
|
|
color: var(--titles-color);
|
|
border: 1px solid var(--primary-foreground-color);
|
|
}
|
|
|
|
&.filled,
|
|
&.primary {
|
|
@include bs(0 2px 4px var(--button-shadow-color-normal));
|
|
|
|
&:hover {
|
|
@include transform(translateY(-2px));
|
|
@include bs(0 4px 8px var(--button-shadow-color-hover));
|
|
}
|
|
}
|
|
|
|
&.filled {
|
|
border-radius: 5px;
|
|
background-color: $white;
|
|
}
|
|
|
|
&.block {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
&.primary {
|
|
color: $white;
|
|
background-color: var(--primary-subtle-color);
|
|
}
|
|
|
|
&.loading {
|
|
cursor: default;
|
|
overflow: hidden;
|
|
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 25%;
|
|
height: 2px;
|
|
background-color: $white;
|
|
@include animation('loading 1s infinite');
|
|
@include keyframes(loading) {
|
|
0% {
|
|
@include transform(translatex(0));
|
|
}
|
|
50% {
|
|
@include transform(translatex(300%));
|
|
}
|
|
100% {
|
|
@include transform(translatex(0));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|