extensionEditor.css 14.1 KB
Newer Older
J
Joao Moreno 已提交
1 2 3 4 5 6 7
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.extension-editor {
	height: 100%;
J
Joao Moreno 已提交
8
	overflow: hidden;
9 10
	display: flex;
	flex-direction: column;
J
Joao Moreno 已提交
11 12
}

J
Joao Moreno 已提交
13 14
.extension-editor .clickable {
	cursor: pointer;
J
Joao Moreno 已提交
15 16
}

J
Joao Moreno 已提交
17
.extension-editor > .header {
J
Joao Moreno 已提交
18
	display: flex;
19 20 21 22
	padding-top: 20px;
	padding-bottom: 14px;
	padding-left: 20px;
	padding-right: 20px;
J
Joao Moreno 已提交
23
	overflow: hidden;
J
Joao Moreno 已提交
24
	font-size: 14px;
J
Joao Moreno 已提交
25 26
}

27 28 29 30 31
.extension-editor > .header > .icon-container {
	position: relative;
}

.extension-editor > .header > .icon-container .icon {
J
Joao Moreno 已提交
32 33
	height: 128px;
	width: 128px;
34
	object-fit: contain;
J
Joao Moreno 已提交
35 36
}

37 38 39
.extension-editor > .header > .icon-container .extension-remote-badge {
	position: absolute;
	right: 0px;
40 41 42 43
	top: 88px;
	width: 38px;
	height: 38px;
	line-height: 38px;
44 45
	border-radius: 20px;
	text-align: center;
46 47 48
	display: flex;
	align-items: center;
	justify-content: center;
49 50
}

51
.extension-editor > .header > .icon-container .extension-remote-badge .codicon {
M
Miguel Solorio 已提交
52
	color: currentColor;
53
	font-size: 28px;
54 55
}

J
Joao Moreno 已提交
56 57 58
.extension-editor > .header > .details {
	padding-left: 20px;
	overflow: hidden;
59
	user-select: text;
60
	-webkit-user-select: text;
J
Joao Moreno 已提交
61 62
}

J
Joao Moreno 已提交
63 64
.extension-editor > .header > .details > .title {
	display: flex;
65
	align-items: center;
J
Joao Moreno 已提交
66 67 68
}

.extension-editor > .header > .details > .title > .name {
S
Sandeep Somavarapu 已提交
69
	flex: 0;
J
Joao Moreno 已提交
70
	font-size: 26px;
J
Joao Moreno 已提交
71
	line-height: 30px;
J
Joao Moreno 已提交
72
	font-weight: 600;
J
Joao Moreno 已提交
73
	white-space: nowrap;
J
Joao Moreno 已提交
74 75
}

S
Sandeep Somavarapu 已提交
76 77 78 79
.extension-editor > .header > .details > .title > .identifier {
	margin-left: 10px;
	font-size: 14px;
	opacity: 0.6;
80
	background: rgba(173, 173, 173, 0.31);
S
Sandeep Somavarapu 已提交
81 82 83
	padding: 0px 4px;
	border-radius: 4px;
	user-select: text;
84
	-webkit-user-select: text;
S
Sandeep Somavarapu 已提交
85
	white-space: nowrap;
S
Sandeep Somavarapu 已提交
86 87
}

S
Sandeep Somavarapu 已提交
88 89 90 91 92 93
.extension-editor > .header > .details > .title > .builtin {
	font-size: 10px;
	font-style: italic;
	margin-left: 10px;
}

94
.monaco-workbench.vs .extension-editor > .header > .details > .title > .preview {
S
Sandeep Somavarapu 已提交
95 96 97
	color: white;
}

98 99
.extension-editor > .header > .details > .title > .preview {
	background: rgb(214, 63, 38);
S
Sandeep Somavarapu 已提交
100 101
	font-size: 10px;
	font-style: italic;
102 103 104
	margin-left: 10px;
	padding: 0px 4px;
	border-radius: 4px;
105
	user-select: none;
106
	-webkit-user-select: none;
107 108
}

