notebook.css 23.4 KB
Newer Older
P
Peng Lyu 已提交
1 2 3 4 5 6 7 8 9 10
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.monaco-workbench .part.editor > .content .notebook-editor {
	box-sizing: border-box;
	line-height: 22px;
	user-select: initial;
	-webkit-user-select: initial;
P
Peng Lyu 已提交
11
	position: relative;
P
Peng Lyu 已提交
12 13 14
}

.cell.markdown {
P
Peng Lyu 已提交
15 16
	user-select: text;
	-webkit-user-select: text;
17
	white-space: initial;
P
Peng Lyu 已提交
18 19
}

R
rebornix 已提交
20
/* .monaco-workbench .part.editor > .content .notebook-editor .cell-list-container .monaco-scrollable-element {
21
	overflow: visible !important;
R
rebornix 已提交
22
} */
23 24 25 26 27

.monaco-workbench .part.editor > .content .notebook-editor .cell-list-container .monaco-list-rows {
	min-height: 100%;
	overflow: visible !important;
}
P
Peng Lyu 已提交
28

P
Peng Lyu 已提交
29 30 31 32
.monaco-workbench .part.editor > .content .notebook-editor .cell-list-container {
	position: relative;
}

R
rebornix 已提交
33 34 35 36 37
.monaco-workbench .part.editor > .content .notebook-editor .cell-list-container .webview-cover {
	position: absolute;
	top: 0;
}

