-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
55 lines (48 loc) · 979 Bytes
/
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
@import url("https://fonts.googleapis.com/css2?family=Georama:wght@300&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Georama", sans-serif;
}
body {
height: 100vh;
display: grid;
place-items: center;
background: #acd2fb;
}
a {
text-transform: uppercase;
text-decoration: none;
background-color: rgba(61, 61, 240, 0.815);
color: #fff;
padding: 10px 16px;
border-radius: 30px;
position: relative;
}
a::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-transform: uppercase;
text-decoration: none;
background-color: rgba(61, 61, 240, 0.815);
border-radius: 30px;
z-index: -1;
transition: all 0.3s;
}
a:hover::before {
transform: scaleX(1.2) scaleY(1.6);
opacity: 0;
}
a:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
a:active {
transform: translateY(0);
box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
}