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