-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
244 lines (227 loc) · 8.18 KB
/
Copy pathcontent.css
File metadata and controls
244 lines (227 loc) · 8.18 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
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
/* B站下载助手 悬浮 UI */
#bili-dl-root {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 2147483600;
font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
color: #1a1a1a;
}
#bili-dl-fab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
border: none;
border-radius: 999px;
background: linear-gradient(135deg, #FB7299 0%, #FF85AD 100%);
color: #fff;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.5px;
cursor: pointer;
box-shadow: 0 6px 20px rgba(251, 114, 153, 0.35), 0 2px 6px rgba(0,0,0,0.08);
transition: transform .18s ease, box-shadow .18s ease;
}
#bili-dl-fab:hover {
transform: translateY(-1px);
box-shadow: 0 10px 28px rgba(251, 114, 153, 0.45), 0 4px 10px rgba(0,0,0,0.1);
}
#bili-dl-fab:active { transform: translateY(0); }
#bili-dl-panel {
position: absolute;
right: 0;
bottom: 56px;
width: 360px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.06);
overflow: hidden;
animation: bdl-pop .18s ease-out;
}
@keyframes bdl-pop {
from { opacity: 0; transform: translateY(8px) scale(.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.bdl-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
border-bottom: 1px solid #f0f0f3;
}
.bdl-title { font-size: 15px; font-weight: 600; color: #1a1a1a; flex: 1; }
.bdl-back {
border: none; background: transparent; cursor: pointer;
color: #555; padding: 4px 6px; margin-right: 4px; border-radius: 8px;
display: inline-flex; align-items: center;
}
.bdl-back[hidden] { display: none; }
.bdl-back:hover { background: #f3f4f6; color: #1a1a1a; }
.bdl-close {
border: none; background: transparent; cursor: pointer;
font-size: 16px; color: #888; padding: 4px 8px; border-radius: 8px;
}
.bdl-close:hover { background: #f3f4f6; color: #333; }
.bdl-body {
display: flex;
gap: 12px;
padding: 14px 16px;
}
.bdl-cover-wrap {
width: 110px; height: 70px; flex-shrink: 0;
background: #f3f4f6; border-radius: 10px; overflow: hidden;
}
.bdl-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bdl-vtitle {
font-size: 13px; font-weight: 600; line-height: 1.4; color: #1a1a1a;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bdl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; }
.bdl-row label { color: #666; }
.bdl-quality {
flex: 1; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 8px;
background: #fff; font-size: 12px; outline: none;
}
.bdl-quality:focus { border-color: #FB7299; }
.bdl-go {
margin-top: 2px;
padding: 9px 12px;
border: none; border-radius: 10px;
background: #1a1a1a; color: #fff;
font-size: 13px; font-weight: 600;
cursor: pointer;
transition: background .15s;
}
.bdl-go:hover { background: #333; }
.bdl-go:disabled { background: #c7c7cc; cursor: not-allowed; }
.bdl-hint {
font-size: 11px;
color: #8a8a8e;
line-height: 1.4;
}
.bdl-tasks {
border-top: 1px solid #f0f0f3;
padding: 10px 16px 12px;
max-height: 220px;
overflow-y: auto;
}
.bdl-tasks-title {
font-size: 12px; color: #6b7280; font-weight: 600;
margin-bottom: 8px; letter-spacing: 0.3px;
}
.bdl-tasks-list { display: flex; flex-direction: column; gap: 8px; }
.bdl-empty { font-size: 12px; color: #aaa; padding: 6px 0; }
.bdl-task {
background: #fafafb;
border-radius: 10px;
padding: 8px 10px;
display: flex; flex-direction: column; gap: 6px;
}
.bdl-t-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bdl-t-title {
font-size: 12.5px; font-weight: 500; color: #222;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.bdl-t-status {
font-size: 11px; padding: 2px 8px; border-radius: 999px;
background: #eef2ff; color: #4f46e5;
}
.bdl-task.done .bdl-t-status { background: #e6f7ec; color: #1f9d55; }
.bdl-task.error .bdl-t-status, .bdl-task.interrupted .bdl-t-status { background: #fdecec; color: #d33a3a; }
.bdl-task.canceled .bdl-t-status { background: #f3f4f6; color: #6b7280; }
.bdl-progress {
height: 4px; background: #e5e7eb; border-radius: 999px; overflow: hidden;
}
.bdl-progress-bar {
height: 100%;
background: linear-gradient(90deg, #FB7299, #FF85AD);
border-radius: 999px;
transition: width .25s ease;
}
.bdl-task.done .bdl-progress-bar { background: #1f9d55; }
.bdl-task.error .bdl-progress-bar, .bdl-task.interrupted .bdl-progress-bar { background: #d33a3a; }
.bdl-t-sub { font-size: 11px; color: #888; }
.bdl-t-actions { display: flex; gap: 6px; }
.bdl-t-actions button {
border: none; background: #fff; color: #555;
padding: 3px 8px; border-radius: 6px; font-size: 11px; cursor: pointer;
border: 1px solid #e5e7eb;
}
.bdl-t-actions button:hover { background: #f3f4f6; color: #222; }
.bdl-merge {
margin-top: 6px; padding: 8px 10px;
background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
display: flex; flex-direction: column; gap: 6px;
}
.bdl-merge-label { font-size: 11px; color: #6b7280; }
.bdl-merge-cmd {
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 11px; color: #1a1a1a;
background: #f6f7f9; padding: 6px 8px; border-radius: 6px;
word-break: break-all; white-space: pre-wrap; line-height: 1.45;
}
.bdl-merge-copy {
align-self: flex-start;
border: 1px solid #e5e7eb; background: #fff; color: #1a1a1a;
padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer;
}
.bdl-merge-copy:hover { background: #f3f4f6; }
.bdl-footer {
padding: 8px 16px 12px;
font-size: 11px;
color: #a1a1a6;
border-top: 1px solid #f0f0f3;
background: #fcfcfd;
}
/* 一级选择面板 */
.bdl-view[hidden] { display: none; }
.bdl-view-home { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bdl-choice {
display: flex; align-items: center; gap: 12px;
padding: 14px; border-radius: 12px;
background: #fafafb; border: 1px solid #f0f0f3;
cursor: pointer; transition: background .15s, border-color .15s, transform .12s;
}
.bdl-choice:hover { background: #fff; border-color: #FB7299; transform: translateY(-1px); }
.bdl-choice:active { transform: translateY(0); }
.bdl-choice-icon {
width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
background: linear-gradient(135deg, #FB7299 0%, #FF85AD 100%); color: #fff;
}
.bdl-choice-text { flex: 1; min-width: 0; }
.bdl-choice-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.bdl-choice-desc { font-size: 12px; color: #8a8a8e; margin-top: 2px; }
.bdl-choice-arrow { color: #c7c7cc; flex-shrink: 0; display: flex; align-items: center; }
.bdl-choice:hover .bdl-choice-arrow { color: #FB7299; }
/* 文稿格式选择 */
.bdl-fmt { display: flex; gap: 14px; flex: 1; }
.bdl-fmt-opt { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #444; }
.bdl-fmt-opt input { accent-color: #FB7299; cursor: pointer; }
/* 开关 */
.bdl-switch { display: inline-flex; align-items: center; cursor: pointer; }
.bdl-switch input { display: none; }
.bdl-switch-track {
width: 36px; height: 20px; border-radius: 999px; background: #d4d4d8;
position: relative; transition: background .18s;
}
.bdl-switch-track::after {
content: ""; position: absolute; top: 2px; left: 2px;
width: 16px; height: 16px; border-radius: 50%; background: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .18s;
}
.bdl-switch input:checked + .bdl-switch-track { background: #FB7299; }
.bdl-switch input:checked + .bdl-switch-track::after { transform: translateX(16px); }
.bdl-go-ts {
margin-top: 2px; padding: 9px 12px; border: none; border-radius: 10px;
background: #1a1a1a; color: #fff; font-size: 13px; font-weight: 600;
cursor: pointer; transition: background .15s;
}
.bdl-go-ts:hover { background: #333; }
.bdl-go-ts:disabled { background: #c7c7cc; cursor: not-allowed; }
/* 滚动条美化 */
.bdl-tasks::-webkit-scrollbar { width: 6px; }
.bdl-tasks::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 999px; }
.bdl-tasks::-webkit-scrollbar-track { background: transparent; }