@theia/notebook 1.53.0-next.55 → 1.53.0-next.64
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.
- package/README.md +30 -30
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +1 -0
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/notebook-frontend-module.d.ts.map +1 -1
- package/lib/browser/notebook-frontend-module.js +2 -0
- package/lib/browser/notebook-frontend-module.js.map +1 -1
- package/lib/browser/service/notebook-cell-editor-service.d.ts +16 -0
- package/lib/browser/service/notebook-cell-editor-service.d.ts.map +1 -0
- package/lib/browser/service/notebook-cell-editor-service.js +53 -0
- package/lib/browser/service/notebook-cell-editor-service.js.map +1 -0
- package/lib/browser/view/notebook-cell-editor.d.ts +2 -0
- package/lib/browser/view/notebook-cell-editor.d.ts.map +1 -1
- package/lib/browser/view/notebook-cell-editor.js +12 -1
- package/lib/browser/view/notebook-cell-editor.js.map +1 -1
- package/lib/browser/view/notebook-code-cell-view.d.ts +2 -0
- package/lib/browser/view/notebook-code-cell-view.d.ts.map +1 -1
- package/lib/browser/view/notebook-code-cell-view.js +6 -1
- package/lib/browser/view/notebook-code-cell-view.js.map +1 -1
- package/lib/browser/view/notebook-markdown-cell-view.d.ts +2 -0
- package/lib/browser/view/notebook-markdown-cell-view.d.ts.map +1 -1
- package/lib/browser/view/notebook-markdown-cell-view.js +8 -3
- package/lib/browser/view/notebook-markdown-cell-view.js.map +1 -1
- package/package.json +7 -7
- package/src/browser/contributions/cell-operations.ts +44 -44
- package/src/browser/contributions/notebook-actions-contribution.ts +379 -379
- package/src/browser/contributions/notebook-cell-actions-contribution.ts +525 -525
- package/src/browser/contributions/notebook-color-contribution.ts +268 -268
- package/src/browser/contributions/notebook-context-keys.ts +113 -113
- package/src/browser/contributions/notebook-label-provider-contribution.ts +85 -85
- package/src/browser/contributions/notebook-outline-contribution.ts +114 -114
- package/src/browser/contributions/notebook-output-action-contribution.ts +82 -82
- package/src/browser/contributions/notebook-preferences.ts +92 -92
- package/src/browser/contributions/notebook-status-bar-contribution.ts +77 -77
- package/src/browser/contributions/notebook-undo-redo-handler.ts +41 -41
- package/src/browser/index.ts +28 -27
- package/src/browser/notebook-cell-resource-resolver.ts +130 -130
- package/src/browser/notebook-editor-widget-factory.ts +82 -82
- package/src/browser/notebook-editor-widget.tsx +330 -330
- package/src/browser/notebook-frontend-module.ts +121 -119
- package/src/browser/notebook-open-handler.ts +120 -120
- package/src/browser/notebook-output-utils.ts +119 -119
- package/src/browser/notebook-renderer-registry.ts +85 -85
- package/src/browser/notebook-type-registry.ts +54 -54
- package/src/browser/notebook-types.ts +186 -186
- package/src/browser/renderers/cell-output-webview.ts +33 -33
- package/src/browser/service/notebook-cell-editor-service.ts +56 -0
- package/src/browser/service/notebook-clipboard-service.ts +43 -43
- package/src/browser/service/notebook-context-manager.ts +162 -162
- package/src/browser/service/notebook-editor-widget-service.ts +101 -101
- package/src/browser/service/notebook-execution-service.ts +139 -139
- package/src/browser/service/notebook-execution-state-service.ts +311 -311
- package/src/browser/service/notebook-kernel-history-service.ts +124 -124
- package/src/browser/service/notebook-kernel-quick-pick-service.ts +479 -479
- package/src/browser/service/notebook-kernel-service.ts +357 -357
- package/src/browser/service/notebook-model-resolver-service.ts +160 -160
- package/src/browser/service/notebook-monaco-text-model-service.ts +48 -48
- package/src/browser/service/notebook-options.ts +155 -155
- package/src/browser/service/notebook-renderer-messaging-service.ts +121 -121
- package/src/browser/service/notebook-service.ts +215 -215
- package/src/browser/style/index.css +484 -483
- package/src/browser/view/notebook-cell-editor.tsx +276 -263
- package/src/browser/view/notebook-cell-list-view.tsx +279 -279
- package/src/browser/view/notebook-cell-toolbar-factory.tsx +102 -102
- package/src/browser/view/notebook-cell-toolbar.tsx +74 -74
- package/src/browser/view/notebook-code-cell-view.tsx +355 -350
- package/src/browser/view/notebook-find-widget.tsx +335 -335
- package/src/browser/view/notebook-main-toolbar.tsx +235 -235
- package/src/browser/view/notebook-markdown-cell-view.tsx +215 -208
- package/src/browser/view/notebook-viewport-service.ts +61 -61
- package/src/browser/view-model/notebook-cell-model.ts +473 -473
- package/src/browser/view-model/notebook-cell-output-model.ts +100 -100
- package/src/browser/view-model/notebook-model.ts +550 -550
- package/src/common/index.ts +18 -18
- package/src/common/notebook-common.ts +337 -337
- package/src/common/notebook-protocol.ts +35 -35
- package/src/common/notebook-range.ts +30 -30
|
@@ -1,483 +1,484 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2023 TypeFox and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
:root {
|
|
18
|
-
--theia-notebook-markdown-size: 17px;
|
|
19
|
-
--theia-notebook-cell-editor-margin-right: 10px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.theia-notebook-cell-list {
|
|
23
|
-
overflow-y: auto;
|
|
24
|
-
list-style: none;
|
|
25
|
-
padding-left: 0px;
|
|
26
|
-
background-color: var(--theia-notebook-editorBackground);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.theia-notebook-cell {
|
|
30
|
-
display: flex;
|
|
31
|
-
margin: 10px 0px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.theia-notebook-cell:focus {
|
|
35
|
-
outline: none;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.theia-notebook-cell.draggable {
|
|
39
|
-
cursor: grab;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.theia-notebook-cell:hover .theia-notebook-cell-marker {
|
|
43
|
-
visibility: visible;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.theia-notebook-cell-marker {
|
|
47
|
-
background-color: var(--theia-notebook-inactiveFocusedCellBorder);
|
|
48
|
-
width: 3px;
|
|
49
|
-
margin: 0px 8px 0px 4px;
|
|
50
|
-
border-radius: 4px;
|
|
51
|
-
visibility: hidden;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.theia-notebook-cell-marker-selected {
|
|
55
|
-
visibility: visible;
|
|
56
|
-
background-color: var(--theia-notebook-focusedCellBorder);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.theia-notebook-cell-marker:hover {
|
|
60
|
-
width: 5px;
|
|
61
|
-
margin: 0px 6px 0px 4px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.theia-notebook-cell-content {
|
|
65
|
-
flex: 1;
|
|
66
|
-
width: calc(100% - 15px);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* Rendered Markdown Content */
|
|
70
|
-
|
|
71
|
-
.theia-notebook-markdown-content {
|
|
72
|
-
padding: 8px 16px 8px 36px;
|
|
73
|
-
font-size: var(--theia-notebook-markdown-size);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.theia-notebook-markdown-content>* {
|
|
77
|
-
font-weight: 400;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.theia-notebook-markdown-content>*:first-child {
|
|
81
|
-
margin-top: 0;
|
|
82
|
-
padding-top: 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.theia-notebook-markdown-content>*:last-child {
|
|
86
|
-
margin-bottom: 0;
|
|
87
|
-
padding-bottom: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Markdown cell edit mode */
|
|
91
|
-
.theia-notebook-cell-content:has(.theia-notebook-markdown-editor-container>.theia-notebook-cell-editor) {
|
|
92
|
-
margin-left: 36px;
|
|
93
|
-
margin-right: var(--theia-notebook-cell-editor-margin-right);
|
|
94
|
-
outline: 1px solid var(--theia-notebook-cellBorderColor);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* Markdown cell edit mode focused */
|
|
98
|
-
.theia-notebook-cell.focused .theia-notebook-cell-content:has(.theia-notebook-markdown-editor-container>.theia-notebook-cell-editor) {
|
|
99
|
-
outline-color: var(--theia-notebook-focusedEditorBorder);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.theia-notebook-empty-markdown {
|
|
103
|
-
opacity: 0.6;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.theia-notebook-cell-editor {
|
|
107
|
-
padding: 10px 10px 0 10px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.theia-notebook-cell-editor-container {
|
|
111
|
-
width: calc(100% - 46px);
|
|
112
|
-
flex: 1;
|
|
113
|
-
outline: 1px solid var(--theia-notebook-cellBorderColor);
|
|
114
|
-
margin: 0px 16px 0px 10px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
flex-
|
|
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
|
-
font-
|
|
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
|
-
color: var(--theia-
|
|
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
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
box-
|
|
355
|
-
|
|
356
|
-
color: var(--theia-editorWidget-
|
|
357
|
-
|
|
358
|
-
border-
|
|
359
|
-
border-
|
|
360
|
-
border-bottom-
|
|
361
|
-
border-bottom-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
.theia-notebook-find-widget-buttons-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
margin-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
text-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
border-
|
|
438
|
-
border-
|
|
439
|
-
border-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2023 TypeFox and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
:root {
|
|
18
|
+
--theia-notebook-markdown-size: 17px;
|
|
19
|
+
--theia-notebook-cell-editor-margin-right: 10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.theia-notebook-cell-list {
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
list-style: none;
|
|
25
|
+
padding-left: 0px;
|
|
26
|
+
background-color: var(--theia-notebook-editorBackground);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.theia-notebook-cell {
|
|
30
|
+
display: flex;
|
|
31
|
+
margin: 10px 0px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.theia-notebook-cell:focus {
|
|
35
|
+
outline: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.theia-notebook-cell.draggable {
|
|
39
|
+
cursor: grab;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.theia-notebook-cell:hover .theia-notebook-cell-marker {
|
|
43
|
+
visibility: visible;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.theia-notebook-cell-marker {
|
|
47
|
+
background-color: var(--theia-notebook-inactiveFocusedCellBorder);
|
|
48
|
+
width: 3px;
|
|
49
|
+
margin: 0px 8px 0px 4px;
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.theia-notebook-cell-marker-selected {
|
|
55
|
+
visibility: visible;
|
|
56
|
+
background-color: var(--theia-notebook-focusedCellBorder);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.theia-notebook-cell-marker:hover {
|
|
60
|
+
width: 5px;
|
|
61
|
+
margin: 0px 6px 0px 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.theia-notebook-cell-content {
|
|
65
|
+
flex: 1;
|
|
66
|
+
width: calc(100% - 15px);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Rendered Markdown Content */
|
|
70
|
+
|
|
71
|
+
.theia-notebook-markdown-content {
|
|
72
|
+
padding: 8px 16px 8px 36px;
|
|
73
|
+
font-size: var(--theia-notebook-markdown-size);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.theia-notebook-markdown-content>* {
|
|
77
|
+
font-weight: 400;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.theia-notebook-markdown-content>*:first-child {
|
|
81
|
+
margin-top: 0;
|
|
82
|
+
padding-top: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.theia-notebook-markdown-content>*:last-child {
|
|
86
|
+
margin-bottom: 0;
|
|
87
|
+
padding-bottom: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Markdown cell edit mode */
|
|
91
|
+
.theia-notebook-cell-content:has(.theia-notebook-markdown-editor-container>.theia-notebook-cell-editor) {
|
|
92
|
+
margin-left: 36px;
|
|
93
|
+
margin-right: var(--theia-notebook-cell-editor-margin-right);
|
|
94
|
+
outline: 1px solid var(--theia-notebook-cellBorderColor);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Markdown cell edit mode focused */
|
|
98
|
+
.theia-notebook-cell.focused .theia-notebook-cell-content:has(.theia-notebook-markdown-editor-container>.theia-notebook-cell-editor) {
|
|
99
|
+
outline-color: var(--theia-notebook-focusedEditorBorder);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.theia-notebook-empty-markdown {
|
|
103
|
+
opacity: 0.6;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.theia-notebook-cell-editor {
|
|
107
|
+
padding: 10px 10px 0 10px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.theia-notebook-cell-editor-container {
|
|
111
|
+
width: calc(100% - 46px);
|
|
112
|
+
flex: 1;
|
|
113
|
+
outline: 1px solid var(--theia-notebook-cellBorderColor);
|
|
114
|
+
margin: 0px 16px 0px 10px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Only mark an editor cell focused if the editor has focus */
|
|
118
|
+
.theia-notebook-cell-editor-container:has(.monaco-editor.focused) {
|
|
119
|
+
outline-color: var(--theia-notebook-focusedEditorBorder);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.notebook-cell-status {
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: row;
|
|
125
|
+
font-size: 12px;
|
|
126
|
+
height: 16px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.notebook-cell-status-left {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
flex-grow: 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.notebook-cell-language-label {
|
|
136
|
+
padding: 0 5px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.notebook-cell-language-label:hover {
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
background-color: var(--theia-toolbar-hoverBackground);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.notebook-cell-status-item {
|
|
145
|
+
margin: 0 3px;
|
|
146
|
+
padding: 0 3px;
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.theia-notebook-cell-toolbar {
|
|
152
|
+
border: 1px solid var(--theia-notebook-cellToolbarSeparator);
|
|
153
|
+
display: flex;
|
|
154
|
+
position: absolute;
|
|
155
|
+
margin: -20px 0 0 66px;
|
|
156
|
+
padding: 2px;
|
|
157
|
+
background-color: var(--theia-editor-background);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.theia-notebook-cell-sidebar-toolbar {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
padding: 2px;
|
|
164
|
+
background-color: var(--theia-editor-background);
|
|
165
|
+
flex-grow: 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.theia-notebook-cell-sidebar {
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.theia-notebook-code-cell-execution-order {
|
|
174
|
+
display: block;
|
|
175
|
+
font-family: var(--monaco-monospace-font);
|
|
176
|
+
font-size: 10px;
|
|
177
|
+
opacity: 0.7;
|
|
178
|
+
text-align: center;
|
|
179
|
+
white-space: pre;
|
|
180
|
+
padding: 5px 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.theia-notebook-cell-toolbar-item {
|
|
184
|
+
height: 18px;
|
|
185
|
+
width: 18px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.theia-notebook-cell-toolbar-item:hover {
|
|
189
|
+
background-color: var(--theia-toolbar-hoverBackground);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.theia-notebook-cell-toolbar-item:active {
|
|
193
|
+
background-color: var(--theia-toolbar-active);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.theia-notebook-cell-divider {
|
|
197
|
+
height: 25px;
|
|
198
|
+
width: 100%;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.theia-notebook-cell-with-sidebar {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: row;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.theia-notebook-main-container {
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
height: 100%;
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.theia-notebook-main-container:focus {
|
|
214
|
+
outline: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.theia-notebook-main-container .theia-notebook-main-loading-indicator {
|
|
218
|
+
/* `progress-animation` is defined in `packages/core/src/browser/style/progress-bar.css` */
|
|
219
|
+
animation: progress-animation 1.8s 0s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
220
|
+
background-color: var(--theia-progressBar-background);
|
|
221
|
+
height: 2px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.theia-notebook-viewport {
|
|
225
|
+
display: flex;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
height: 100%;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.theia-notebook-scroll-container {
|
|
231
|
+
flex: 1;
|
|
232
|
+
overflow: hidden;
|
|
233
|
+
position: relative;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.theia-notebook-main-toolbar {
|
|
237
|
+
background: var(--theia-editor-background);
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: row;
|
|
240
|
+
z-index: 1;
|
|
241
|
+
/*needed to be on rendered on top of monaco editors*/
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.theia-notebook-main-toolbar-item {
|
|
245
|
+
height: 22px;
|
|
246
|
+
display: flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
margin: 0 4px;
|
|
249
|
+
padding: 2px;
|
|
250
|
+
text-align: center;
|
|
251
|
+
color: var(--theia-foreground) !important;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.theia-notebook-main-toolbar-item.theia-mod-disabled:hover {
|
|
256
|
+
background-color: transparent;
|
|
257
|
+
cursor: default;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.theia-notebook-main-toolbar-item-text {
|
|
261
|
+
padding: 0 4px;
|
|
262
|
+
white-space: nowrap;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.theia-notebook-toolbar-separator {
|
|
266
|
+
width: 1px;
|
|
267
|
+
background-color: var(--theia-notebook-cellToolbarSeparator);
|
|
268
|
+
margin: 0 4px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.theia-notebook-add-cell-buttons {
|
|
272
|
+
justify-content: center;
|
|
273
|
+
display: flex;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.theia-notebook-add-cell-button {
|
|
277
|
+
border: 1px solid var(--theia-notebook-cellToolbarSeparator);
|
|
278
|
+
background-color: var(--theia-editor-background);
|
|
279
|
+
color: var(--theia-foreground);
|
|
280
|
+
display: flex;
|
|
281
|
+
height: 24px;
|
|
282
|
+
margin: 0 8px;
|
|
283
|
+
padding: 2px 4px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.theia-notebook-add-cell-button:hover {
|
|
287
|
+
background-color: var(--theia-toolbar-hoverBackground);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.theia-notebook-add-cell-button:active {
|
|
291
|
+
background-color: var(--theia-toolbar-active);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.theia-notebook-add-cell-button>* {
|
|
295
|
+
vertical-align: middle;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.theia-notebook-add-cell-button-icon::before {
|
|
299
|
+
font: normal normal normal 14px/1 codicon;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.theia-notebook-add-cell-button-text {
|
|
303
|
+
margin: 1px 0 0 4px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.theia-notebook-cell-output-webview {
|
|
307
|
+
padding: 5px 0px;
|
|
308
|
+
margin: 0px 15px 0px 9px;
|
|
309
|
+
width: 100%;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.theia-notebook-cell-drop-indicator {
|
|
313
|
+
height: 2px;
|
|
314
|
+
background-color: var(--theia-notebook-focusedCellBorder);
|
|
315
|
+
width: 100%;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.theia-notebook-collapsed-output {
|
|
319
|
+
padding: 4px 8px;
|
|
320
|
+
color: var(--theia-foreground);
|
|
321
|
+
margin-left: 30px;
|
|
322
|
+
font-size: 14px;
|
|
323
|
+
line-height: 22px;
|
|
324
|
+
opacity: 0.7;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.theia-notebook-drag-ghost-image {
|
|
328
|
+
position: absolute;
|
|
329
|
+
top: -99999px;
|
|
330
|
+
left: -99999px;
|
|
331
|
+
max-height: 500px;
|
|
332
|
+
min-height: 100px;
|
|
333
|
+
background-color: var(--theia-editor-background);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Notebook Find Widget */
|
|
337
|
+
|
|
338
|
+
.theia-notebook-overlay {
|
|
339
|
+
position: absolute;
|
|
340
|
+
z-index: 100;
|
|
341
|
+
right: 18px;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.theia-notebook-find-widget {
|
|
345
|
+
/* position: absolute;
|
|
346
|
+
z-index: 35;
|
|
347
|
+
height: 33px;
|
|
348
|
+
overflow: hidden; */
|
|
349
|
+
line-height: 19px;
|
|
350
|
+
transition: transform 200ms linear;
|
|
351
|
+
display: flex;
|
|
352
|
+
flex-direction: row;
|
|
353
|
+
padding: 0 4px;
|
|
354
|
+
box-sizing: border-box;
|
|
355
|
+
box-shadow: 0 0 8px 2px var(--theia-widget-shadow);
|
|
356
|
+
background-color: var(--theia-editorWidget-background);
|
|
357
|
+
color: var(--theia-editorWidget-foreground);
|
|
358
|
+
border-left: 1px solid var(--theia-widget-border);
|
|
359
|
+
border-right: 1px solid var(--theia-widget-border);
|
|
360
|
+
border-bottom: 1px solid var(--theia-widget-border);
|
|
361
|
+
border-bottom-left-radius: 4px;
|
|
362
|
+
border-bottom-right-radius: 4px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.theia-notebook-find-widget.hidden {
|
|
366
|
+
display: none;
|
|
367
|
+
transform: translateY(calc(-100% - 10px));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.theia-notebook-find-widget.search-mode>*>*:nth-child(2) {
|
|
371
|
+
display: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.theia-notebook-find-widget-expand {
|
|
375
|
+
display: flex;
|
|
376
|
+
flex-direction: row;
|
|
377
|
+
align-items: center;
|
|
378
|
+
cursor: pointer;
|
|
379
|
+
border-radius: 0;
|
|
380
|
+
margin-right: 4px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.theia-notebook-find-widget-expand:focus {
|
|
384
|
+
outline: 1px solid var(--theia-focusBorder);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.theia-notebook-find-widget-expand:hover {
|
|
388
|
+
background-color: var(--theia-toolbar-hoverBackground);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.theia-notebook-find-widget-buttons-first {
|
|
392
|
+
margin-bottom: 4px;
|
|
393
|
+
height: 26px;
|
|
394
|
+
display: flex;
|
|
395
|
+
flex-direction: row;
|
|
396
|
+
align-items: center;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.theia-notebook-find-widget-buttons-first>div,
|
|
400
|
+
.theia-notebook-find-widget-buttons-second>div {
|
|
401
|
+
margin-right: 4px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.theia-notebook-find-widget-buttons-second {
|
|
405
|
+
height: 26px;
|
|
406
|
+
display: flex;
|
|
407
|
+
flex-direction: row;
|
|
408
|
+
align-items: center;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.theia-notebook-find-widget-inputs {
|
|
412
|
+
margin-top: 4px;
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-direction: column;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.theia-notebook-find-widget-buttons {
|
|
418
|
+
margin-top: 4px;
|
|
419
|
+
margin-left: 4px;
|
|
420
|
+
display: flex;
|
|
421
|
+
flex-direction: column;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.theia-notebook-find-widget-matches-count {
|
|
425
|
+
width: 72px;
|
|
426
|
+
box-sizing: border-box;
|
|
427
|
+
overflow: hidden;
|
|
428
|
+
text-align: center;
|
|
429
|
+
text-overflow: ellipsis;
|
|
430
|
+
white-space: nowrap;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.theia-notebook-find-widget-input-wrapper {
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
background: var(--theia-input-background);
|
|
437
|
+
border-style: solid;
|
|
438
|
+
border-width: var(--theia-border-width);
|
|
439
|
+
border-color: var(--theia-input-background);
|
|
440
|
+
border-radius: 2px;
|
|
441
|
+
margin-bottom: 4px;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.theia-notebook-find-widget-input-wrapper:focus-within {
|
|
445
|
+
border-color: var(--theia-focusBorder);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.theia-notebook-find-widget-input-wrapper .option.enabled {
|
|
449
|
+
color: var(--theia-inputOption-activeForeground);
|
|
450
|
+
outline: 1px solid var(--theia-inputOption-activeBorder);
|
|
451
|
+
background-color: var(--theia-inputOption-activeBackground);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.theia-notebook-find-widget-input-wrapper .option {
|
|
455
|
+
margin: 2px;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.theia-notebook-find-widget-input-wrapper .theia-notebook-find-widget-input:focus {
|
|
459
|
+
border: none;
|
|
460
|
+
outline: none;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.theia-notebook-find-widget-input-wrapper .theia-notebook-find-widget-input {
|
|
464
|
+
background: none;
|
|
465
|
+
border: none;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.theia-notebook-find-widget-replace {
|
|
469
|
+
margin-bottom: 4px;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.theia-notebook-find-widget-buttons .disabled {
|
|
473
|
+
opacity: 0.5;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
mark.theia-find-match {
|
|
477
|
+
color: var(--theia-editor-findMatchHighlightForeground);
|
|
478
|
+
background-color: var(--theia-editor-findMatchHighlightBackground);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
mark.theia-find-match.theia-find-match-selected {
|
|
482
|
+
color: var(--theia-editor-findMatchForeground);
|
|
483
|
+
background-color: var(--theia-editor-findMatchBackground);
|
|
484
|
+
}
|