-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
120 lines (110 loc) · 2.65 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Yao Knowledge (Demo)</title>
<style>
body {
width: 100px;
height: 100px;
min-width: 100px;
min-height: 100px;
padding: 0;
margin: 0;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
/* -webkit-app-region: drag; */
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
text-rendering: optimizeLegibility;
text-size-adjust: 100%;
/* border: 1px solid red; */
}
.dropzone {
width: 60px;
height: 60px;
opacity: 0.918;
background-color: #232326;
border: 1px solid #404046;
/* -webkit-app-region: drag; */
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
font-size: 12px;
color: #a2a5b9;
padding: 0.5em;
}
#dropzone-text {
-webkit-app-region: drag;
}
#dropzone-text img {
width: 18px;
height: 18px;
}
.dragging-over {
opacity: 1;
border: 2px solid #3b3b48;
}
.dragging-pending {
height: 60px;
opacity: 1;
border: 2px solid #faad14;
animation: borderBreath 2s infinite, widthBreath 2s alternate infinite;
}
.loading {
-webkit-transform: rotate(360deg);
animation: rotation 2.6s linear infinite;
-moz-animation: rotation 2.6s linear infinite;
-webkit-animation: rotation 2.6s linear infinite;
-o-animation: rotation 2.6s linear infinite;
}
@-webkit-keyframes rotation {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@keyframes borderBreath {
0% {
border-color: #3b3b48;
}
50% {
border-color: #faad14;
}
100% {
border-color: #3b3b48;
}
}
/* 宽度变化动画 */
@keyframes widthBreath {
0% {
width: 60px;
}
50% {
width: 80px;
}
100% {
width: 60px;
}
}
</style>
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-inline';"
/>
</head>
<body>
<div id="dropzone" class="dropzone">
<div id="dropzone-text">
<img src="./assets/images/upload.svg" alt="" />
</div>
</div>
</body>
</html>