tabstitle.css 8.3 KB
Newer Older
B
wip  
Benjamin Pasero 已提交
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
/* Title Container */
7

8 9 10 11
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.empty {
	background: inherit !important; /* prevents some ugly flickering when opening first tab */
}

12
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.tabs > .monaco-scrollable-element {
13
	flex: 1;
14 15
}

16
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.tabs > .monaco-scrollable-element .scrollbar {
B
Benjamin Pasero 已提交
17
	z-index: 3; /* on top of tabs */
18
	cursor: default;
B
Benjamin Pasero 已提交
19 20
}

21 22
/* Tabs Container */

23
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container {
B
Benjamin Pasero 已提交
24
	display: flex;
B
Benjamin Pasero 已提交
25
	height: 35px;
B
Benjamin Pasero 已提交
26 27
}

28
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container.scroll {
B
Benjamin Pasero 已提交
29 30 31
	overflow: scroll !important;
}

32
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container::-webkit-scrollbar {
B
Benjamin Pasero 已提交
33 34 35 36 37
	display: none;
}

/* Tab */

38
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab {
B
Benjamin Pasero 已提交
39 40 41 42 43
	display: flex;
	width: 120px;
	min-width: fit-content;
	white-space: nowrap;
	cursor: pointer;
44
	height: 35px;
B
Benjamin Pasero 已提交
45
	box-sizing: border-box;
46
	border: 1px solid transparent;
B
Benjamin Pasero 已提交
47 48 49
	padding-left: 10px;
}

50
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-left {
51
	flex-direction: row-reverse;
52
	padding-left: 0;
53
	padding-right: 10px;
54 55
}

56 57
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.active,
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.active:hover  {
B
Benjamin Pasero 已提交
58
	outline: 1px solid;
59 60 61 62
	outline-offset: -5px;
}

.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab:hover  {
B
Benjamin Pasero 已提交
63
	outline: 1px dashed;
64
	outline-offset: -5px;
B
Benjamin Pasero 已提交
65 66
}

67 68
/* Tab Label */

69
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab .tab-label {
70 71 72 73
	margin-top: auto;
	margin-bottom: auto;
}

74 75 76 77
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab .monaco-icon-label {
	overflow: visible; /* fixes https://github.com/Microsoft/vscode/issues/20182 */
}

78 79 80 81
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab .monaco-icon-label::before {
	height: 16px; /* tweak the icon size of the editor labels when icons are enabled */
}

B
Benjamin Pasero 已提交
82 83
/* Tab Close */

84
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab > .tab-close {
B
Benjamin Pasero 已提交
85 86 87
	margin-top: auto;
	margin-bottom: auto;
	width: 28px;
B
Benjamin Pasero 已提交
88 89
}

90
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-off > .tab-close {
91 92 93
	display: none; /* hide the close action bar when we are configured to hide it */
}

94 95 96 97
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.active .tabs-container > .tab.active > .tab-close .action-label,			/* always show it for active tab */
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.active .tabs-container > .tab > .tab-close .action-label:focus,			/* always show it on focus */
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.active .tabs-container > .tab:hover > .tab-close .action-label,			/* always show it on hover */
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.active .tabs-container > .tab.active:hover > .tab-close .action-label,		/* always show it on hover */
98
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.active .tabs-container > .tab.dirty > .tab-close .action-label {			/* always show it for dirty tabs */
B
Benjamin Pasero 已提交
99 100 101
	opacity: 1;
}

102
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.active > .tab-close .action-label,					/* show dimmed for inactive group */
103 104 105
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.active:hover > .tab-close .action-label,			/* show dimmed for inactive group */
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty > .tab-close .action-label,					/* show dimmed for inactive group */
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab:hover > .tab-close .action-label {					/* show dimmed for inactive group */
B
Benjamin Pasero 已提交
106 107 108
	opacity: 0.5;
}

109
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab > .tab-close .action-label {
B
Benjamin Pasero 已提交
110 111 112 113 114 115 116 117
	opacity: 0;
	display: block;
	height: 16px;
	width: 16px;
	background-size: 16px;
	background-position: center center;
	background-repeat: no-repeat;
	margin-right: 0.5em;
118 119
}

B
Benjamin Pasero 已提交
120
.vs .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty .close-editor-action {
B
Benjamin Pasero 已提交
121 122 123
	background: url('close-dirty.svg') center center no-repeat;
}

124
.vs-dark .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty .close-editor-action,
B
Benjamin Pasero 已提交
125
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty .close-editor-action {
B
Benjamin Pasero 已提交
126 127 128
	background: url('close-dirty-inverse.svg') center center no-repeat;
}

129
.vs .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty .close-editor-action:hover {
B
Benjamin Pasero 已提交
130
	background: url('close.svg') center center no-repeat;
131 132
}

133 134
.vs-dark .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty .close-editor-action:hover,
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty .close-editor-action:hover {
B
Benjamin Pasero 已提交
135
	background: url('close-inverse.svg') center center no-repeat;
B
Benjamin Pasero 已提交
136 137
}

138 139 140 141 142 143 144
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.active > .tab-close .action-label,
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.active:hover > .tab-close .action-label,
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.dirty > .tab-close .action-label,
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab:hover > .tab-close .action-label {
	opacity: 1 !important;
}

B
Benjamin Pasero 已提交
145 146
/* No Tab Close Button */

147
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-off {
148 149
	padding-right: 12px;
	transition: padding-right ease-in-out 100ms;
B
Benjamin Pasero 已提交
150 151
}

152
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-off.dirty {
B
Benjamin Pasero 已提交
153 154 155
	background-repeat: no-repeat;
	background-position-y: center;
	background-position-x: calc(100% - 6px); /* to the right of the tab label */
156
	padding-right: 28px; /* make room for dirty indication when we are running without close button */
B
Benjamin Pasero 已提交
157 158
}

159
.vs .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-off.dirty {
B
Benjamin Pasero 已提交
160 161 162
	background-image: url('close-dirty.svg');
}

163 164
.vs-dark .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-off.dirty,
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .tabs-container > .tab.close-button-off.dirty {
B
Benjamin Pasero 已提交
165 166 167
	background-image: url('close-dirty-inverse.svg');
}

168
/* Editor Actions */
169

170
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title .editor-actions {
B
Benjamin Pasero 已提交
171
	cursor: default;
B
wip  
Benjamin Pasero 已提交
172
	flex: initial;
173
	padding-left: 4px;
B
wip  
Benjamin Pasero 已提交
174
}