@morozinc/opencode-project-filesystem-plugin 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,371 @@
1
+ .opf {
2
+ --opf-border: var(--v2-border-border-base);
3
+ --opf-muted: var(--v2-text-text-muted);
4
+ --opf-bg: var(--v2-background-bg-base);
5
+ --opf-layer: var(--v2-background-bg-layer-01);
6
+ --opf-hover: var(--v2-overlay-simple-overlay-hover);
7
+ --opf-selected: var(--v2-overlay-simple-overlay-pressed);
8
+ --opf-accent: var(--v2-text-text-accent);
9
+ --opf-code-font: 12px / 21px var(--font-family-mono, monospace);
10
+ display: grid;
11
+ grid-template-columns: 38px clamp(115px, 27%, 280px) minmax(0, 1fr);
12
+ height: 100%;
13
+ min-height: 0;
14
+ overflow: hidden;
15
+ color: var(--v2-text-text-base);
16
+ background: var(--opf-bg);
17
+ font-size: 13px;
18
+ container-type: inline-size;
19
+ }
20
+
21
+ .opf button {
22
+ cursor: pointer;
23
+ }
24
+
25
+ .opf :focus-visible {
26
+ outline: 2px solid var(--v2-border-border-focus);
27
+ outline-offset: -2px;
28
+ }
29
+
30
+ .opf-rail,
31
+ .opf-sidebar {
32
+ min-width: 0;
33
+ min-height: 0;
34
+ border-inline-end: 1px solid var(--opf-border);
35
+ background: var(--opf-layer);
36
+ }
37
+
38
+ .opf-rail {
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: center;
42
+ gap: 4px;
43
+ padding-block: 5px;
44
+ }
45
+
46
+ .opf-icon-button {
47
+ display: grid;
48
+ place-items: center;
49
+ flex: none;
50
+ width: 30px;
51
+ height: 30px;
52
+ border-radius: 5px;
53
+ color: var(--opf-muted);
54
+ }
55
+
56
+ .opf-icon-button:hover,
57
+ .opf-row:hover,
58
+ .opf-tab:hover {
59
+ background-color: var(--opf-hover);
60
+ }
61
+
62
+ .opf-icon-button[aria-pressed="true"],
63
+ .opf-row[aria-current="true"] {
64
+ background-color: var(--opf-selected);
65
+ color: var(--v2-text-text-base);
66
+ }
67
+
68
+ .opf-icon-button[aria-pressed="true"] {
69
+ color: var(--opf-accent);
70
+ }
71
+
72
+ .opf-sidebar,
73
+ .opf-editors,
74
+ .opf-editor {
75
+ display: flex;
76
+ flex-direction: column;
77
+ min-width: 0;
78
+ min-height: 0;
79
+ }
80
+
81
+ .opf-heading {
82
+ display: flex;
83
+ flex: none;
84
+ align-items: center;
85
+ gap: 8px;
86
+ height: 34px;
87
+ padding-inline: 9px;
88
+ border-bottom: 1px solid var(--opf-border);
89
+ font-size: 12px;
90
+ font-weight: 600;
91
+ white-space: nowrap;
92
+ }
93
+
94
+ .opf-heading.opf-truncate {
95
+ display: block;
96
+ line-height: 33px;
97
+ }
98
+
99
+ .opf-count,
100
+ .opf-directory,
101
+ .opf-note {
102
+ color: var(--opf-muted);
103
+ }
104
+
105
+ .opf-refresh {
106
+ width: 26px;
107
+ height: 26px;
108
+ margin-inline-start: auto;
109
+ }
110
+
111
+ .opf-sidebar-scroll,
112
+ .opf-editor-scroll,
113
+ .opf-diff-scroll {
114
+ min-height: 0;
115
+ min-width: 0;
116
+ overflow: auto;
117
+ overscroll-behavior: contain;
118
+ }
119
+
120
+ .opf-sidebar-scroll {
121
+ padding: 4px;
122
+ }
123
+
124
+ .opf-tree,
125
+ .opf-tree ul,
126
+ .opf-changes {
127
+ margin: 0;
128
+ padding: 0;
129
+ list-style: none;
130
+ }
131
+
132
+ .opf-row {
133
+ display: flex;
134
+ align-items: center;
135
+ gap: 5px;
136
+ width: 100%;
137
+ min-height: 26px;
138
+ padding-inline: calc(5px + 13px * var(--opf-depth, 0)) 5px;
139
+ border-radius: 4px;
140
+ text-align: start;
141
+ }
142
+
143
+ .opf-row > svg {
144
+ flex: none;
145
+ }
146
+
147
+ .opf-tree-file {
148
+ padding-inline-start: calc(24px + 13px * var(--opf-depth));
149
+ }
150
+
151
+ .opf-root {
152
+ font-weight: 650;
153
+ }
154
+
155
+ .opf-truncate {
156
+ min-width: 0;
157
+ overflow: hidden;
158
+ text-overflow: ellipsis;
159
+ white-space: nowrap;
160
+ }
161
+
162
+ .opf-directory {
163
+ flex: 1 3 auto;
164
+ font-size: 11px;
165
+ }
166
+
167
+ .opf-change-name {
168
+ flex: none;
169
+ max-width: calc(100% - 21px);
170
+ }
171
+
172
+ .opf-status {
173
+ display: inline-grid;
174
+ place-items: center;
175
+ flex: none;
176
+ width: 16px;
177
+ height: 16px;
178
+ border-radius: 3px;
179
+ font: 650 10px / 1 var(--v2-font-family-sans, sans-serif);
180
+ text-align: center;
181
+ background: var(--v2-state-bg-info);
182
+ color: var(--v2-state-fg-info);
183
+ }
184
+
185
+ .opf-status.added {
186
+ background: var(--v2-state-bg-success);
187
+ color: var(--v2-state-fg-success);
188
+ }
189
+
190
+ .opf-status.deleted {
191
+ background: var(--v2-state-bg-danger);
192
+ color: var(--v2-state-fg-danger);
193
+ }
194
+
195
+ .opf-tabs {
196
+ display: flex;
197
+ flex: 0 0 36px;
198
+ min-width: 0;
199
+ overflow: auto hidden;
200
+ border-bottom: 1px solid var(--opf-border);
201
+ background: var(--opf-layer);
202
+ scrollbar-width: thin;
203
+ }
204
+
205
+ .opf-tab {
206
+ display: flex;
207
+ flex: none;
208
+ min-width: 0;
209
+ max-width: min(230px, 80%);
210
+ align-items: center;
211
+ border-inline-end: 1px solid var(--opf-border);
212
+ }
213
+
214
+ .opf-tab.opf-selected {
215
+ background: var(--opf-bg);
216
+ box-shadow: inset 0 -2px var(--opf-accent);
217
+ }
218
+
219
+ .opf-tab-select {
220
+ display: flex;
221
+ align-items: center;
222
+ gap: 6px;
223
+ min-width: 0;
224
+ height: 100%;
225
+ padding-inline: 9px 3px;
226
+ text-align: start;
227
+ font-size: 12px;
228
+ }
229
+
230
+ .opf-tab-select > svg {
231
+ flex: none;
232
+ }
233
+
234
+ .opf-close {
235
+ width: 22px;
236
+ height: 22px;
237
+ margin-inline-end: 4px;
238
+ }
239
+
240
+ .opf-editor {
241
+ flex: 1;
242
+ }
243
+
244
+ .opf-editor-scroll,
245
+ .opf-diff {
246
+ flex: 1;
247
+ }
248
+
249
+ .opf-path {
250
+ flex: none;
251
+ padding: 6px 9px;
252
+ overflow: auto hidden;
253
+ scrollbar-width: thin;
254
+ border-top: 1px solid var(--opf-border);
255
+ background: var(--opf-layer);
256
+ color: var(--opf-muted);
257
+ font-size: 12px;
258
+ white-space: nowrap;
259
+ user-select: text;
260
+ }
261
+
262
+ .opf-note {
263
+ padding: 10px;
264
+ font-size: 12px;
265
+ }
266
+
267
+ .opf-empty {
268
+ display: grid;
269
+ place-items: center;
270
+ flex: 1;
271
+ padding: 16px;
272
+ color: var(--opf-muted);
273
+ text-align: center;
274
+ }
275
+
276
+ .opf-diff {
277
+ display: grid;
278
+ grid-template-columns: repeat(2, minmax(0, 1fr));
279
+ grid-template-rows: 34px minmax(0, 1fr);
280
+ min-height: 0;
281
+ }
282
+
283
+ .opf-diff > :nth-child(odd) {
284
+ border-inline-end: 1px solid var(--opf-border);
285
+ }
286
+
287
+ .opf-source,
288
+ .opf-code-lines {
289
+ width: max-content;
290
+ min-width: 100%;
291
+ font: var(--opf-code-font);
292
+ tab-size: 4;
293
+ }
294
+
295
+ .opf-source {
296
+ display: grid;
297
+ grid-template-columns: auto 1fr;
298
+ }
299
+
300
+ .opf-source pre {
301
+ margin: 0;
302
+ padding-inline: 8px;
303
+ font: inherit;
304
+ white-space: pre;
305
+ }
306
+
307
+ .opf-source .opf-highlighted pre {
308
+ padding-block: 0;
309
+ overflow: visible;
310
+ border: none;
311
+ border-radius: 0;
312
+ background: none;
313
+ font: var(--opf-code-font);
314
+ white-space: pre;
315
+ }
316
+
317
+ .opf-source .opf-highlighted code {
318
+ font: inherit;
319
+ }
320
+
321
+ .opf-source .opf-source-gutter,
322
+ .opf-line-number {
323
+ position: sticky;
324
+ z-index: 1;
325
+ inset-inline-start: 0;
326
+ min-width: 38px;
327
+ padding-inline-end: 8px;
328
+ border-inline-end: 1px solid var(--opf-border);
329
+ background: var(--opf-bg);
330
+ color: var(--opf-muted);
331
+ text-align: end;
332
+ user-select: none;
333
+ }
334
+
335
+ .opf-line {
336
+ display: flex;
337
+ min-height: 21px;
338
+ white-space: pre;
339
+ }
340
+
341
+ .opf-line-number {
342
+ flex: none;
343
+ }
344
+
345
+ .opf-line code {
346
+ padding-inline: 5px 12px;
347
+ font: inherit;
348
+ user-select: text;
349
+ }
350
+
351
+ .opf-line.added {
352
+ background: var(--v2-state-bg-success);
353
+ }
354
+
355
+ .opf-line.removed {
356
+ background: var(--v2-state-bg-danger);
357
+ }
358
+
359
+ .opf-line.blank {
360
+ background: var(--opf-layer);
361
+ }
362
+
363
+ @container (max-width: 350px) {
364
+ .opf-row {
365
+ gap: 3px;
366
+ }
367
+
368
+ .opf-directory {
369
+ display: none;
370
+ }
371
+ }