Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/browser/widget/multiDiffEditor/style.css
5221 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
.monaco-component.multiDiffEditor {
7
background: var(--vscode-multiDiffEditor-background);
8
9
position: relative;
10
11
height: 100%;
12
width: 100%;
13
14
overflow-y: hidden;
15
16
> div {
17
position: absolute;
18
top: 0px;
19
left: 0px;
20
21
height: 100%;
22
width: 100%;
23
24
&.placeholder {
25
visibility: hidden;
26
27
&.visible {
28
visibility: visible;
29
}
30
31
display: grid;
32
place-items: center;
33
place-content: center;
34
}
35
}
36
37
> .multi-diff-root-floating-menu {
38
position: absolute;
39
top: auto;
40
right: 28px;
41
bottom: 24px;
42
left: auto;
43
width: auto;
44
}
45
46
.active {
47
--vscode-multiDiffEditor-border: var(--vscode-focusBorder);
48
}
49
50
.multiDiffEntry {
51
display: flex;
52
flex-direction: column;
53
flex: 1;
54
overflow: hidden;
55
56
57
.collapse-button {
58
margin: 0 5px;
59
cursor: pointer;
60
61
a {
62
display: block;
63
}
64
}
65
66
.header {
67
z-index: 1000;
68
background: var(--vscode-editor-background);
69
70
&:not(.collapsed) .header-content {
71
border-bottom: 1px solid var(--vscode-sideBarSectionHeader-border);
72
}
73
74
.header-content {
75
margin: 8px 0px 0px 0px;
76
padding: 4px 5px;
77
78
border-top: 1px solid var(--vscode-multiDiffEditor-border);
79
80
display: flex;
81
align-items: center;
82
83
color: var(--vscode-foreground);
84
background: var(--vscode-multiDiffEditor-headerBackground);
85
86
&.shadow {
87
box-shadow: var(--vscode-scrollbar-shadow) 0px 6px 6px -6px;
88
}
89
90
.file-path {
91
display: flex;
92
flex: 1;
93
min-width: 0;
94
95
.title {
96
font-size: 14px;
97
line-height: 22px;
98
99
&.original {
100
flex: 1;
101
min-width: 0;
102
text-overflow: ellipsis;
103
}
104
}
105
106
.status {
107
font-weight: 600;
108
opacity: 0.75;
109
margin: 0px 10px;
110
line-height: 22px;
111
112
/*
113
TODO@hediet: move colors from git extension to core!
114
&.renamed {
115
color: v ar(--vscode-gitDecoration-renamedResourceForeground);
116
}
117
118
&.deleted {
119
color: v ar(--vscode-gitDecoration-deletedResourceForeground);
120
}
121
122
&.added {
123
color: v ar(--vscode-gitDecoration-addedResourceForeground);
124
}
125
*/
126
}
127
}
128
129
.actions {
130
padding: 0 8px;
131
}
132
}
133
134
135
}
136
137
.editorParent {
138
flex: 1;
139
display: flex;
140
flex-direction: column;
141
142
border-bottom: 1px solid var(--vscode-multiDiffEditor-border);
143
overflow: hidden;
144
}
145
146
.editorContainer {
147
flex: 1;
148
}
149
}
150
}
151
152