@theia/notebook 1.53.0-next.5 → 1.53.0-next.55

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