R
Rob Lourens 已提交
38 39
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row {
	cursor: default;
R
Rob Lourens 已提交
40 41 42 43 44 45 46
	overflow: visible !important;
	width: 100%;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-drag-handle {
	position: absolute;
	visibility: hidden;
47
	left: 1px;
R
Rob Lourens 已提交
48 49
}

50 51 52
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.markdown-cell-row .cell-drag-handle,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.code-cell-row .cell-drag-handle  {
	top: 8px;
R
Rob Lourens 已提交
53 54 55
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused .cell-drag-handle,
56 57
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover .cell-drag-handle,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-output-hover .cell-drag-handle {
R
Rob Lourens 已提交
58 59 60
	visibility: visible;
}

61
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image {
R
Rob Lourens 已提交
62
	position: absolute;
63
	top: -500px;
R
Rob Lourens 已提交
64
	z-index: 1000;
65 66 67 68 69 70 71 72 73 74 75 76 77
	padding-bottom: 16px;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image > .monaco-toolbar {
	display: none;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image .cell-statusbar-container {
	display: none;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image .cell-editor-part {
	width: 100%;
R
Rob Lourens 已提交
78 79
}

R
rebornix 已提交
80
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell {
R
Rob Lourens 已提交
81 82 83
	display: flex;
}

P
Peng Lyu 已提交
84 85 86 87 88 89 90
.monaco-workbench .part.editor > .content .notebook-editor .notebook-content-widgets {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

P
Peng Lyu 已提交
91
.monaco-workbench .part.editor > .content .notebook-editor .output {
92 93
	padding-left: 8px;
	padding-right: 8px;
94 95
	user-select: text;
	transform: translate3d(0px, 0px, 0px);
R
rebornix 已提交
96
	cursor: auto;
R
rebornix 已提交
97
	box-sizing: border-box;
P
Peng Lyu 已提交
98 99
}

R
rebornix 已提交
100 101
.monaco-workbench .part.editor > .content .notebook-editor .output p {
	white-space: initial;
102
	overflow-x: auto;
103
	margin: 0px;
R
rebornix 已提交
104 105
}

R
rebornix 已提交
106 107 108 109 110
.monaco-workbench .part.editor > .content .notebook-editor .output > div.foreground {
	padding: 8px;
	box-sizing: border-box;
}

R
rebornix 已提交
111 112 113
.monaco-workbench .part.editor > .content .notebook-editor .output .multi-mimetype-output {
	position: absolute;
	top: 4px;
R
rebornix 已提交
114
	left: -32px;
R
rebornix 已提交
115 116 117 118 119
	width: 16px;
	height: 16px;
	cursor: pointer;
}

P
Peng Lyu 已提交
120 121 122
.monaco-workbench .part.editor > .content .notebook-editor .output .error_message {
	color: red;
}
123

P
Peng Lyu 已提交
124 125 126 127
.monaco-workbench .part.editor > .content .notebook-editor .output pre.traceback {
	margin: 8px 0;
}

P
Peng Lyu 已提交
128 129 130
.monaco-workbench .part.editor > .content .notebook-editor .output .traceback > span {
	display: block;
}
P
Peng Lyu 已提交
131

132 133 134 135
.monaco-workbench .part.editor > .content .notebook-editor .output .display img {
	max-width: 100%;
}

R
rebornix 已提交
136

R
rebornix 已提交
137
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:focus-within {
P
Peng Lyu 已提交
138 139 140
	z-index: 10;
}

R
rebornix 已提交
141
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .menu {
P
Peng Lyu 已提交
142 143
	position: absolute;
	left: 0;
R
rebornix 已提交
144
	top: 28px;
P
Peng Lyu 已提交
145 146 147 148 149 150 151
	visibility: hidden;
	width: 16px;
	margin: auto;
	padding-left: 4px;
}


R
rebornix 已提交
152
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .menu.mouseover,
153 154
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover .menu,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-output-hover .menu {
P
Peng Lyu 已提交
155 156
	visibility: visible;
}
P
Peng Lyu 已提交
157

158 159
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-output-hover {
P
Peng Lyu 已提交
160
	outline: none !important;
161
}
R
rebornix 已提交
162

R
rebornix 已提交
163 164
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused {
R
rebornix 已提交
165
	outline: none !important;
166
}
R
rebornix 已提交
167

R
rebornix 已提交
168 169
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .menu.mouseover,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .menu:hover {
P
Peng Lyu 已提交
170
	cursor: pointer;
P
Peng Lyu 已提交
171
}
172

173 174 175 176
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows {
	margin-top: 16px;
}

R
rebornix 已提交
177
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .monaco-toolbar {
178
	visibility: hidden;
R
Rob Lourens 已提交
179 180
	display: inline-block;
	position: absolute;
R
Rob Lourens 已提交
181 182
	height: 26px;
	right: 32px;
183
	top: -16px;
R
Rob Lourens 已提交
184 185 186
	z-index: 10;
}

R
rebornix 已提交
187
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .monaco-toolbar .action-item {
R
Rob Lourens 已提交
188 189 190 191
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
R
Rob Lourens 已提交
192
	margin: 1px 2px;
R
Rob Lourens 已提交
193 194
}

R
rebornix 已提交
195
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .monaco-toolbar .action-item .action-label {
R
Rob Lourens 已提交
196 197
	display: flex;
	align-items: center;
198
	margin: auto;
199 200
}

R
Rob Lourens 已提交
201
.monaco-workbench .part.editor > .content .notebook-editor .cell-statusbar-container {
202 203
	height: 22px;
	font-size: 12px;
R
Rob Lourens 已提交
204 205
	display: flex;
	position: relative;
206
	box-sizing: border-box;
R
Rob Lourens 已提交
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
}

.monaco-workbench .part.editor > .content .notebook-editor .cell-statusbar-container .cell-status-message {
	display: flex;
	align-items: center;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell-statusbar-container .cell-run-status {
	height: 100%;
	display: flex;
	align-items: center;
	margin-left: 18px;
	width: 18px;
	margin-right: 2px;
}

223 224 225 226
.monaco-workbench .part.editor > .content .notebook-editor .cell-statusbar-container .codicon {
	font-size: 14px;
}

R
Rob Lourens 已提交
227
.monaco-workbench .part.editor > .content .notebook-editor .cell-statusbar-container .cell-run-status .codicon-check {
228 229 230 231 232
	color: #89D185;
}

.vs .monaco-workbench .part.editor > .content .notebook-editor .cell-statusbar-container .cell-run-status .codicon-check {
	color: #388A34;
R
Rob Lourens 已提交
233 234 235 236 237
}

.monaco-workbench .part.editor > .content .notebook-editor .cell-status-placeholder {
	position: absolute;
	left: 18px;
238
	color: #ccc9;
R
Rob Lourens 已提交
239 240 241 242 243 244
	display: flex;
	align-items: center;
	bottom: 0px;
	top: 0px;
}

245 246 247 248
.vs .monaco-workbench .part.editor > .content .notebook-editor .cell-status-placeholder {
	color: #616161e6;
}

R
rebornix 已提交
249
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell .run-button-container {
250 251 252
	position: relative;
}

R
rebornix 已提交
253
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell .run-button-container .monaco-toolbar {
254
	margin-top: 8px;
R
Rob Lourens 已提交
255 256 257
	visibility: hidden;
}

258
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell .run-button-container .monaco-toolbar .codicon {
R
Rob Lourens 已提交
259 260 261
	margin-right: 8px;
}

R
rebornix 已提交
262
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover .cell.runnable .run-button-container .monaco-toolbar,
263 264
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused .cell.runnable .run-button-container .monaco-toolbar,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-output-hover .cell.runnable .run-button-container .monaco-toolbar {
R
Rob Lourens 已提交
265 266 267
	visibility: visible;
}

R
rebornix 已提交
268
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell .run-button-container .execution-count-label {
269
	position: absolute;
R
Rob Lourens 已提交
270
	top: 2px;
M
Miguel Solorio 已提交
271
	font-size: 10px;
272
	font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
273 274 275 276
	visibility: visible;
	white-space: pre;
	width: 100%;
	text-align: center;
R
Rob Lourens 已提交
277 278
	padding-right: 2px;
	box-sizing: border-box;
279
	opacity: .6;
280 281
}

R
rebornix 已提交
282
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover .cell .run-button-container .execution-count-label,
283
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-output-hover .cell .run-button-container .execution-count-label,
R
rebornix 已提交
284
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused .cell .run-button-container .execution-count-label {
285 286 287
	visibility: hidden;
}

R
Rob Lourens 已提交
288
.monaco-workbench .part.editor > .content .notebook-editor .cell .cell-editor-part {
R
Rob Lourens 已提交
289 290 291
	position: relative;
}

R
Rob Lourens 已提交
292
.monaco-workbench .part.editor > .content .notebook-editor .cell .monaco-progress-container {
293
	top: -5px;
R
Rob Lourens 已提交
294 295
}

296 297 298
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-has-toolbar-actions.focused > .monaco-toolbar,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-has-toolbar-actions.cell-output-hover > .monaco-toolbar,
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-has-toolbar-actions:hover > .monaco-toolbar {
299 300 301
	visibility: visible;
}

R
rebornix 已提交
302 303

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list:not(.element-focused):focus:before {
304 305
	outline: none !important;
}
P
Peng Lyu 已提交
306

307 308 309 310 311 312 313 314

.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row .notebook-cell-focus-indicator {
	display: block;
	content: ' ';
	position: absolute;
	width: 6px;
	border-left-width: 2px;
	border-left-style: solid;
R
Rob Lourens 已提交
315
	left: 20px;
316
	top: 22px;
317
	bottom: 32px;
318 319 320
	visibility: hidden;
}

R
Rob Lourens 已提交
321
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row:hover .notebook-cell-focus-indicator,
322
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row.cell-output-hover .notebook-cell-focus-indicator,
323 324 325 326
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row.focused .notebook-cell-focus-indicator {
	visibility: visible;
}

R
Rob Lourens 已提交
327 328 329 330 331 332 333 334 335 336 337 338 339
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list-row.cell-editor-focus .cell-editor-part:before {
	z-index: 5;
	content: "";
	right: 0px;
	left: 0px;
	top: 0px;
	bottom: 0px;
	outline-offset: -1px;
	display: block;
	position: absolute;
	pointer-events: none;
}

R
Rob Lourens 已提交
340 341 342 343
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row.cell-dragover .notebook-cell-insertion-indicator-top {
	opacity: 1;
}

344 345 346 347
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row.cell-dragging {
	opacity: 0.5;
}

R
Rob Lourens 已提交
348 349 350 351 352 353 354 355
.monaco-workbench .part.editor > .content .notebook-editor .monaco-list .monaco-list-row .notebook-cell-insertion-indicator-top {
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	position: absolute;
	height: 2px;
	top: 0px;
}

R
rebornix 已提交
356 357 358 359
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container {
	position: absolute;
	display: flex;
	opacity: 0;
R
rebornix 已提交
360
	transition: opacity 0.2s ease-in-out;
361
	cursor: auto;
362
	padding: 0;
R
rebornix 已提交
363 364
}

365 366 367 368
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image .cell-bottom-toolbar-container {
	display: none;
}

369 370
.monaco-workbench .part.editor > .content .notebook-editor.notebook-editor-editable > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container:focus-within,
.monaco-workbench .part.editor > .content .notebook-editor.notebook-editor-editable > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container:hover {
R
rebornix 已提交
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388
	opacity: 1;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .seperator {
	height: 1px;
	flex-grow: 1;
	align-self: center;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .seperator-short {
	height: 1px;
	width: 16px;
	align-self: center;
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .button {
	display: flex;
	margin: 0 8px;
389
	padding: 0 8px;
R
rebornix 已提交
390 391 392
	align-self: center;
	align-items: center;
	white-space: pre;
393
	cursor: pointer;
394
	font-size: 12px;
R
rebornix 已提交
395 396 397 398 399 400 401 402
}

.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container span.codicon {
	text-align: center;
	font-size: 14px;
	color: inherit;
}

P
Peng Lyu 已提交
403 404 405 406 407 408
.notebook-webview {
	position: absolute;
	z-index: 1000000;
	left: 373px;
	top: 0px;
}
R
rebornix 已提交
409 410 411 412

/* markdown */


R
Rob Lourens 已提交
413
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown img {
R
rebornix 已提交
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
	max-width: 100%;
	max-height: 100%;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown a {
	text-decoration: none;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown a:hover {
	text-decoration: underline;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown a:focus,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown input:focus,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown select:focus,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown textarea:focus {
	outline: 1px solid -webkit-focus-ring-color;
	outline-offset: -1px;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown hr {
	border: 0;
	height: 2px;
	border-bottom: 2px solid;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h1 {
	padding-bottom: 0.3em;
	line-height: 1.2;
	border-bottom-width: 1px;
	border-bottom-style: solid;
445 446 447 448 449
	border-color: rgba(255, 255, 255, 0.18);
}

.vs .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h1 {
	border-color: rgba(0, 0, 0, 0.18);
R
rebornix 已提交
450 451 452 453 454 455 456 457
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h1,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h2,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h3 {
	font-weight: normal;
}

458 459 460 461
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div {
	width: 100%;
}

462 463 464 465 466
/* Removes margin of first item in markdown cell */
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div *:first-child {
	margin-top: 0;
}

M
Miguel Solorio 已提交
467
/* Removes margin when only one item exists in markdown cell */
468 469
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div *:only-child,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div *:last-child {
M
Miguel Solorio 已提交
470 471 472
	margin-bottom: 0;
}

M
🧹  
Miguel Solorio 已提交
473
/* Add minor padding for h and p tags when only one item is there */
474 475 476 477 478 479 480 481 482
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div > h2:only-child,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div > h3:only-child,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div > h4:only-child,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div > h5:only-child,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div > h6:only-child,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown div > p:only-child {
	padding-top: 4px;
}

R
rebornix 已提交
483 484 485 486 487 488 489
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table {
	border-collapse: collapse;
	border-spacing: 0;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table th,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table td {
R
Rob Lourens 已提交
490
	border: 1px solid;
R
rebornix 已提交
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > thead > tr > th {
	text-align: left;
	border-bottom: 1px solid;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > thead > tr > th,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > thead > tr > td,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > tbody > tr > th,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > tbody > tr > td {
	padding: 5px 10px;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > tbody > tr + tr > td {
	border-top: 1px solid;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown blockquote {
	margin: 0 7px 0 5px;
	padding: 0 16px 0 10px;
	border-left-width: 5px;
	border-left-style: solid;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown code {
	font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
	font-size: 1em;
	line-height: 1.357em;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown body.wordWrap pre {
	white-space: pre-wrap;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown pre:not(.hljs),
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown pre.hljs code > div {
	padding: 16px;
	border-radius: 3px;
	overflow: auto;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown pre code {
	color: var(--vscode-editor-foreground);
	tab-size: 4;
}

R
rebornix 已提交
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown .latex-block {
	display: block;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown .latex {
	vertical-align: middle;
	display: inline-block;
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown .latex img,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown .latex-block img {
	filter: brightness(0) invert(0)
}

.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown .latex img,
.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown .latex-block img {
	filter: brightness(0) invert(1)
}

R
rebornix 已提交
557 558
.monaco-workbench .part.editor > .content .notebook-editor > .cell-list-container .notebook-folding-indicator {
	position: absolute;
559
	top: 8px;
R
rebornix 已提交
560 561 562 563
	left: 26px;
	cursor: pointer;
}

R
rebornix 已提交
564 565
/** Theming */

566
/* .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown pre {
R
rebornix 已提交
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
	background-color: rgba(220, 220, 220, 0.4);
}

.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown pre {
	background-color: rgba(10, 10, 10, 0.4);
}

.hc-black .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown pre {
	background-color: rgb(0, 0, 0);
}

.hc-black .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h1 {
	border-color: rgb(0, 0, 0);
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > thead > tr > th {
	border-color: rgba(0, 0, 0, 0.18);
}

.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > thead > tr > th {
	border-color: rgba(255, 255, 255, 0.18);
}

.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h1,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown hr,
.monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > tbody > tr > td {
	border-color: rgba(0, 0, 0, 0.18);
}

.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown h1,
.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown hr,
.vs-dark .monaco-workbench .part.editor > .content .notebook-editor .cell.markdown table > tbody > tr > td {
	border-color: rgba(255, 255, 255, 0.18);
600
} */