akhaliq HF Staff commited on
Commit
db78b04
·
verified ·
1 Parent(s): 5276df5

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +393 -50
style.css CHANGED
@@ -1,76 +1,419 @@
1
  * {
2
- box-sizing: border-box;
3
- padding: 0;
4
- margin: 0;
5
- font-family: sans-serif;
6
  }
7
 
8
- html,
9
  body {
10
- height: 100%;
 
 
 
11
  }
12
 
13
- body {
14
- padding: 32px;
 
 
15
  }
16
 
17
- body,
18
- #container {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
- align-items: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
- #container {
26
- position: relative;
27
- gap: 0.4rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- width: 640px;
30
- height: 640px;
31
- max-width: 100%;
32
- max-height: 100%;
 
 
 
 
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
37
- cursor: pointer;
38
- margin: 1rem;
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
43
- font-size: 18px;
 
 
 
 
 
44
  }
45
 
46
- #upload {
47
- display: none;
 
 
48
  }
49
 
50
- svg {
51
- pointer-events: none;
 
 
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
57
- cursor: pointer;
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
 
 
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
72
- position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
 
1
  * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
 
5
  }
6
 
 
7
  body {
8
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
9
+ background: #000;
10
+ color: #fff;
11
+ overflow: hidden;
12
  }
13
 
14
+ .container {
15
+ width: 100vw;
16
+ height: 100vh;
17
+ position: relative;
18
  }
19
 
