Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/browser/viewParts/viewLines/viewLines.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
/* Uncomment to see lines flashing when they're painted */
7
/*.monaco-editor .view-lines > .view-line {
8
background-color: none;
9
animation-name: flash-background;
10
animation-duration: 800ms;
11
}
12
@keyframes flash-background {
13
0% { background-color: lightgreen; }
14
100% { background-color: none }
15
}*/
16
17
.mtkcontrol {
18
color: rgb(255, 255, 255) !important;
19
background: rgb(150, 0, 0) !important;
20
}
21
22
.mtkoverflow {
23
background-color: var(--vscode-button-background, var(--vscode-editor-background));
24
color: var(--vscode-button-foreground, var(--vscode-editor-foreground));
25
border-width: 1px;
26
border-style: solid;
27
border-color: var(--vscode-contrastBorder);
28
border-radius: 2px;
29
padding: 4px;
30
cursor: pointer;
31
}
32
.mtkoverflow:hover {
33
background-color: var(--vscode-button-hoverBackground);
34
}
35
36
.monaco-editor.no-user-select .lines-content,
37
.monaco-editor.no-user-select .view-line,
38
.monaco-editor.no-user-select .view-lines {
39
user-select: none;
40
-webkit-user-select: none;
41
}
42
/* Use user-select: text for lookup feature on macOS */
43
/* https://github.com/microsoft/vscode/issues/85632 */
44
.monaco-editor.mac .lines-content:hover,
45
.monaco-editor.mac .view-line:hover,
46
.monaco-editor.mac .view-lines:hover {
47
user-select: text;
48
-webkit-user-select: text;
49
-ms-user-select: text;
50
}
51
52
.monaco-editor.enable-user-select {
53
user-select: initial;
54
-webkit-user-select: initial;
55
}
56
57
.monaco-editor .view-lines {
58
white-space: nowrap;
59
}
60
61
.monaco-editor .view-line {
62
box-sizing: border-box;
63
position: absolute;
64
width: 100%;
65
}
66
67
/* There are view-lines in view-zones. We have to make sure this rule does not apply to them, as they don't set a line height */
68
.monaco-editor .lines-content > .view-lines > .view-line > span {
69
top: 0;
70
bottom: 0;
71
position: absolute;
72
}
73
74
.monaco-editor .mtkw {
75
color: var(--vscode-editorWhitespace-foreground) !important;
76
}
77
78
.monaco-editor .mtkz {
79
display: inline-block;
80
color: var(--vscode-editorWhitespace-foreground) !important;
81
}
82
83
/* TODO@tokenization bootstrap fix */
84
/*.monaco-editor .view-line > span > span {
85
float: none;
86
min-height: inherit;
87
margin-left: inherit;
88
}*/
89
90