-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
69 lines (58 loc) · 1.12 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
body {
min-height: 100vh;
display: grid;
place-items: center;
font-family: "Nunito", sans-serif;
background: #0d0e0f;
color: #f1b;
}
/* Estilos do botão */
.neon {
font-size: 64px;
font-weight: 700;
text-decoration: none;
display: inline-block;
color: #f1b;
padding: 16px 64px;
border: #f1b 8px solid;
border-radius: 16px;
box-shadow: inset 0 0 32px 0 #f1b, 0 0 32px 0 #f1b;
text-shadow: 0 0 8px hsl(0 0% 100% / 0.3), 0 0 32px currentColor;
position: relative;
}
/* Reflexo do botão */
.neon::before {
content: "";
position: absolute;
top: 120%;
left: 0;
background: #f1b;
width: 100%;
height: 100%;
transform: perspective(64px) rotateX(40deg) scale(1, 0.35);
filter: blur(64px);
opacity: 0.7;
pointer-events: none;
}
/* Estilos para hover */
.neon::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
box-shadow: 0 0 128px 32px #f1b;
opacity: 0;
background-color: #f1b;
z-index: -1;
transition: opacity 100ms linear;
}
.neon:hover::before,
.neon:hover::after {
opacity: 1;
}
.neon:hover {
color: #31202b;
text-shadow: none;
}