-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
popup.css
417 lines (370 loc) · 7.27 KB
/
popup.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
body {
width: 280px;
padding: 20px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
background-color: #f0f2f5;
color: #333;
}
.header {
margin-bottom: 20px;
width: 100%;
border-bottom: 2px solid #e1e4e8;
padding-bottom: 15px;
}
.header h1 {
font-size: 18px;
font-weight: 600;
text-align: center;
margin: 0;
color: #2c3e50;
}
.buttons-wrapper {
display: flex;
flex-direction: column;
width: 100%;
gap: 15px;
}
.buttons-row {
display: flex;
justify-content: space-between;
width: 100%;
gap: 10px;
}
button {
padding: 10px 15px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
background-color: #3498db;
color: white;
border: none;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
outline: none;
position: relative;
overflow: hidden;
}
button::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
background: rgba(255, 255, 255, 0.5);
opacity: 0;
border-radius: 100%;
transform: scale(1, 1) translate(-50%);
transform-origin: 50% 50%;
}
button:hover {
transform: translateY(-3px);
box-shadow: 0 7px 14px rgba(0, 0, 0, 0.18);
}
button:hover::after {
animation: ripple 1s ease-out;
}
@keyframes ripple {
0% {
transform: scale(0, 0);
opacity: 0.5;
}
20% {
transform: scale(25, 25);
opacity: 0.3;
}
100% {
opacity: 0;
transform: scale(40, 40);
}
}
.buttons-row button {
flex: 1;
}
button#bulk-delete,
button#toggle-checkboxes,
button#bulk-archive {
font-size: 16px;
width: 100%;
margin-top: 5px;
padding: 12px 15px;
position: relative;
}
button#bulk-archive#locked {
position: absolute;
left: 75px;
top: 50%;
transform: translateY(-50%);
}
button#add-checkboxes {
background-color: #2ecc71;
}
button#remove-checkboxes {
background-color: #e86354;
}
button#toggle-checkboxes {
background-color: #f39c12;
}
button#bulk-delete {
background-color: #e74c3c;
}
button#bulk-archive {
background-color: #9b59b6;
}
.footer {
margin-top: 20px;
width: 100%;
font-size: 12px;
text-align: center;
border-top: 2px solid #e1e4e8;
padding-top: 15px;
display: flex;
justify-content: center;
gap: 20px;
}
#sponsorLink {
display: inline-flex;
align-items: center;
padding: 8px 15px;
background-color: #34495e;
border-radius: 5px;
color: #fff;
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
#sponsorLink:hover {
background-color: #2c3e50;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
#sponsorLink .icon-text {
display: flex;
align-items: center;
gap: 8px;
}
#sponsorLink:hover {
background-color: #993366;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 0;
border-radius: 10px;
width: 260px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
overflow: hidden;
}
.modal h2 {
margin: 0;
padding: 15px 0;
background-color: #4a4a4a;
color: white;
font-size: 18px;
width: 100%;
}
.modal p {
color: #666;
font-size: 14px;
margin: 20px 15px;
}
.modal-separator {
height: 1px;
background-color: #e0e0e0;
margin: 15px 0;
}
.modal-buttons {
display: flex;
justify-content: center;
gap: 10px;
padding-bottom: 20px;
}
.modal-button {
padding: 8px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
.modal-button-primary {
background-color: #007bff;
color: white;
}
.modal-button-primary:hover {
background-color: #0056b3;
}
#modalCancel {
background-color: #f8f9fa;
color: #333;
}
#modalCancel:hover {
background-color: #e2e6ea;
}
/* 调整 button-container 样式 */
.button-container {
position: relative;
display: inline-block;
width: calc(50% - 5px); /* 调整宽度以适应两个按钮并留有间隙 */
}
/* 调整 tooltip-trigger 样式 */
.tooltip-trigger {
position: absolute;
top: 5px;
right: 5px;
width: 16px;
height: 16px;
color: rgba(255, 255, 255, 0.9); /* 近白色 */
font-size: 14px;
font-style: italic;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
cursor: help;
transition: all 0.3s ease;
z-index: 2;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* 添加轻微阴影以增加可见度 */
}
/* 调整 tooltip-content 样式 */
.tooltip-content {
visibility: hidden;
width: 130px;
background-color: #333;
color: #fff;
text-align: left;
border-radius: 6px;
padding: 10px;
position: absolute;
z-index: 3;
top: -5px;
left: calc(100% + 10px);
opacity: 0;
transition: opacity 0.3s, visibility 0.3s;
pointer-events: none;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 1.4;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.tooltip-content::after {
content: "";
position: absolute;
top: 10px;
right: 100%;
margin-top: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent #333 transparent transparent;
}
.tooltip-trigger:hover .tooltip-content {
visibility: visible;
opacity: 1;
}
/* 确保按钮容器不会因为tooltip内容而变形 */
.button-container {
position: relative;
display: inline-block;
width: calc(50% - 5px);
overflow: visible;
}
/* 可能需要调整按钮样式以适应新的布局 */
.buttons-row button,
.button-container button {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
/* 更新按钮悬停效果 */
.button-container:hover button,
.button-container:hover .tooltip-trigger {
transform: translateY(-3px);
}
/* 添加悬停效果到 i 图标 */
.tooltip-trigger:hover {
color: #fff; /* 完全白色 */
text-shadow: 0 0 4px rgba(255, 255, 255, 0.5); /* 增强悬停时的光晕效果 */
}
button#bulk-delete,
button#bulk-archive {
background-color: #e74c3c;
color: white;
position: relative;
overflow: hidden;
transition: background-color 0.3s ease;
display: flex;
justify-content: center;
align-items: center;
}
button#bulk-archive {
background-color: #9b59b6;
}
/* Progress bar styles */
button#bulk-delete::before,
button#bulk-archive::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(46, 204, 113, 0.5);
transform: translateX(-100%);
transition: transform 0.3s ease-out;
}
button#bulk-delete.progress,
button#bulk-archive.progress {
cursor: not-allowed;
background-color: #34495e;
}
button#bulk-delete.progress::before,
button#bulk-archive.progress::before {
transform: translateX(var(--progress, -100%));
}
/* Progress text styles */
.progress-text {
position: absolute;
left: 10px;
font-weight: bold;
}
.button-text {
z-index: 1;
position: relative;
}
/* Pulsing animation for the progress bar */
@keyframes pulse {
0% {
opacity: 1;
}
50% {
opacity: 0.7;
}
100% {
opacity: 1;
}
}
button#bulk-delete.progress::before,
button#bulk-archive.progress::before {
animation: pulse 2s infinite;
}