-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathstyles.css
More file actions
439 lines (370 loc) · 8.7 KB
/
Copy pathstyles.css
File metadata and controls
439 lines (370 loc) · 8.7 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
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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
/* 通用样式 */
/* 组件样式 - 从JavaScript中迁移的样式 */
/* 文本区域样式 */
.cs-textarea {
width: 300px !important;
height: 60px !important;
}
/* 粗体警告文本 */
.cs-warning-bold {
font-weight: bold;
}
/* 按钮容器间距 */
.cs-button-container-gap {
gap: 6px;
}
/* 相对定位容器 */
.cs-relative-container {
position: relative;
}
/* 通用输入框样式 */
.cs-input-with-icon {
padding-right: 30px !important;
}
.cs-input-wide {
width: 300px !important;
}
.cs-input-multiline {
width: 300px !important;
height: 60px !important;
}
/* 图标样式 */
.cs-eye-icon {
font-size: 16px;
color: var(--text-normal);
cursor: pointer;
}
/* 按钮容器样式 */
.cs-button-container {
display: flex;
margin-left: 8px;
}
/* 按钮样式 */
.cs-button {
padding: 2px 6px;
font-size: 11px;
height: 24px;
cursor: pointer;
}
.cs-primary-button {
background-color: var(--interactive-accent);
color: var(--text-on-accent);
}
.cs-secondary-button {
background-color: var(--interactive-accent-hover);
color: var(--text-on-accent);
}
/* 警告文本样式 */
.cs-warning-text {
color: var(--text-error);
}
.cs-small-warning-text {
color: var(--text-error);
font-size: 0.7em;
}
/* 值显示样式 */
.cs-value-display {
margin-right: 10px;
}
/* 高亮文本 */
.cs-highlight {
font-weight: bold;
color: var(--text-accent);
}
.cloud-sync-settings {
margin-top: 1em;
margin-bottom: 1em;
padding: 1em;
border-radius: 5px;
background-color: var(--background-secondary);
}
.cloud-sync-setting-item {
margin-bottom: 15px;
}
.cloud-sync-divider {
margin: 20px 0;
border-top: 1px solid var(--background-modifier-border);
}
/* 进度条样式 */
.cloud-sync-progress-container {
width: 100%;
height: 8px;
background-color: var(--background-modifier-border);
border-radius: 4px;
margin: 10px 0;
overflow: hidden;
}
.cloud-sync-progress-bar {
height: 100%;
background-color: var(--interactive-accent);
border-radius: 4px;
transition: width 0.3s ease;
}
/* 表单样式 */
.cloud-sync-form-group {
display: flex;
flex-direction: column;
margin-bottom: 15px;
}
.cloud-sync-form-group .setting-item-info {
margin-bottom: 5px;
}
.cloud-sync-form-group input,
.cloud-sync-form-group select {
width: 100%;
}
/* 必填字段标记 */
.cloud-sync-required::after {
content: " *";
color: var(--color-red);
}
/* 测试连接按钮 */
.cloud-sync-test-button {
margin-top: 10px;
}
/* 状态指示器 */
.cloud-sync-status {
margin-top: 0.5em;
font-size: 0.85em;
color: var(--text-muted);
}
.cloud-sync-status-success {
color: var(--text-success);
}
.cloud-sync-status-error {
color: var(--text-error);
}
.cloud-sync-status-loading {
color: var(--text-normal);
}
/* 警告提示 */
.cloud-sync-warning {
color: var(--text-warning);
font-size: 0.85em;
margin-top: 0.5em;
}
/* 密码显示/隐藏按钮 */
.eye-icon-container {
position: absolute;
right: 0.5em;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
opacity: 0.7;
width: 16px;
height: 16px;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
background-repeat: no-repeat;
background-position: center;
z-index: 1;
font-size: 16px;
color: var(--text-normal);
pointer-events: auto;
}
.eye-icon-container:hover {
opacity: 1;
}
/* 按钮样式 */
.cloud-sync-button {
border-radius: 4px;
padding: 2px 6px;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
font-size: 11px;
min-width: auto;
height: 24px;
line-height: 1;
}
/* 输入框容器相对定位 */
.cloud-sync-input-container {
position: relative;
}
/* 输入框右侧留空间 */
.cloud-sync-password-input {
padding-right: 30px;
}
/* 标签样式 */
.cloud-sync-settings h3 {
margin-top: 0;
margin-bottom: 1em;
padding-bottom: 0.5em;
border-bottom: 1px solid var(--background-modifier-border);
}
.cloud-sync-settings h4 {
margin-top: 1.5em;
margin-bottom: 0.5em;
color: var(--text-accent);
}
/* 设置项分隔线 */
.setting-item:not(:last-child) {
border-bottom: 1px solid var(--background-modifier-border);
}
/* 子设置部分样式 */
.cloud-sync-subsection {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
padding-top: 0 !important;
}
.cloud-sync-subtitle {
font-size: 0.95rem !important;
color: var(--color-accent) !important;
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
font-weight: 600 !important;
}
/* 同步间隔显示样式 */
.sync-interval-display {
display: inline-block;
min-width: 1.5em;
text-align: center;
font-weight: 600;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
padding: 0.2em 0.5em;
border-radius: 1em;
font-size: 0.85em;
}
/* 坚果云特定设置样式 */
.cloud-sync-jianguoyun-settings {
margin: 1em 0;
padding: 1em;
border-radius: 5px;
background-color: var(--background-primary-alt);
border-left: 3px solid var(--interactive-accent);
}
.cloud-sync-jianguoyun-header {
margin-bottom: 0.75em;
}
.cloud-sync-jianguoyun-header h4 {
font-size: 1em !important;
font-weight: 600 !important;
color: var(--text-accent) !important;
margin: 0 0 0.5em 0 !important;
}
.cloud-sync-info-panel {
background-color: var(--background-secondary);
border-radius: 4px;
padding: 0.75em;
margin-bottom: 1em;
}
.cloud-sync-info-text {
font-size: 0.9em !important;
color: var(--text-normal) !important;
margin: 0 !important;
line-height: 1.5 !important;
}
/* 高亮显示提示文本 */
.cloud-sync-info-text strong,
.cloud-sync-info-text b,
.cloud-sync-info-text .highlight,
.cloud-sync-tip-text .highlight {
color: var(--text-error) !important;
font-weight: 600 !important;
background-color: rgba(255, 0, 0, 0.05) !important;
padding: 1px 3px !important;
border-radius: 3px !important;
display: inline-block !important;
}
/* 确保坚果云设置项样式一致性 */
.cloud-sync-jianguoyun-setting {
padding: 0.75em 0 !important;
}
.cloud-sync-jianguoyun-setting .setting-item-info {
font-size: 0.9em !important;
}
.cloud-sync-jianguoyun-setting .setting-item-name {
font-size: 0.95em !important;
font-weight: 500 !important;
}
.cloud-sync-jianguoyun-setting .setting-item-description {
font-size: 0.85em !important;
}
/* 提示信息样式 */
.cloud-sync-other-provider {
display: flex;
align-items: flex-start;
padding: 0.75em;
background-color: var(--background-primary-alt);
border-radius: 4px;
margin: 1em 0;
border-left: 3px solid var(--text-error);
}
.cloud-sync-tip-icon {
font-size: 1em;
margin-right: 0.5em;
flex-shrink: 0;
color: var(--text-error) !important;
}
.cloud-sync-tip-text {
font-size: 0.9em !important;
color: var(--text-normal) !important;
margin: 0 !important;
line-height: 1.5 !important;
}
.cloud-sync-tip-text .highlight {
color: var(--text-error) !important;
font-weight: 600 !important;
}
/* 响应式样式调整,确保在各种窗口大小下保持一致 */
@media (max-width: 768px) {
.cloud-sync-jianguoyun-settings,
.cloud-sync-other-provider {
padding: 0.75em;
}
.cloud-sync-jianguoyun-header h4 {
font-size: 0.95em !important;
}
.cloud-sync-info-text,
.cloud-sync-tip-text {
font-size: 0.85em !important;
}
.cloud-sync-jianguoyun-setting .setting-item-name {
font-size: 0.9em !important;
}
.cloud-sync-jianguoyun-setting .setting-item-description {
font-size: 0.8em !important;
}
}
/* 开发中的云盘服务样式 */
.cloud-sync-developing {
position: relative;
opacity: 0.7;
}
.cloud-sync-developing::after {
content: "开发中";
position: absolute;
top: 0;
right: 0;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
transform: translate(-5px, 0);
}
.cloud-sync-developing .setting-item-description {
color: var(--text-faint);
font-style: italic;
}
.cloud-sync-developing .toggle-container {
opacity: 0.5;
}
/* 功能开发中提示框样式 */
.cloud-sync-developing-notice {
background-color: var(--background-modifier-border);
border-left: 4px solid var(--interactive-accent);
padding: 10px 15px;
margin-bottom: 15px;
border-radius: 4px;
display: flex;
align-items: center;
}
.cloud-sync-developing-notice .cloud-sync-tip-icon {
font-size: 20px;
margin-right: 10px;
}
.cloud-sync-developing-notice .cloud-sync-tip-text {
margin: 0;
font-weight: 500;
color: var(--text-muted);
}