-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
314 lines (274 loc) · 7.2 KB
/
Copy pathstyles.css
File metadata and controls
314 lines (274 loc) · 7.2 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
/* ============================================
Notes Bridge — Settings Styles
============================================ */
/* ---------- Section Layout ---------- */
.aie-settings-section {
margin-bottom: 2.5rem;
}
.aie-settings-section > .setting-item-heading {
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--background-modifier-border);
}
.aie-settings-section > .setting-item-heading .setting-item-name {
font-size: 1.15em;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text-normal);
}
/* ---------- Providers Section ---------- */
.aie-providers-intro {
margin: 0 0 1.25rem 0;
color: var(--text-muted);
font-size: 0.9em;
line-height: 1.6;
}
.aie-providers-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* ---------- Provider Cards ---------- */
.aie-provider-card {
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-primary);
overflow: hidden;
}
.aie-provider-card[open] {
border-color: var(--background-modifier-border-hover);
}
/* Disabled provider cards get a muted look */
.aie-provider-card[data-enabled="false"] {
opacity: 0.65;
}
/* ---------- Card Header / Summary ---------- */
.aie-provider-card summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.875rem 1rem;
cursor: pointer;
user-select: none;
list-style: none;
}
.aie-provider-card summary::-webkit-details-marker {
display: none;
}
.aie-provider-card summary:focus-visible {
outline: 2px solid var(--interactive-accent);
outline-offset: -2px;
}
/* Subtle hover affordance for the clickable card header */
.aie-provider-card summary {
transition: background-color 80ms ease;
}
.aie-provider-card summary:hover {
background-color: var(--background-modifier-hover);
}
/* Summary content (icon + title + status) */
.aie-provider-summary-content {
display: flex;
align-items: center;
gap: 0.75rem;
flex: 1;
min-width: 0;
}
/* Provider icon wrapper */
.aie-provider-icon {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 4px;
background: var(--background-secondary);
color: var(--text-muted);
flex-shrink: 0;
}
.aie-provider-icon svg {
width: 1.125rem;
height: 1.125rem;
stroke-width: 2;
}
/* Provider info wrapper (title container) */
.aie-provider-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.15rem;
}
/* Provider title */
.aie-provider-title {
font-weight: 500;
font-size: 0.95rem;
color: var(--text-normal);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ---------- Expand / Collapse Chevron ---------- */
.aie-provider-expand-icon {
display: flex;
align-items: center;
justify-content: center;
width: 1.5rem;
height: 1.5rem;
color: var(--text-muted);
flex-shrink: 0;
}
.aie-provider-card[open] .aie-provider-expand-icon {
transform: rotate(180deg);
color: var(--text-normal);
}
/* ---------- Provider Body ---------- */
.aie-provider-body {
border-top: 1px solid var(--background-modifier-border);
background: var(--background-primary-alt);
}
/* ---------- Settings within Cards ---------- */
.aie-provider-body > .setting-item {
padding: 0.75rem 1rem;
margin: 0;
border-bottom: 1px solid var(--background-modifier-border);
}
.aie-provider-body > .setting-item:last-child {
border-bottom: none;
}
/* Setting item name and description within cards */
.aie-provider-body .setting-item-name {
font-weight: 500;
font-size: 0.9em;
}
.aie-provider-body .setting-item-description {
font-size: 0.82em;
color: var(--text-muted);
line-height: 1.4;
}
/* ---------- Intro Paragraphs inside Cards ---------- */
.aie-provider-body > p {
margin: 0;
padding: 0.75rem 1rem;
color: var(--text-muted);
font-size: 0.85em;
line-height: 1.6;
border-bottom: 1px solid var(--background-modifier-border);
}
.aie-provider-body > p a {
color: var(--text-accent);
text-decoration: none;
font-weight: 500;
}
/* ---------- Inputs and Selects ---------- */
.aie-provider-body input[type="text"],
.aie-provider-body input[type="password"],
.aie-provider-body textarea,
.aie-provider-body select {
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
background: var(--background-primary);
color: var(--text-normal);
}
.aie-provider-body input[type="text"]:focus,
.aie-provider-body input[type="password"]:focus,
.aie-provider-body textarea:focus,
.aie-provider-body select:focus {
border-color: var(--interactive-accent);
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
outline: none;
}
/* ---------- Textarea in Cards ---------- */
.aie-provider-body textarea {
font-family: var(--font-monospace);
font-size: 0.85em;
min-height: 4rem;
}
/* ---------- Dropdown in Cards ---------- */
.aie-provider-body select {
cursor: pointer;
}
/* ---------- Section Card ---------- */
.aie-section-card {
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-primary);
overflow: hidden;
}
/* ---------- General Settings (non-provider) ---------- */
.aie-section-card > .setting-item {
padding: 0.625rem 1rem;
margin: 0;
border-bottom: 1px solid var(--background-modifier-border);
}
.aie-section-card > .setting-item:last-of-type {
border-bottom: none;
}
/* ---------- Remote Target Selector (folder/notebook/knowledge-base picker) ---------- */
/* Value span + Choose/Clear buttons in a provider card control area.
Long target names truncate with an ellipsis (full name still readable
via the span's title tooltip), and the buttons never get pushed
off-screen, even on narrow settings panels. */
.aie-target-control {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.4rem;
justify-content: flex-end;
min-width: 0;
}
.aie-remote-target-value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 12rem;
min-width: 0;
color: var(--text-muted);
font-size: 0.85em;
}
.aie-target-control button {
flex-shrink: 0;
}
/* Keep text inputs within provider cards from overflowing on narrow panels */
.aie-provider-body .setting-item-control input[type="text"],
.aie-provider-body .setting-item-control input[type="password"] {
min-width: 0;
max-width: 100%;
}
/* ---------- Enabled toggle in the provider card header ---------- */
.aie-provider-enabled {
display: flex;
align-items: center;
flex-shrink: 0;
margin-right: 0.25rem;
cursor: pointer;
}
/* Incomplete-configuration hint: a scannable warning badge under the title */
.aie-provider-status {
display: inline-flex;
align-items: center;
gap: 0.3rem;
margin-top: 0.2rem;
padding: 0.1rem 0.45rem;
border-radius: 10px;
font-size: 0.72em;
line-height: 1.4;
align-self: flex-start;
}
.aie-provider-status--incomplete {
color: var(--text-warning, var(--text-muted));
background: rgba(180, 130, 0, 0.14);
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
.aie-provider-status--incomplete {
background: color-mix(in srgb, var(--text-warning, var(--text-muted)) 14%, transparent);
}
}
.aie-provider-status--incomplete::before {
content: "⚠";
font-size: 0.95em;
line-height: 1;
}
/* Hide a control (e.g. the target-row Clear button) without inline styles */
.aie-is-hidden { display: none !important; }