-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathstyle.css
114 lines (103 loc) · 1.65 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #27272c;
}
button {
position: relative;
background: #444;
color: #fff;
text-decoration: none;
text-transform: uppercase;
border: none;
letter-spacing: 0.1rem;
font-size: 1rem;
padding: 1rem 3rem;
transition: 0.2s;
}
button:hover {
letter-spacing: 0.2rem;
padding: 1.1rem 3.1rem;
background: var(--clr);
color: var(--clr);
/* box-shadow: 0 0 35px var(--clr); */
animation: box 3s infinite;
}
button::before {
content: "";
position: absolute;
inset: 2px;
background: #272822;
}
button span {
position: relative;
z-index: 1;
}
button i {
position: absolute;
inset: 0;
display: block;
}
button i::before {
content: "";
position: absolute;
width: 10px;
height: 2px;
left: 80%;
top: -2px;
border: 2px solid var(--clr);
background: #272822;
transition: 0.2s;
}
button:hover i::before {
width: 15px;
left: 20%;
animation: move 3s infinite;
}
button i::after {
content: "";
position: absolute;
width: 10px;
height: 2px;
left: 20%;
bottom: -2px;
border: 2px solid var(--clr);
background: #272822;
transition: 0.2s;
}
button:hover i::after {
width: 15px;
left: 80%;
animation: move 3s infinite;
}
@keyframes move {
0% {
transform: translateX(0);
}
50% {
transform: translateX(5px);
}
100% {
transform: translateX(0);
}
}
@keyframes box {
0% {
box-shadow: #27272c;
}
50% {
box-shadow: 0 0 25px var(--clr);
}
100% {
box-shadow: #27272c;
}
}