sidebyside.css 6.8 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.
 *--------------------------------------------------------------------------------------------*/

A
Alex Dima 已提交
6
/* Editor Container Styles */
E
Erich Gamma 已提交
7

8
.vs .monaco-workbench .editor:not(.empty) > .content {
E
Erich Gamma 已提交
9
	background-color: #F3F3F3;
10 11
}

12
.vs-dark .monaco-workbench .editor:not(.empty) > .content {
13 14 15 16
	background-color: #252526;
}

.vs .monaco-workbench .editor > .content.dragged {
E
Erich Gamma 已提交
17 18 19 20
	border-left: 1px solid #E7E7E7;
	border-right: 1px solid #E7E7E7;
}

21
.vs-dark .monaco-workbench .editor > .content.dragged {
E
Erich Gamma 已提交
22 23 24 25
	border-left: 1px solid #444;
	border-right: 1px solid #444;
}

A
Alex Dima 已提交
26
.monaco-workbench .editor > .content > .one-editor-container {
E
Erich Gamma 已提交
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
	position: absolute;

	/* use border box to be able to draw a border as separator between editors */
	box-sizing:	border-box;
}

.monaco-workbench .editor > .content > .editor-left {
	left: 0;
}

.monaco-workbench .editor > .content > .editor-right {
	right: 0;
}

.monaco-workbench .editor > .content > .one-editor-container.dragged {
	box-sizing: content-box;
}

45
.vs .monaco-workbench .editor > .content > .one-editor-container.dragged {
E
Erich Gamma 已提交
46 47 48 49
	border-left: 1px solid #E7E7E7;
	border-right: 1px solid #E7E7E7;
}

50
.vs-dark .monaco-workbench .editor > .content > .one-editor-container.dragged {
E
Erich Gamma 已提交
51 52 53 54 55
	border-left: 1px solid #444;
	border-right: 1px solid #444;
}

.monaco-workbench .editor > .content > .one-editor-container.draggedunder {
56
	transition: left 200ms ease-out;
E
Erich Gamma 已提交
57 58 59
}

.monaco-workbench .editor > .content > .editor-right.draggedunder {
60
	transition-property: right;
E
Erich Gamma 已提交
61 62
}

63
.vs .monaco-workbench .editor > .content > .editor-center {
E
Erich Gamma 已提交
64 65 66
	border-left: 1px solid #E7E7E7;
}

67
.vs-dark .monaco-workbench .editor > .content > .editor-center {
E
Erich Gamma 已提交
68 69 70
	border-left: 1px solid #444;
}

71
.vs .monaco-workbench .editor > .content > .editor-right {
E
Erich Gamma 已提交
72 73 74
	border-left: 1px solid #E7E7E7;
}

75
.vs-dark .monaco-workbench .editor > .content > .editor-right {
E
Erich Gamma 已提交
76 77 78 79 80 81 82 83 84
	border-left: 1px solid #444;
}

.monaco-workbench > .editor > .content .editor-container {
	height: calc(100% - 35px); /* Editor is below editor title */
}

/* Editor Title Styles */

B
Benjamin Pasero 已提交
85 86 87 88
.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label-actions .action-label {
	width: 12px; /* move the actions close to the label */
}

B
Benjamin Pasero 已提交
89 90 91 92
.monaco-workbench > .part.editor > .content .inactive .title .title-label-actions {
	opacity: 0.5;
}

B
Benjamin Pasero 已提交
93 94 95 96
.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label {
	padding-left: 0; /* remove padding because we have the title label actions to the left */
}

E
Erich Gamma 已提交
97 98 99 100
.monaco-workbench > .part.editor > .content .inactive .title {
	cursor: pointer;
}

101 102 103 104 105 106 107 108
.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label {
	font-style: italic;
}

.monaco-workbench > .part.editor > .content > .one-editor-container > .title.pinned .title-label {
	font-style: normal;
}

109
.vs .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label a {
E
Erich Gamma 已提交
110 111 112
	color: #333333;
}

113
.vs .monaco-workbench > .part.editor > .content .inactive .title .title-label a {
E
Erich Gamma 已提交
114 115 116
	color: rgba(51, 51, 51, 0.5);
}

117
.vs-dark .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label a {
E
Erich Gamma 已提交
118 119 120
	color: white;
}

