File size: 1,541 Bytes
3206d59
77fd7a1
 
3206d59
77fd7a1
 
 
 
 
 
 
 
5c877fe
 
 
77fd7a1
 
 
3206d59
77fd7a1
3206d59
 
 
 
 
 
 
77fd7a1
 
 
 
 
 
 
 
 
 
 
3206d59
77fd7a1
 
 
 
3206d59
77fd7a1
 
 
 
 
 
 
 
 
3206d59
77fd7a1
 
 
 
 
 
 
 
 
 
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
@import '../../_variables.css';

.button {
    background-color: var(--color-primary);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-default);
    transform: translateY(0);
    transition: background-color 0.3s var(--bezier-custom),
    transform 0.3s var(--bezier-custom),
    box-shadow 0.3s var(--bezier-custom);
}

.button p {
    color: var(--text-color-button);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 30%, transparent 70%, transparent 100%);
    z-index: -1;
    transition: left 0.5s var(--bezier-custom);
}


.button:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    background-color: var(--color-primary-active);
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition-duration: 0.1s;
}


.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
}