跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

appearance.css

551 行 · 10.5 KB历史下载
1:root[data-font-smoothing="true"] {
2 -webkit-font-smoothing: antialiased;
3 -moz-osx-font-smoothing: grayscale;
4}
5:root[data-font-smoothing="false"] {
6 -webkit-font-smoothing: auto;
7 -moz-osx-font-smoothing: auto;
8}
9:root[data-translucent="true"],
10:root[data-translucent="true"] body {
11 background: transparent;
12}
13.workbench-main,
14.settings-main {
15 background: var(--paper);
16}
17:root[data-translucent="true"] .workspace-sidebar,
18:root[data-translucent="true"] .settings-sidebar {
19 background: color-mix(in srgb, var(--sidebar) 84%, transparent);
20 backdrop-filter: blur(24px);
21}
22:root[data-translucent="true"] .settings-page {
23 background: transparent;
24}
25button.primary:hover:not(:disabled) {
26 background: color-mix(in srgb, var(--button) 90%, var(--button-ink));
27 border-color: var(--button);
28}
29.appearance-fields {
30 margin: 0;
31 padding: 0;
32 border: 0;
33 min-width: 0;
34}
35.appearance-row {
36 display: flex;
37 align-items: center;
38 justify-content: space-between;
39 gap: 24px;
40 padding: 18px 0;
41 border-bottom: 1px solid var(--line);
42}
43.appearance-row > div:first-child {
44 min-width: 0;
45}
46.appearance-row > div:first-child > span {
47 font-size: 1rem;
48 font-weight: 500;
49}
50.appearance-row p {
51 margin: 6px 0 0;
52 color: var(--muted);
53 font-size: 0.857rem;
54 line-height: 1.6;
55}
56.appearance-control {
57 flex: none;
58}
59.appearance-mode {
60 display: flex;
61 padding: 3px;
62 background: var(--chrome);
63 border-radius: 9px;
64 gap: 2px;
65}
66.appearance-mode button {
67 padding: 7px 10px;
68 border: 0;
69 font-size: 0.857rem;
70 min-height: 30px;
71 background: transparent;
72 color: var(--muted);
73}
74.appearance-mode button[aria-pressed="true"] {
75 background: var(--paper);
76 color: var(--strong);
77 box-shadow: 0 1px 4px #00000012;
78}
79.theme-card-grid {
80 display: grid;
81 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
82 gap: 16px;
83 margin: 24px 0 32px;
84 align-items: start;
85}
86.appearance-theme-card {
87 border: 1px solid var(--line);
88 border-radius: 12px;
89 overflow: hidden;
90 background: var(--paper);
91}
92.appearance-theme-card.current {
93 border-color: var(--focus);
94}
95.theme-card-heading {
96 display: flex;
97 align-items: center;
98 flex-wrap: wrap;
99 gap: 8px;
100 padding: 16px 16px 12px;
101}
102.theme-card-heading strong {
103 font-size: 0.929rem;
104 font-weight: 500;
105}
106.theme-card-heading small {
107 margin-left: auto;
108 font-size: 0.714rem;
109 color: var(--muted);
110}
111.theme-card-heading .inline-select {
112 width: 100%;
113 margin-top: 4px;
114 font-size: 0.929rem;
115}
116.theme-miniature {
117 height: 112px;
118 margin: 0 16px;
119 border-radius: 6px;
120 border: 1px solid var(--line);
121 display: flex;
122 overflow: hidden;
123}
124.mini-sidebar {
125 width: 28%;
126 padding: 16px 9px;
127 display: flex;
128 flex-direction: column;
129 gap: 10px;
130}
131.mini-sidebar i {
132 display: block;
133 height: 4px;
134 background: currentColor;
135 opacity: 0.22;
136 border-radius: 2px;
137}
138.mini-sidebar i:nth-child(2) {
139 width: 65%;
140}
141.mini-content {
142 flex: 1;
143 padding: 22px 16px 12px;
144 display: flex;
145 flex-direction: column;
146 align-items: center;
147 gap: 8px;
148}
149.mini-content > span {
150 width: 60%;
151 height: 5px;
152 background: currentColor;
153 border-radius: 2px;
154}
155.mini-content > span:nth-child(2) {
156 width: 75%;
157 opacity: 0.2;
158 height: 3px;
159}
160.mini-content > div {
161 margin-top: auto;
162 width: 100%;
163 height: 25px;
164 border: 1px solid;
165 border-radius: 5px;
166 display: flex;
167 align-items: center;
168 padding: 5px;
169 gap: 8px;
170}
171.mini-content i {
172 height: 3px;
173 width: 50%;
174 background: currentColor;
175 opacity: 0.18;
176}
177.mini-content b {
178 margin-left: auto;
179 width: 15px;
180 height: 15px;
181 border-radius: 4px;
182}
183.theme-customize {
184 width: 100%;
185 border: 0;
186 border-top: 1px solid var(--line);
187 border-radius: 0;
188 padding: 10px 16px;
189 justify-content: space-between;
190 font-size: 0.786rem;
191 color: var(--muted);
192 background: transparent;
193}
194.theme-customize .rotated {
195 transform: rotate(180deg);
196}
197.theme-options {
198 padding: 16px;
199 border-top: 1px solid var(--line);
200}
201.settings-content
202 .theme-options
203 label:not(.check-line):not(.choice):not(.toggle-row) {
204 font-size: 0.857rem;
205 margin-bottom: 16px;
206}
207.theme-options output {
208 float: right;
209 color: var(--muted);
210}
211.settings-content .theme-options input[type="range"] {
212 height: 20px;
213 padding: 0;
214 border: 0;
215 accent-color: var(--accent);
216}
217.settings-content
218 .theme-options
219 input:not([type="checkbox"]):not([type="range"]) {
220 height: 34px;
221 font-size: 0.857rem;
222}
223.settings-content .appearance-switch {
224 display: flex !important;
225 flex-direction: row !important;
226 align-items: center;
227 justify-content: space-between;
228 gap: 16px !important;
229 margin: 0 !important;
230}
231.appearance-switch input {
232 appearance: none;
233 width: 34px;
234 height: 20px;
235 margin: 0;
236 border-radius: 12px;
237 background: var(--line);
238 position: relative;
239 flex: none;
240}
241.appearance-switch input:after {
242 content: "";
243 position: absolute;
244 width: 14px;
245 height: 14px;
246 top: 3px;
247 left: 3px;
248 background: var(--paper);
249 border-radius: 50%;
250 transition: transform 120ms;
251}
252.appearance-switch input:checked {
253 background: var(--accent);
254}
255.appearance-switch input:checked:after {
256 transform: translateX(14px);
257}
258.font-size-control {
259 display: flex;
260 align-items: center;
261 gap: 8px;
262 color: var(--muted);
263 font-size: 0.857rem;
264}
265.settings-content .font-size-control input {
266 width: 64px;
267 height: 34px;
268 text-align: center;
269}
270.appearance-control .inline-select {
271 min-width: 120px;
272 font-size: 0.929rem;
273}
274.appearance-sample {
275 display: flex;
276 flex-direction: column;
277 gap: 12px;
278 margin-top: 20px;
279 padding: 20px;
280 border: 1px solid var(--line);
281 border-radius: 10px;
282}
283.appearance-sample code {
284 color: var(--link);
285}
286.appearance-import {
287 display: flex;
288 align-items: center;
289 gap: 24px;
290 padding: 24px 0;
291 margin-top: 24px;
292 border-top: 1px solid var(--line);
293}
294.appearance-import > div {
295 flex: 1;
296}
297.appearance-import strong {
298 font-size: 0.929rem;
299 font-weight: 500;
300}
301.appearance-import p {
302 font-size: 0.857rem;
303 color: var(--muted);
304 margin: 7px 0 0;
305 line-height: 1.6;
306}
307.appearance-import button {
308 font-size: 0.857rem;
309}
310.appearance-save-state {
311 display: flex;
312 align-items: center;
313 gap: 7px;
314 color: var(--muted);
315 font-size: 0.857rem;
316 min-height: 32px;
317}
318@media (max-width: 1050px) {
319 .appearance-row:first-child {
320 flex-wrap: wrap;
321 gap: 14px;
322 }
323 .theme-card-grid {
324 gap: 12px;
325 }
326 .appearance-import {
327 flex-wrap: wrap;
328 gap: 12px;
329 }
330}
331@media (max-width: 720px) {
332 .theme-card-grid {
333 grid-template-columns: 1fr;
334 }
335 .appearance-row {
336 gap: 12px;
337 }
338 .appearance-mode button {
339 padding: 7px;
340 }
341}
342/* Theme editing stays compact until a group is expanded. */
343.theme-library {
344 margin-top: 24px;
345 padding: 18px;
346 border: 1px solid var(--line);
347 border-radius: 12px;
348}
349.theme-library-heading {
350 display: flex;
351 justify-content: space-between;
352 align-items: start;
353 gap: 16px;
354 flex-wrap: wrap;
355}
356.theme-library-heading h4 {
357 margin: 0;
358}
359.theme-library-heading p,
360.theme-options-hint {
361 color: var(--muted);
362 font-size: 0.857rem;
363 line-height: 1.6;
364 margin: 6px 0 14px;
365}
366.theme-file-actions {
367 display: flex;
368 gap: 8px;
369}
370.theme-library button {
371 font-size: 0.857rem;
372 white-space: nowrap;
373}
374.theme-library-fields {
375 display: grid;
376 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
377 gap: 8px;
378}
379.theme-library-fields .inline-select,
380.theme-library-fields input {
381 min-width: 0;
382}
383.theme-library-manage {
384 display: flex;
385 align-items: center;
386 gap: 10px;
387 margin-top: 12px;
388 flex-wrap: wrap;
389}
390.theme-library-manage span {
391 flex: 1;
392 min-width: 140px;
393 color: var(--muted);
394 font-size: 0.786rem;
395}
396.theme-library-notice {
397 color: var(--success);
398 font-size: 0.857rem;
399 margin: 12px 0 0;
400}
401.theme-base-colors {
402 padding: 12px 16px;
403}
404.theme-color-field {
405 display: flex;
406 justify-content: space-between;
407 align-items: center;
408 gap: 8px;
409 padding: 7px 0;
410 flex-wrap: wrap;
411}
412.theme-color-field > span {
413 font-size: 0.786rem;
414 flex: 1;
415 min-width: 78px;
416}
417.theme-color-value {
418 display: flex;
419 align-items: center;
420 gap: 6px;
421}
422.settings-content .theme-color-value input[type="text"] {
423 width: 80px;
424 height: 30px;
425 padding: 4px 6px;
426 font: 0.786rem var(--code-font-family);
427}
428.settings-content .theme-color-value input[type="color"] {
429 width: 24px;
430 height: 24px;
431 min-width: 24px;
432 padding: 2px;
433 border: 1px solid var(--line);
434 border-radius: 6px;
435 cursor: var(--control-cursor);
436}
437.theme-color-value input[type="color"]::-webkit-color-swatch-wrapper {
438 padding: 0;
439}
440.theme-color-value input[type="color"]::-webkit-color-swatch {
441 border: 0;
442 border-radius: 3px;
443}
444.theme-color-value .icon-button {
445 width: 24px;
446 min-height: 24px;
447 padding: 4px;
448}
449.theme-color-error {
450 flex-basis: 100%;
451 color: var(--danger);
452 font-size: 0.786rem;
453}
454.theme-color-group {
455 border-top: 1px solid var(--line);
456}
457.theme-color-group summary {
458 padding: 12px 0;
459 font-size: 0.857rem;
460 font-weight: 500;
461 cursor: var(--control-cursor);
462}
463.theme-color-group summary:hover {
464 color: var(--link);
465}
466.theme-terminal-preview {
467 padding: 12px;
468 border: 1px solid var(--line);
469 border-radius: 6px;
470 font: 0.786rem var(--code-font-family);
471 overflow-wrap: anywhere;
472 margin-top: 8px;
473}
474.theme-terminal-preview i {
475 display: inline-block;
476 width: 6px;
477 height: 12px;
478 vertical-align: middle;
479 margin-left: 4px;
480}
481.theme-reset-colors {
482 width: 100%;
483 margin: 12px 0 20px;
484 font-size: 0.786rem;
485}
486.theme-customize svg {
487 transition: transform 120ms;
488}
489@media (max-width: 1050px) {
490 .theme-library-fields {
491 grid-template-columns: minmax(0, 1fr);
492 }
493}
494
495.workspace-sidebar,
496.settings-sidebar {
497 background: var(--sidebar);
498 color: var(--sidebar-ink);
499}
500.sidebar-link,
501.project-disclosure,
502.settings-sidebar nav button {
503 color: var(--sidebar-ink);
504}
505.content-heading,
506.navigation-row,
507.status-bar {
508 background: var(--toolbar);
509 color: var(--toolbar-ink);
510}
511.content-breadcrumb > button,
512.navigation-row .icon-button,
513.heading-actions .icon-button,
514.status-bar button {
515 color: var(--toolbar-ink);
516}
517.appearance-sample {
518 background: var(--chrome-dark);
519}
520.appearance-switch input:checked:after {
521 background: var(--accent-ink);
522}
523.theme-preset-summary {
524 padding: 12px 16px 0;
525}
526.theme-preset-summary p {
527 margin: 0 0 10px;
528 min-height: 3.2em;
529 color: var(--muted);
530 font-size: 0.786rem;
531 line-height: 1.6;
532}
533.theme-status-preview {
534 display: flex;
535 flex-wrap: wrap;
536 align-items: center;
537 justify-content: space-between;
538 gap: 8px;
539 padding: 9px 10px;
540 border: 1px solid var(--line);
541 border-radius: 6px;
542}
543.theme-status-preview span {
544 display: inline-flex;
545 align-items: center;
546 gap: 5px;
547 font-size: 0.786rem;
548}
549.theme-status-preview svg {
550 flex: none;
551}