20
+ .video-container {
21
+ width: 100%;
22
+ height: 100%;
23
+ position: relative;
24
+ background: #000;
25
+ }
26
+
27
+ #videoPlayer {
28
+ width: 100%;
29
+ height: 100%;
30
+ object-fit: contain;
31
+ }
32
+
33
+ .overlay-ui {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ right: 0;
38
+ bottom: 0;
39
+ background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.9) 100%);
40
+ pointer-events: none;
41
+ }
42
+
43
+ .overlay-ui > * {
44
+ pointer-events: auto;
45
+ }
46
+
47
+ .header {
48
+ padding: 20px 30px;
49
+ text-align: center;
50
+ background: rgba(0,0,0,0.3);
51
+ backdrop-filter: blur(30px);
52
+ -webkit-backdrop-filter: blur(30px);
53
+ }
54
+
55
+ .header h1 {
56
+ font-size: 24px;
57
+ font-weight: 600;
58
+ background: linear-gradient(135deg, #007AFF, #5856D6);
59
+ -webkit-background-clip: text;
60
+ -webkit-text-fill-color: transparent;
61
+ background-clip: text;
62
+ }
63
+
64
+ .subtitle {
65
+ font-size: 14px;
66
+ color: rgba(255,255,255,0.6);
67
+ margin-top: 4px;
68
+ }
69
+
70
+ .upload-area {
71
+ position: absolute;
72
+ top: 50%;
73
+ left: 50%;
74
+ transform: translate(-50%, -50%);
75
+ width: 90%;
76
+ max-width: 400px;
77
+ padding: 60px 40px;
78
+ background: rgba(255,255,255,0.1);
79
+ backdrop-filter: blur(30px);
80
+ -webkit-backdrop-filter: blur(30px);
81
+ border-radius: 20px;
82
+ border: 1px solid rgba(255,255,255,0.2);
83
+ text-align: center;
84
+ cursor: pointer;
85
+ transition: all 0.3s ease;
86
+ }
87
+
88
+ .upload-area:hover {
89
+ background: rgba(255,255,255,0.15);
90
+ transform: translate(-50%, -50%) scale(1.02);
91
+ }
92
+
93
+ .upload-area.drag-over {
94
+ background: rgba(0,122,255,0.2);
95
+ border-color: #007AFF;
96
+ }
97
+
98
+ .upload-icon {
99
+ width: 60px;
100
+ height: 60px;
101
+ color: #007AFF;
102
+ margin-bottom: 20px;
103
+ }
104
+
105
+ .upload-area h2 {
106
+ font-size: 22px;
107
+ font-weight: 600;
108
+ margin-bottom: 8px;
109
+ }
110
+
111
+ .upload-area p {
112
+ color: rgba(255,255,255,0.6);
113
+ font-size: 14px;
114
+ }
115
+
116
+ .controls {
117
+ display: none;
118
+ position: absolute;
119
+ bottom: 30px;
120
+ left: 50%;
121
+ transform: translateX(-50%);
122
+ width: 90%;
123
+ max-width: 600px;
124
+ padding: 20px;
125
+ background: rgba(30,30,30,0.9);
126
+ backdrop-filter: blur(30px);
127
+ -webkit-backdrop-filter: blur(30px);
128
+ border-radius: 16px;
129
+ border: 1px solid rgba(255,255,255,0.1);
130
+ }
131
+
132
+ .primary-btn {
133
+ width: 100%;
134
+ padding: 14px 24px;
135
+ background: linear-gradient(135deg, #007AFF, #5856D6);
136
+ color: white;
137
+ border: none;
138
+ border-radius: 12px;
139
+ font-size: 16px;
140
+ font-weight: 600;
141
+ cursor: pointer;
142
+ transition: all 0.3s ease;
143
+ position: relative;
144
+ overflow: hidden;
145
+ }
146
+
147
+ .primary-btn:hover {
148
+ transform: translateY(-1px);
149
+ box-shadow: 0 10px 30px rgba(0,122,255,0.3);
150
+ }
151
+
152
+ .primary-btn.loading .btn-text {
153
+ opacity: 0;
154
+ }
155
+
156
+ .spinner {
157
+ position: absolute;
158
+ top: 50%;
159
+ left: 50%;
160
+ transform: translate(-50%, -50%);
161
+ width: 20px;
162
+ height: 20px;
163
+ border: 2px solid rgba(255,255,255,0.3);
164
+ border-top-color: white;
165
+ border-radius: 50%;
166
+ animation: spin 0.8s linear infinite;
167
+ opacity: 0;
168
+ }
169
+
170
+ .primary-btn.loading .spinner {
171
+ opacity: 1;
172
+ }
173
+
174
+ @keyframes spin {
175
+ to { transform: translate(-50%, -50%) rotate(360deg); }
176
+ }
177
+
178
+ .settings {
179
+ display: flex;
180
+ gap: 20px;
181
+ margin-top: 20px;
182
+ }
183
+
184
+ .setting-item {
185
+ flex: 1;
186
+ display: flex;
187
+ flex-direction: column;
188
+ gap: 8px;
189
+ }
190
+
191
+ .setting-item span {
192
+ font-size: 13px;
193
+ color: rgba(255,255,255,0.6);
194
+ }
195
+
196
+ .setting-item select {
197
+ padding: 10px 12px;
198
+ background: rgba(255,255,255,0.1);
199
+ border: 1px solid rgba(255,255,255,0.2);
200
+ border-radius: 8px;
201
+ color: white;
202
+ font-size: 14px;
203
+ cursor: pointer;
204
+ transition: all 0.3s ease;
205
+ }
206
+
207
+ .setting-item select:hover {
208
+ background: rgba(255,255,255,0.15);
209
+ }
210
+
211
+ .results {
212
+ display: none;
213
+ position: absolute;
214
+ right: 30px;
215
+ top: 100px;
216
+ width: 400px;
217
+ max-height: calc(100vh - 200px);
218
+ background: rgba(30,30,30,0.95);
219
+ backdrop-filter: blur(30px);
220
+ -webkit-backdrop-filter: blur(30px);
221
+ border-radius: 16px;
222
+ border: 1px solid rgba(255,255,255,0.1);
223
+ overflow: hidden;
224
+ }
225
+
226
+ .results-header {
227
+ display: flex;
228
+ justify-content: space-between;
229
+ align-items: center;
230
+ padding: 20px;
231
+ border-bottom: 1px solid rgba(255,255,255,0.1);
232
  }
233
 
234
+ .results-header h3 {
235
+ font-size: 18px;
236
+ font-weight: 600;
237
+ }
238
+
239
+ .icon-btn {
240
+ width: 32px;
241
+ height: 32px;
242
+ background: rgba(255,255,255,0.1);
243
+ border: none;
244
+ border-radius: 8px;
245
+ color: white;
246
+ cursor: pointer;
247
+ display: flex;
248
+ align-items: center;
249
+ justify-content: center;
250
+ transition: all 0.3s ease;
251
+ }
252
 
253
+ .icon-btn:hover {
254
+ background: rgba(255,255,255,0.2);
255
+ }
256
+
257
+ .icon-btn svg {
258
+ width: 18px;
259
+ height: 18px;
260
+ }
261
 
262
+ .icon-btn.copied {
263
+ background: #30D158;
264
+ }
265
+
266
+ .frame-captions {
267
+ max-height: 300px;
268
+ overflow-y: auto;
269
+ padding: 20px;
270
+ }
271
+
272
+ .frame-caption-item {
273
+ margin-bottom: 20px;
274
+ padding: 15px;
275
+ background: rgba(255,255,255,0.05);
276
+ border-radius: 12px;
277
+ animation: slideIn 0.3s ease;
278
+ }
279
 
280
+ @keyframes slideIn {
281
+ from {
282
+ opacity: 0;
283
+ transform: translateX(20px);
284
+ }
285
+ to {
286
+ opacity: 1;
287
+ transform: translateX(0);
288
+ }
289
  }
290
 
291
+ .frame-header {
292
+ display: flex;
293
+ justify-content: space-between;
294
+ margin-bottom: 8px;
295
  }
296
 
297
+ .frame-number {
298
+ font-size: 12px;
299
+ font-weight: 600;
300
+ color: #007AFF;
301
  }
302
 
303
+ .frame-time {
304
+ font-size: 12px;
305
+ color: rgba(255,255,255,0.5);
 
306
  }
307
 
308
+ .frame-text {
309
+ font-size: 14px;
310
+ line-height: 1.5;
311
+ color: rgba(255,255,255,0.9);
312
  }
313
 
314
+ .final-caption {
315
+ padding: 20px;
316
+ border-top: 1px solid rgba(255,255,255,0.1);
317
+ background: rgba(0,122,255,0.1);
318
  }
319
 
320
+ .final-caption h4 {
321
+ font-size: 14px;
322
+ font-weight: 600;
323
+ color: #007AFF;
324
+ margin-bottom: 12px;
325
+ }
326
+
327
+ #summaryText {
328
+ font-size: 14px;
329
+ line-height: 1.6;
330
+ color: rgba(255,255,255,0.9);
331
+ }
332
+
333
+ .progress-overlay {
334
+ position: absolute;
335
+ top: 0;
336
+ left: 0;
337
+ right: 0;
338
+ bottom: 0;
339
+ background: rgba(0,0,0,0.9);
340
+ backdrop-filter: blur(20px);
341
+ -webkit-backdrop-filter: blur(20px);
342
+ display: flex;
343
+ align-items: center;
344
+ justify-content: center;
345
+ opacity: 0;
346
+ pointer-events: none;
347
+ transition: opacity 0.3s ease;
348
+ }
349
+
350
+ .progress-overlay.active {
351
+ opacity: 1;
352
+ pointer-events: auto;
353
+ }
354
+
355
+ .progress-content {
356
+ text-align: center;
357
+ }
358
+
359
+ .progress-ring {
360
+ position: relative;
361
+ width: 120px;
362
+ height: 120px;
363
+ margin: 0 auto 30px;
364
+ }
365
+
366
+ .progress-ring svg {
367
+ width: 100%;
368
+ height: 100%;
369
+ transform: rotate(-90deg);
370
+ }
371
+
372
+ .progress-ring circle {
373
+ transition: stroke-dashoffset 0.3s ease;
374
+ }
375
+
376
+ .progress-text {
377
+ position: absolute;
378
+ top: 50%;
379
+ left: 50%;
380
+ transform: translate(-50%, -50%);
381
+ font-size: 24px;
382
+ font-weight: 600;
383
+ }
384
+
385
+ #progressStatus {
386
+ font-size: 14px;
387
+ color: rgba(255,255,255,0.6);
388
+ }
389
+
390
+ @media (max-width: 768px) {
391
+ .header {
392
+ padding: 15px 20px;
393
+ }
394
+
395
+ .header h1 {
396
+ font-size: 20px;
397
+ }
398
+
399
+ .results {
400
+ right: 20px;
401
+ left: 20px;
402
+ width: auto;
403
+ top: 80px;
404
+ }
405
+
406
+ .controls {
407
+ bottom: 20px;
408
+ width: calc(100% - 40px);
409
+ }
410
+
411
+ .settings {
412
+ flex-direction: column;
413
+ gap: 15px;
414
+ }
415
+
416
+ .upload-area {
417
+ padding: 40px 30px;
418
+ }
419
  }