J
Joao Moreno 已提交
109
.extension-editor > .header > .details > .subtitle {
110
	padding-top: 6px;
J
Joao Moreno 已提交
111
	white-space: nowrap;
J
Joao Moreno 已提交
112 113
	height: 20px;
	line-height: 20px;
J
Joao Moreno 已提交
114 115
}

S
Sandeep Somavarapu 已提交
116
.extension-editor > .header > .details > .subtitle .publisher {
J
Joao Moreno 已提交
117 118 119
	font-size: 18px;
}

M
Miguel Solorio 已提交
120 121 122 123 124 125 126
.extension-editor > .header > .details > .subtitle,
.extension-editor > .header > .details > .subtitle .install,
.extension-editor > .header > .details > .subtitle .rating {
	display: flex;
	align-items: center;
}

S
Sandeep Somavarapu 已提交
127
.extension-editor > .header > .details > .subtitle .install > .count {
J
Joao Moreno 已提交
128 129 130
	margin-left: 6px;
}

S
Sandeep Somavarapu 已提交
131
.extension-editor > .header > .details > .subtitle > div:not(:first-child):not(:empty) {
J
Joao Moreno 已提交
132 133 134 135 136
	border-left: 1px solid rgba(128, 128, 128, 0.7);
	margin-left: 14px;
	padding-left: 14px;
}

