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
3296 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
.active {
38
--vscode-multiDiffEditor-border: var(--vscode-focusBorder);
39
}
40
41
.multiDiffEntry {
42
display: flex;
43
flex-direction: column;
44
flex: 1;
45
overflow: hidden;
46
47
48
.collapse-button {
49
margin: 0 5px;
50
cursor: pointer;
51
52
a {
53
display: block;
54
}
55
}
56
57
.header {
58
z-index: 1000;
59
background: var(--vscode-editor-background);
60
61
&:not(.collapsed) .header-content {
62
border-bottom: 1px solid var(--vscode-sideBarSectionHeader-border);
63
}
64
65
.header-content {
66
margin: 8px 0px 0px 0px;
67
padding: 4px 5px;
68
69
border-top: 1px solid var(--vscode-multiDiffEditor-border);
70
71
display: flex;
72
align-items: center;
73
74
color: var(--vscode-foreground);
75
background: var(--vscode-multiDiffEditor-headerBackground);
76
77
&.shadow {
78
box-shadow: var(--vscode-scrollbar-shadow) 0px 6px 6px -6px;
79
}
80
81
.file-path {
82
display: flex;
83
flex: 1;
84
min-width: 0;
85
86
.title {
87
font-size: 14px;
88
line-height: 22px;
89
90
&.original {
91
flex: 1;
92
min-width: 0;
93
text-overflow: ellipsis;
94
}
95
}
96
97
.status {
98
font-weight: 600;
99
opacity: 0.75;
100
margin: 0px 10px;
101
line-height: 22px;
102
103
/*
104
TODO@hediet: move colors from git extension to core!
105
&.renamed {
106
color: v ar(--vscode-gitDecoration-renamedResourceForeground);
107
}
108
109
&.deleted {
110
color: v ar(--vscode-gitDecoration-deletedResourceForeground);
111
}
112
113
&.added {
114
color: v ar(--vscode-gitDecoration-addedResourceForeground);
115
}
116
*/
117
}
118
}
119
120
.actions {
121
padding: 0 8px;
122
}
123
}
124
125
126
}
127
128
.editorParent {
129
flex: 1;
130
display: flex;
131
flex-direction: column;
132
133
border-bottom: 1px solid var(--vscode-multiDiffEditor-border);
134
overflow: hidden;
135
}
136
137
.editorContainer {
138
flex: 1;
139
}
140
}
141
}
142
143