-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbutton.module.scss
105 lines (87 loc) · 1.41 KB
/
button.module.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@use '../../styles/mixins.scss';
.button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
cursor: pointer;
user-select: none;
padding: 16px 32px;
height: 48px;
border-radius: 10px;
transition: transform 0.2s, box-shadow 0.2s;
@include mixins.shadow_border;
&:hover {
box-shadow: 0px 4px 10px rgb(0 0 0 / 15%);
transform: translateY(-1px);
}
&:active {
box-shadow: 0px 4px 10px rgb(0 0 0 / 15%);
transform: translateY(0px);
}
}
.secondary {
background: #ffffff;
}
.primary {
background: #2f1f49;
}
.image {
width: 14px;
height: 14px;
}
.disabled {
opacity: 0.5;
cursor: not-allowed;
&:hover {
transform: translateY(0px);
}
}
.text {
letter-spacing: 1px;
white-space: break-spaces;
font-size: 14px;
line-height: 24px;
font-weight: 450;
align-items: center;
display: flex;
flex-direction: row;
gap: 10px;
}
.primary > .text {
color: #ffffff;
}
.secondary > .text {
color: #2f1f49;
}
.outlined {
position: relative;
z-index: 1;
&:before {
content: '';
position: absolute;
border-radius: inherit;
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
z-index: -1;
}
}
.loading {
cursor: default;
pointer-events: none;
&:hover {
transform: translateY(0px);
}
}
.large {
height: 44px;
}
.medium {
height: 36px;
}
.small {
height: 28px;
}