J
Joao Moreno 已提交
137
.extension-editor > .header > .details > .description {
138
	margin-top: 10px;
J
Joao Moreno 已提交
139 140 141 142 143 144
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.extension-editor > .header > .details > .actions {
145
	margin-top: 10px;
J
Joao Moreno 已提交
146 147 148 149 150 151 152 153 154 155
}

.extension-editor > .header > .details > .actions > .monaco-action-bar {
	text-align: initial;
}

.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container {
	justify-content: flex-start;
}

S
Sandeep Somavarapu 已提交
156 157 158
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item:not(.action-dropdown-item) > .extension-action,
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item.action-dropdown-item .extension-action.action-label.dropdown,
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item.action-dropdown-item > .extension-action.action-label.empty-dropdown {
S
Sandeep Somavarapu 已提交
159 160 161
	margin-right: 8px;
}

S
Sandeep Somavarapu 已提交
162 163
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item > .extension-action.label,
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item.action-dropdown-item .extension-action.label {
164
	font-weight: 600;
S
Sandeep Somavarapu 已提交
165
	max-width: 300px;
166 167
}

S
Sandeep Somavarapu 已提交
168 169 170 171 172
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item > .extension-action.label {
	padding: 1px 6px;
}

.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item.action-dropdown-item .extension-action.dropdown.label {
173
	padding: 1px 0px;
S
Sandeep Somavarapu 已提交
174 175
}

S
Sandeep Somavarapu 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188 189
.extension-editor > .header > .details > .actions > .monaco-action-bar > .actions-container > .action-item > .action-label.system-disable {
	margin-right: 0;
}

.extension-editor>.header>.details>.actions>.monaco-action-bar .action-item .action-label.extension-status-label,
.extension-editor>.header>.details>.actions>.monaco-action-bar .action-item .action-label.disable-status,
.extension-editor>.header>.details>.actions>.monaco-action-bar .action-item .action-label.malicious-status {
	font-weight: normal;
}

.extension-editor>.header>.details>.actions>.monaco-action-bar .action-item .action-label.extension-status-label:hover,
.extension-editor>.header>.details>.actions>.monaco-action-bar .action-item .action-label.disable-status:hover,
.extension-editor>.header>.details>.actions>.monaco-action-bar .action-item .action-label.malicious-status:hover {
	opacity: 0.9;
190
}
191

192
.extension-editor > .header > .details > .subtext-container {
193 194
	display: block;
	float: left;
195
	margin-top: 0;
196
	font-size: 13px;
197
	font-style: italic;
198 199
}

200
.extension-editor > .header > .details > .subtext-container > .monaco-action-bar {
201
	float: left;
202 203 204 205
	margin-top: 2px;
	font-style: normal;
}

206
.extension-editor > .header > .details > .subtext-container > .subtext {
207
	float:left;
208
	margin-top: 5px;
209
	margin-right: 4px;
210
}
211

212
.extension-editor > .header > .details > .subtext-container > .monaco-action-bar .action-label {
213 214
	margin-top: 4px;
	margin-left: 4px;
S
Sandeep Somavarapu 已提交
215
	padding-bottom: 1px;
216 217
}

218 219 220 221
.extension-editor > .header.recommended > .details > .recommendation > .monaco-action-bar .actions-container {
	justify-content: flex-start;
}

J
Joao Moreno 已提交
222
.extension-editor > .body {
223
	flex: 1;
J
Joao Moreno 已提交
224
	overflow: hidden;
225 226
}

J
Joao Moreno 已提交
227 228
.extension-editor > .body > .navbar {
	height: 36px;
229
	font-weight: bold;
J
Joao Moreno 已提交
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
	font-size: 14px;
	line-height: 36px;
	padding-left: 20px;
	border-bottom: 1px solid rgba(136, 136, 136, 0.45);
	box-sizing: border-box;
}

.extension-editor > .body > .navbar > .monaco-action-bar > .actions-container {
	justify-content: initial;
}

.extension-editor > .body > .navbar > .monaco-action-bar > .actions-container > .action-item > .action-label {
	margin-right: 16px;
}

.extension-editor > .body > .navbar > .monaco-action-bar > .actions-container > .action-item > .action-label {
	font-size: inherit;
247
	opacity: 0.7;
J
Joao Moreno 已提交
248 249
}

I
isidor 已提交
250
.extension-editor > .body > .navbar > .monaco-action-bar > .actions-container > .action-item > .action-label.checked {
J
Joao Moreno 已提交
251 252 253 254 255 256 257 258 259 260
	opacity: 1;
	text-decoration: underline;
}

.extension-editor > .body > .navbar > .monaco-action-bar > .actions-container > .action-item > .action-label:hover {
	text-decoration: underline;
}

.extension-editor > .body > .content {
	height: calc(100% - 36px);
261 262
	position: relative;
	overflow: hidden;
263
	user-select: text;
264
	-webkit-user-select: text;
265 266
}

267 268 269 270
.extension-editor > .body > .content.loading {
	background: url('loading.svg') center center no-repeat;
}

J
Joao Moreno 已提交
271 272 273 274
.extension-editor > .body > .content > .monaco-scrollable-element {
	height: 100%;
}

275 276 277 278
.extension-editor > .body > .content > .nocontent {
	margin-left: 20px;
}

279 280 281 282 283 284 285 286 287
.extension-editor > .body > .content > .extension-pack-readme {
	height: 100%;
}

.extension-editor > .body > .content > .extension-pack-readme > .extension-pack {
	height: 224px;
	padding-left: 20px;
}

S
Sandeep Somavarapu 已提交
288
.extension-editor > .body > .content > .extension-pack-readme.one-row > .extension-pack {
289 290 291
	height: 142px;
}

S
Sandeep Somavarapu 已提交
292 293 294 295 296 297
.extension-editor > .body > .content > .extension-pack-readme.two-rows > .extension-pack {
	height: 224px;
}

.extension-editor > .body > .content > .extension-pack-readme.three-rows > .extension-pack {
	height: 306px;
298 299
}

300 301 302 303
.extension-editor > .body > .content > .extension-pack-readme.more-rows > .extension-pack {
	height: 326px;
}

S
Sandeep Somavarapu 已提交
304
.extension-editor > .body > .content > .extension-pack-readme.one-row > .readme-content {
305 306 307
	height: calc(100% - 142px);
}

S
Sandeep Somavarapu 已提交
308 309 310 311 312 313 314 315
.extension-editor > .body > .content > .extension-pack-readme.two-rows > .readme-content {
	height: calc(100% - 224px);
}

.extension-editor > .body > .content > .extension-pack-readme.three-rows > .readme-content {
	height: calc(100% - 306px);
}

316 317 318 319
.extension-editor > .body > .content > .extension-pack-readme.more-rows > .readme-content {
	height: calc(100% - 326px);
}

320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
.extension-editor > .body > .content > .extension-pack-readme > .extension-pack > .header,
.extension-editor > .body > .content > .extension-pack-readme > .extension-pack > .footer {
	margin-bottom: 10px;
	margin-right: 30px;
	font-weight: bold;
	font-size: 120%;
	border-bottom: 1px solid rgba(128, 128, 128, 0.22);
	padding: 4px 6px;
	line-height: 22px;
}

.extension-editor > .body > .content > .extension-pack-readme > .extension-pack > .extension-pack-content {
	height: calc(100% - 60px);
}

.extension-editor > .body > .content > .extension-pack-readme > .extension-pack > .extension-pack-content > .monaco-scrollable-element {
	height: 100%;
}

.extension-editor > .body > .content .extension-pack-readme > .extension-pack > .extension-pack-content > .monaco-scrollable-element > .subcontent {
	height: 100%;
	overflow-y: scroll;
	box-sizing: border-box;
}

J
Joao Moreno 已提交
345
.extension-editor > .body > .content > .monaco-scrollable-element > .subcontent {
346 347 348 349 350 351 352
	height: 100%;
	padding: 20px;
	overflow-y: scroll;
	box-sizing: border-box;
}

.extension-editor > .body > .content table {
J
Joao Moreno 已提交
353
	width: 100%;
354 355 356 357
	border-spacing: 0;
	border-collapse: separate;
}

J
Joao Moreno 已提交
358 359 360 361
.extension-editor > .body > .content details:not(:first-child) {
	margin-top: 20px;
}

362 363 364 365 366
.extension-editor > .body > .content details > summary {
	cursor: pointer;
	margin-bottom: 10px;
	font-weight: bold;
	font-size: 120%;
J
Joao Moreno 已提交
367
	border-bottom: 1px solid rgba(128, 128, 128, 0.22);
368 369
	padding: 3px 6px;
	line-height: 22px;
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
}

.extension-editor > .body > .content details > summary::-webkit-details-marker {
	color: rgba(128, 128, 128, 0.5);
}

.extension-editor > .body > .content table tr:nth-child(odd) {
	background-color: rgba(130, 130, 130, 0.04);
}

.extension-editor > .body > .content table tr:not(:first-child):hover {
	background-color: rgba(128, 128, 128, 0.15);
}

.extension-editor > .body > .content table th,
.extension-editor > .body > .content table td {
	padding: 2px 16px 2px 4px;
}

.extension-editor > .body > .content table th:last-child,
.extension-editor > .body > .content table td:last-child {
	padding: 2px 4px;
}

.extension-editor > .body > .content table th {
	text-align: left;
E
EbXpJ6bp 已提交
396
	word-break: keep-all;
397 398
}

J
Joao Moreno 已提交
399
.extension-editor > .body > .content table code:not(:empty) {
400
	font-family: var(--monaco-monospace-font);
401
	font-size: 90%;
402 403 404
	background-color: rgba(128, 128, 128, 0.17);
	border-radius: 4px;
	padding: 1px 4px;
S
Sandeep Somavarapu 已提交
405 406
}

407 408 409 410 411 412 413 414 415 416 417 418
.extension-editor > .body > .content table .colorBox {
	box-sizing: border-box;
	width: 0.8em;
	height: 0.8em;
	display: inline-block;
	border-width: 0.1em;
	border-style: solid;
	border-color: rgb(0, 0, 0);
	margin: 0em 0.2em;
	vertical-align: middle;
}

419 420
.monaco-workbench.vs-dark .extension-editor > .body > .content table .colorBox,
.monaco-workbench.hc-black .extension-editor > .body > .content table .colorBox {
421 422 423
	border-color: rgb(238, 238, 238);
}

S
Sandeep Somavarapu 已提交
424
.extension-editor .subcontent .monaco-list-row .content .unknown-extension {
425 426 427
	line-height: 62px;
}

S
Sandeep Somavarapu 已提交
428
.extension-editor .subcontent .monaco-list-row .content .unknown-extension > .error-marker {
429 430 431 432
	background-color: #BE1100;
	padding: 2px 4px;
	font-weight: bold;
	font-size: 11px;
S
Sandeep Somavarapu 已提交
433
	color: #CCC;
434 435
}

S
Sandeep Somavarapu 已提交
436
.extension-editor .subcontent .monaco-list-row .unknown-extension > .message {
437 438 439 440 441
	padding-left: 10px;
	font-weight: bold;
	font-size: 14px;
}

S
Sandeep Somavarapu 已提交
442
.extension-editor .subcontent .monaco-list-row .extension {
S
Sandeep Somavarapu 已提交
443 444 445 446
	display: flex;
	align-items: center;
}

S
Sandeep Somavarapu 已提交
447
.extension-editor .subcontent .monaco-list-row .extension > .details {
S
Sandeep Somavarapu 已提交
448 449 450 451 452
	flex: 1;
	overflow: hidden;
	padding-left: 10px;
}

S
Sandeep Somavarapu 已提交
453
.extension-editor .subcontent .monaco-list-row .extension > .details > .header {
S
Sandeep Somavarapu 已提交
454
	display: flex;
455
	align-items: center;
S
Sandeep Somavarapu 已提交
456
	line-height: 19px;
S
Sandeep Somavarapu 已提交
457 458 459
	overflow: hidden;
}

S
Sandeep Somavarapu 已提交
460
.extension-editor .subcontent .monaco-list-row .extension > .icon {
S
Sandeep Somavarapu 已提交
461 462
	height: 40px;
	width: 40px;
E
EbXpJ6bp 已提交
463
	object-fit: contain;
S
Sandeep Somavarapu 已提交
464 465
}

S
Sandeep Somavarapu 已提交
466
.extension-editor .subcontent .monaco-list-row .extension > .details > .header > .name {
S
Sandeep Somavarapu 已提交
467 468 469 470
	font-weight: bold;
	font-size: 16px;
}

S
Sandeep Somavarapu 已提交
471
.extension-editor .subcontent .monaco-list-row .extension > .details > .header > .name:hover {
472 473 474
	text-decoration: underline;
}

S
Sandeep Somavarapu 已提交
475
.extension-editor .subcontent .monaco-list-row .extension > .details > .header > .identifier {
S
Sandeep Somavarapu 已提交
476 477
	font-size: 90%;
	opacity: 0.6;
478 479 480 481
	margin-left: 10px;
	background: rgba(173, 173, 173, 0.31);
	padding: 0px 4px;
	border-radius: 4px;
S
Sandeep Somavarapu 已提交
482 483
}

S
Sandeep Somavarapu 已提交
484
.extension-editor .subcontent .monaco-list-row .extension > .details > .footer {
S
Sandeep Somavarapu 已提交
485
	display: flex;
S
Sandeep Somavarapu 已提交
486
	line-height: 19px;
S
Sandeep Somavarapu 已提交
487 488 489 490
	overflow: hidden;
	padding-top: 5px;
}

S
Sandeep Somavarapu 已提交
491
.extension-editor .subcontent .monaco-list-row .extension > .details > .footer > .author {
S
Sandeep Somavarapu 已提交
492 493 494
	font-size: 90%;
	font-weight: 600;
	opacity: 0.6;
495
}
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513

.extension-editor .extensions-grid-view {
	display: flex;
	flex-wrap: wrap;
}

.extension-editor .extensions-grid-view > .extension-container {
	margin: 0 10px 20px 0;
}

.extension-editor .extensions-grid-view .extension-list-item {
	cursor: default;
}

.extension-editor .extensions-grid-view .extension-list-item > .details .header > .name {
	cursor: pointer;
}

S
Sandeep Somavarapu 已提交
514 515 516 517 518 519
.extension-editor .extensions-grid-view .extension-list-item > .details > .header-container > .header > .version,
.extension-editor .extensions-grid-view .extension-list-item > .details > .header-container > .header > .ratings,
.extension-editor .extensions-grid-view .extension-list-item > .details > .header-container > .header > .install-count {
	display: none;
}

520 521 522 523
.extension-editor .extensions-grid-view > .extension-container:focus > .extension-list-item > .details .header > .name,
.extension-editor .extensions-grid-view > .extension-container:focus > .extension-list-item > .details .header > .name:hover {
	text-decoration: underline;
}