-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
78 lines (70 loc) · 1.67 KB
/
style.css
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
* {
padding: 5px;
}
h2 {
width: 300px;
}
button {
width: 300px;
font-size: 12px;
background-color: #008542;
color: #fff;
text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
border: 0;
z-index: 1;
user-select: none;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
white-space: unset;
padding: 0.8rem 1.5rem;
text-decoration: none;
font-weight: 900;
transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
margin-bottom: 15px !important;
}
button:before {
position: absolute;
pointer-events: none;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
content: "";
transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
z-index: -1;
background-color: #008542 !important;
box-shadow: 0 -4px rgb(21 108 0 / 50%) inset,
0 4px rgb(100 253 31 / 99%) inset, -4px 0 rgb(100 253 31 / 50%) inset,
4px 0 rgb(21 108 0 / 50%) inset;
}
button:after {
position: absolute;
pointer-events: none;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
content: "";
box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}
button:hover:before {
box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
-4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}
button:hover:after {
box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}
button:active {
transform: translateY(4px);
}
button:active:after {
box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}