-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager.css
More file actions
375 lines (325 loc) · 7.12 KB
/
manager.css
File metadata and controls
375 lines (325 loc) · 7.12 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
:root {
color-scheme: light;
--card: rgba(255, 255, 255, 0.94);
--text: #12213f;
--muted: #5c6b88;
--primary: #2563eb;
--shadow: 0 18px 45px rgba(28, 53, 112, 0.12);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 1020px;
min-height: 720px;
background:
radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 34%),
radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 28%),
linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
color: var(--text);
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
button,
input {
font: inherit;
}
.manager-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.manager-header {
display: grid;
/* 优化:固定左侧品牌宽度,中间弹性收缩,右侧自适应按钮 */
grid-template-columns: 240px minmax(0, 1fr) auto;
gap: 24px;
align-items: center;
padding: 22px 24px 18px;
border-bottom: 1px solid rgba(37, 99, 235, 0.08);
background: linear-gradient(180deg, rgba(246, 249, 255, 0.96), rgba(246, 249, 255, 0.84));
backdrop-filter: blur(18px);
}
.manager-brand {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
}
.manager-brand__logo {
width: 46px;
height: 46px;
border-radius: 14px;
box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
flex-shrink: 0;
}
.manager-brand__text {
min-width: 0;
}
.manager-brand__title {
font-size: 22px;
font-weight: 800;
letter-spacing: -0.02em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.manager-brand__subtitle {
margin-top: 2px;
font-size: 12px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.manager-hero {
min-width: 0; /* 允许在 Grid 单元格内收缩 */
padding: 16px 18px;
border-radius: 22px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 255, 0.98));
border: 1px solid rgba(255, 255, 255, 0.9);
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}
.manager-hero::before {
content: '';
position: absolute;
inset: 0 auto 0 0;
width: 5px;
background: var(--group-color, #2563eb);
}
.group-preview {
display: flex; /* 改为 flex 以更好处理子元素溢出 */
align-items: center;
gap: 10px;
max-width: 100%;
padding: 9px 14px;
border-radius: 999px;
background: rgba(37, 99, 235, 0.08);
color: #0f172a;
font-size: 16px;
font-weight: 800;
width: fit-content;
}
.group-preview__mark {
flex: 0 0 auto;
font-size: 16px;
line-height: 1;
}
.group-preview__label {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.manager-hero__meta {
margin-top: 10px;
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.manager-hero__dot {
opacity: 0.55;
}
.manager-actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
flex-shrink: 0;
}
button {
appearance: none;
border: 1px solid rgba(37, 99, 235, 0.12);
background: rgba(255, 255, 255, 0.94);
color: var(--text);
padding: 11px 14px;
border-radius: 14px;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}
button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
button:disabled {
opacity: 0.48;
cursor: not-allowed;
box-shadow: none;
}
.primary-soft {
background: rgba(37, 99, 235, 0.08);
color: var(--primary);
}
.danger-soft {
background: rgba(225, 29, 72, 0.08);
color: #be123c;
}
.manager-main {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
padding: 18px 24px 24px;
flex: 1 1 auto;
min-height: 0;
}
.manager-section {
display: flex;
flex-direction: column;
min-height: 0;
padding: 18px;
border-radius: 24px;
background: var(--card);
border: 1px solid rgba(255, 255, 255, 0.9);
box-shadow: var(--shadow);
}
.manager-section__head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
}
.manager-section__head h2 {
margin: 0;
font-size: 17px;
font-weight: 800;
letter-spacing: -0.02em;
}
.manager-section__hint {
margin: 4px 0 0;
font-size: 12px;
color: var(--muted);
}
.manager-search {
margin: 14px 0 12px;
}
.manager-search input {
width: 100%;
padding: 12px 14px;
border-radius: 14px;
border: 1px solid rgba(37, 99, 235, 0.14);
background: rgba(255, 255, 255, 0.96);
outline: none;
}
.manager-search input:focus {
border-color: rgba(37, 99, 235, 0.34);
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.tab-list {
display: grid;
gap: 12px;
overflow: auto;
padding-right: 4px;
}
.tab-row {
display: grid;
grid-template-columns: auto auto minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
padding: 12px;
border-radius: 18px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
border: 2px solid transparent;
box-shadow: 0 12px 26px rgba(28, 53, 112, 0.10);
}
.tab-row.selected {
border-color: rgba(37, 99, 235, 0.48);
background: linear-gradient(180deg, rgba(237, 245, 255, 0.98), rgba(232, 242, 255, 0.98));
}
.tab-row__toggle {
width: 18px;
height: 18px;
border-radius: 999px;
border: 2px solid rgba(37, 99, 235, 0.28);
background: white;
padding: 0;
box-shadow: none;
}
.tab-row.selected .tab-row__toggle {
background: radial-gradient(circle at center, rgba(37, 99, 235, 0.96) 0 45%, transparent 47%);
border-color: rgba(37, 99, 235, 0.7);
}
.tab-row__icon {
width: 22px;
height: 22px;
border-radius: 7px;
}
.tab-row__body {
min-width: 0;
}
.tab-row__title {
font-size: 14px;
font-weight: 700;
line-height: 1.35;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.tab-row__meta {
margin-top: 6px;
color: var(--muted);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tab-row__actions {
display: flex;
gap: 8px;
}
.action-quiet,
.action-tint,
.action-danger {
padding: 8px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 700;
box-shadow: none;
}
.action-quiet {
background: rgba(255, 255, 255, 0.96);
}
.action-tint {
background: rgba(37, 99, 235, 0.08);
color: var(--primary);
}
.action-danger {
background: rgba(225, 29, 72, 0.08);
color: #be123c;
}
.empty-state {
margin-top: 8px;
padding: 22px 18px;
text-align: center;
border-radius: 18px;
border: 1px dashed rgba(37, 99, 235, 0.16);
background: rgba(248, 250, 255, 0.88);
}
.empty-state__title {
font-size: 14px;
font-weight: 800;
}
.empty-state__hint {
margin-top: 6px;
font-size: 12px;
color: var(--muted);
line-height: 1.5;
}
.tab-list > .empty-state {
grid-column: 1 / -1;
}
.hidden {
display: none !important;
}