-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
145 lines (130 loc) · 2.3 KB
/
styles.css
File metadata and controls
145 lines (130 loc) · 2.3 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #171618;
gap: 24px;
}
.buttons {
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
justify-content: center;
align-items: center;
}
button {
padding: 10px 20px;
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4);
cursor: pointer;
}
canvas {
width: 80vw;
height: 80vh;
}
button.selected {
background-color: #3bff3b;
color: #171618;
}
.anim-border {
position: relative;
color: #999;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 4px;
font: 700 16px consolas;
overflow: hidden;
background: inherit;
}
details {
cursor: pointer;
color: #999;
letter-spacing: 2px;
font: 500 14px consolas;
}
.anim-border span:nth-child(1) {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 3px;
background: linear-gradient(to right, #171618, #3bff3b);
animation: animate1 2s linear infinite;
}
@keyframes animate1 {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.anim-border span:nth-child(2) {
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 3px;
background: linear-gradient(to bottom, #171618, #3bff3b);
animation: animate2 2s linear infinite;
animation-delay: 1s;
}
@keyframes animate2 {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(100%);
}
}
.anim-border span:nth-child(3) {
position: absolute;
bottom: 0;
right: 0;
width: 100%;
height: 3px;
background: linear-gradient(to left, #171618, #3bff3b);
animation: animate3 2s linear infinite;
}
@keyframes animate3 {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
.anim-border span:nth-child(4) {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 3px;
background: linear-gradient(to top, #171618, #3bff3b);
animation: animate4 2s linear infinite;
animation-delay: 1s;
}
@keyframes animate4 {
0% {
transform: translateY(100%);
}
100% {
transform: translateY(-100%);
}
}
@media (max-width: 768px) {
body {
flex-direction: column;
}
.buttons {
flex-direction: row;
flex-wrap: wrap;
margin-top: 100px;
}
}