121
.vs-dark .monaco-workbench > .part.editor > .content .inactive .title .title-label a {
E
Erich Gamma 已提交
122 123 124 125 126 127 128 129 130
	color: rgba(255, 255, 255, 0.5);
}

.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label span {
	margin-left: 0.5em;
	font-size: 0.9em;
	cursor: pointer;
}

131
.vs .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label span {
E
Erich Gamma 已提交
132 133 134
	color: rgba(108, 108, 108, 0.7);
}

135
.vs-dark .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label span {
E
Erich Gamma 已提交
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
	color: rgba(204, 204, 204, 0.7);
}

.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label .state-description {
	position: absolute;
	top: 12px;
	right: 0;
	height: 100%;
}

.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label .state-description .inner {
	text-transform: uppercase;
	font-size: 11px !important;
	padding: 0 10px 0 12px;
	cursor: default;
}

153
.vs .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label .state-description .inner {
E
Erich Gamma 已提交
154 155 156
	color: rgb(51, 51, 51);
}

157
.vs-dark .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label .state-description .inner {
E
Erich Gamma 已提交
158 159 160 161 162 163 164 165 166 167 168 169
	color: white;
}

.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label .state-description .inner.error,
.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label .state-description .inner.conflict {
	color: #E02020;
}

.monaco-workbench > .part.editor > .content .inactive .title .title-label .state-description .inner {
	opacity: 0.5;
}

B
Benjamin Pasero 已提交
170 171
.monaco-workbench .close-editor-action,
.monaco-workbench .close-editor-decorated-action:hover {
E
Erich Gamma 已提交
172 173 174
	background: url('close.svg') center center no-repeat;
}

B
Benjamin Pasero 已提交
175 176 177
.vs-dark .monaco-workbench .close-editor-action,
.vs-dark .monaco-workbench .close-editor-decorated-action:hover {
	background: url('close-dark.svg') center center no-repeat;
E
Erich Gamma 已提交
178 179
}

B
Benjamin Pasero 已提交
180 181 182 183 184
.monaco-workbench .close-editor-decorated-action {
	background: url('close-decorated.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .close-editor-decorated-action {
B
Benjamin Pasero 已提交
185
	background: url('close-decorated-dark.svg') center center no-repeat;
B
Benjamin Pasero 已提交
186 187
}

E
Erich Gamma 已提交
188 189 190 191
.monaco-workbench .split-editor-action {
	background: url('SplitEditor.svg') center center no-repeat;
}

192
.vs-dark .monaco-workbench .split-editor-action {
E
Erich Gamma 已提交
193 194 195 196 197
	background: url('SplitEditor_inverse.svg') center center no-repeat;
}

/* High Contrast Theming */

198
.hc-black .monaco-workbench .close-editor-action,
B
Benjamin Pasero 已提交
199
.hc-black .monaco-workbench .close-editor-decorated-action,
200
.hc-black .monaco-workbench .split-editor-action {
E
Erich Gamma 已提交
201 202 203
	background: none;
}

B
Benjamin Pasero 已提交
204 205 206 207
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-label-actions .action-label {
	width: 24px;
}

B
Benjamin Pasero 已提交
208 209 210 211 212 213 214 215 216
.hc-black .monaco-workbench .close-editor-decorated-action:before {
	content: url('close-decorated-inverse.svg');
	position: absolute;
	top: 12px;
	left: 8px;
	height: 16px;
	width: 16px;
}

217
.hc-black .monaco-workbench .close-editor-action:before {
E
Erich Gamma 已提交
218 219 220 221 222 223 224 225
	content: url('close-inverse.svg');
	position: absolute;
	top: 12px;
	left: 8px;
	height: 16px;
	width: 16px;
}

226
.hc-black .monaco-workbench .split-editor-action:before {
E
Erich Gamma 已提交
227 228 229 230 231 232 233 234
	content: url('SplitEditor_inverse.svg');
	position: absolute;
	top: 12px;
	left: 8px;
	height: 16px;
	width: 16px;
}

235
.hc-black .monaco-workbench .editor > .content > .editor-center {
E
Erich Gamma 已提交
236 237 238
	border-left: 1px solid #6FC3DF;
}

239
.hc-black .monaco-workbench .editor > .content > .editor-right {
E
Erich Gamma 已提交
240
	border-left: 1px solid #6FC3DF;
241
}