-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
86 lines (79 loc) · 1.64 KB
/
style.css
File metadata and controls
86 lines (79 loc) · 1.64 KB
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
:root {
--clr-neon: hsl(317 100% 54%);
--clr-bg: hsl(323 21% 16%);
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
font-family: "Balsamiq Sans", cursive;
background: var(--clr-bg);
color: var(--clr-neon);
}
.neon-button {
font-size: 4rem;
color: var(--clr-neon);
text-decoration: none;
border: var(--clr-neon) 0.125em solid;
padding: 0.125em 1em;
border-radius: 0.25em;
text-shadow: 0 0 0.125em hsl(0 0% 100%/0.3), 0 0 0.45em currentColor;
box-shadow: inset 0 0 0.5em 0 var(--clr-neon), 0 0 0.5em 0 var(--clr-neon);
position: relative;
transition: all 0.285s linear;
}
.neon-button::before {
pointer-events: none;
content: " ";
position: absolute;
top: 120%;
left: 0;
height: 100%;
width: 100%;
background-color: var(--clr-neon);
transform: perspective(1em) rotateX(40deg) scale(1, 0.35);
filter: blur(1em);
opacity: 0.5;
transition: all 0.285s linear;
}
.neon-button::after {
content: " ";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--clr-neon);
z-index: -11;
box-shadow: 0 0 1em 0.25em var(--clr-neon);
opacity: 0;
transition: all 0.285s linear;
}
.neon-button:hover,
.neon-button:focus {
/* background-color: var(--clr-neon); */
color: var(--clr-bg);
text-shadow: none;
}
/*
.neon-button:hover::after,
.neon-button:focus::after,
.neon-button:hover::before,
.neon-button:focus::before {
opacity: 1;
} */
.neon-button:hover::after,
.neon-button:focus::after {
opacity: 1;
}
.neon-button:hover::before,
.neon-button:focus::before {
opacity: 1;
}