返回 DeepSeek-Reasonix
PresentedFiles.css
根目录 / desktop / frontend / src / components / PresentedFiles.css
1 .presented-files { display: grid; gap: 8px; margin-top: 2px; }
2 .presented-files__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
3
4 .turn-files { display: grid; overflow: hidden; margin-top: 8px; border: 1px solid var(--border-soft); border-radius: 12px; background: color-mix(in srgb, var(--bg-elev) 92%, transparent); box-shadow: 0 1px 2px #00000008; }
5 .turn-files__head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; border: 0; background: color-mix(in srgb, var(--bg-soft) 84%, transparent); color: inherit; text-align: left; cursor: pointer; }
6 .turn-files__head:hover { background: var(--bg-soft); }
7 .turn-files__icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--accent-contrast, #fff); }
8 .turn-files__summary { display: grid; min-width: 0; gap: 3px; }
9 .turn-files__summary strong { font-size: 14px; font-weight: 650; }
10 .turn-files__summary > span { font-family: var(--font-mono); font-size: 12px; }
11 .turn-files__added { color: var(--ok); }
12 .turn-files__removed { color: var(--danger); }
13 .turn-files__list { display: grid; margin: 0; padding: 5px 10px; list-style: none; }
14 .turn-files__list li { min-width: 0; }
15 .turn-files__list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--fg-dim); font-family: var(--font-mono); font-size: 12px; text-align: left; cursor: pointer; }
16 .turn-files__list button:hover { background: var(--bg-soft); color: var(--fg); }
17 .turn-files__list button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
18 .turn-files__error { margin: 0; padding: 0 14px 10px; color: var(--danger); font-size: 12px; }
19
20 .presented-file { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; border: 1px solid var(--border-soft); border-radius: 12px; background: color-mix(in srgb, var(--bg-elev) 92%, transparent); box-shadow: 0 1px 2px #00000008; }
21 .presented-file:hover { border-color: var(--border); background: var(--bg-soft); }
22 .presented-file__main { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 8px 10px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
23 .presented-file__icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-soft); color: var(--fg-dim); }
24 .presented-file__copy { display: grid; min-width: 0; gap: 2px; }
25 .presented-file__copy strong, .presented-file__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
26 .presented-file__copy strong { font-size: 13px; font-weight: 600; }
27 .presented-file__copy small { color: var(--fg-faint); font-size: 12px; }
28 .presented-file__split { position: relative; display: flex; align-self: center; overflow: visible; margin-right: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--button-bg, var(--bg-soft)); }
29 .presented-file__open, .presented-file__more { height: 30px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
30 .presented-file__open { padding: 0 10px; border-radius: 7px 0 0 7px; font-size: 12px; }
31 .presented-file__more { display: grid; place-items: center; width: 29px; padding: 0; border-left: 1px solid var(--border); border-radius: 0 7px 7px 0; }
32 .presented-file__open:hover, .presented-file__more:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
33 .presented-file__open:disabled, .presented-file__more:disabled { cursor: default; opacity: .55; }
34 .presented-file__error { grid-column: 1 / -1; margin: 0; padding: 0 12px 9px; color: var(--danger); font-size: 12px; }
35 .presented-files__toggle { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 6px; padding: 3px 6px; border: 0; background: transparent; color: var(--fg-faint); font-size: 12px; cursor: pointer; }
36
37 @container (max-width: 640px) { .presented-files__grid { grid-template-columns: 1fr; } }
38
38 lines CSS