resourceviewer.css 1.9 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

6 7 8 9 10
.monaco-resource-viewer:focus {
	outline: none !important;
}

.monaco-resource-viewer {
B
Benjamin Pasero 已提交
11
	padding: 5px 0 0 10px;
B
Benjamin Pasero 已提交
12
	box-sizing: border-box;
13 14 15
}

.monaco-resource-viewer.image {
16
	padding: 0;
17 18
	display: flex;
	box-sizing: border-box;
19 20
}

21 22 23 24 25 26 27
.monaco-resource-viewer.image img {
	padding: 0;
	background-position: 0 0, 8px 8px;
	background-size: 16px 16px;
}

.vs .monaco-resource-viewer.image img {
28
	background-image:
29 30
		linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230)),
		linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230));
31 32
}

33
.vs-dark .monaco-resource-viewer.image img {
34
	background-image:
35 36
		linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20)),
		linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20));
37 38
}

39 40 41 42
.monaco-resource-viewer img.pixelated {
	image-rendering: pixelated;
}

43
.monaco-resource-viewer img.scale-to-fit {
44 45
	max-width: calc(100% - 20px);
	max-height: calc(100% - 20px);
46 47 48 49
	object-fit: contain;
}

.monaco-resource-viewer img {
50
	margin: auto;
51 52
}

53
.monaco-resource-viewer.zoom-in {
54 55 56
	cursor: zoom-in;
}

57
.monaco-resource-viewer.zoom-out {
58
	cursor: zoom-out;
59 60
}

61 62 63 64
.monaco-workbench .part.statusbar > .statusbar-item > a.zoom-statusbar-item {
	padding: 0 5px 0 5px;
}

65 66
.monaco-resource-viewer .embedded-link,
.monaco-resource-viewer .embedded-link:hover {
67
	cursor: pointer;
68
	text-decoration: underline;
69
	margin-left: 5px;
70
}