返回 DeepSeek-Reasonix
DisclosureRow.css
根目录 / desktop / frontend / src / components / harness-chat / DisclosureRow.css
1 /* Ported from DeepSeek Harness c291e7961a; MIT, see LICENSE. */
2 /* Shared disclosure header: [16px leading] gap 6 [title 13/24] at the default
3 size. The Settings font-size preference moves the row through the
4 body-published axis: title size follows the secondary tier
5 (--dsh-content-font-size-secondary: one step under the body — setting −1 at
6 ≤14, setting −2 above), and the row height, leading box, and glyph edge
7 shift by the body px delta so the icon keeps its optical share of the
8 line. */
9
10 .dsh-DisclosureRow-root {
11 display: flex;
12 flex-direction: column;
13 width: 100%;
14 min-width: 0;
15 }
16
17 .dsh-DisclosureRow-row {
18 position: relative;
19 overflow: hidden;
20 display: flex;
21 align-items: center;
22 height: calc(24px + var(--dsh-content-font-delta, 0px));
23 min-width: 0;
24 }
25
26 .dsh-DisclosureRow-row[data-expandable] {
27 cursor: pointer;
28 }
29
30 .dsh-DisclosureRow-leading {
31 position: relative;
32 flex: none;
33 width: calc(16px + var(--dsh-content-font-delta, 0px));
34 height: calc(16px + var(--dsh-content-font-delta, 0px));
35 display: inline-flex;
36 align-items: center;
37 justify-content: center;
38 margin-right: 6px;
39 padding: 0;
40 border: none;
41 background: none;
42 color: var(--dsw-alias-label-tertiary);
43 }
44
45 /* Flow-row glyphs render at 14px inside the 16px box; the CSS edge overrides
46 each svg's own width/height attributes so every registered icon scales
47 without a per-callsite size prop. StateDot (its svg carries data-state)
48 stays at its fixed figma size — it is a status mark, not text furniture. */
49 .dsh-DisclosureRow-leading svg:not([data-state]) {
50 width: calc(14px + var(--dsh-content-font-delta, 0px));
51 height: calc(14px + var(--dsh-content-font-delta, 0px));
52 }
53
54 button.leading {
55 cursor: pointer;
56 }
57
58 .dsh-DisclosureRow-iconIdle {
59 display: inline-flex;
60 opacity: 1;
61 transition: opacity 100ms ease;
62 }
63
64 .dsh-DisclosureRow-chevronHover {
65 position: absolute;
66 inset: 0;
67 margin: auto;
68 opacity: 0;
69 transition: opacity 100ms ease;
70 }
71
72 .dsh-DisclosureRow-row:hover .dsh-DisclosureRow-iconIdle {
73 opacity: 0;
74 }
75
76 .dsh-DisclosureRow-row:hover .dsh-DisclosureRow-chevronHover {
77 opacity: 1;
78 }
79
80 .dsh-DisclosureRow-title {
81 flex: none;
82 font-size: var(--dsh-content-font-size-secondary, 13px);
83 line-height: calc(24px + var(--dsh-content-font-delta, 0px));
84 color: var(--dsw-alias-label-secondary);
85 }
86
86 lines CSS