Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/base/browser/ui/iconLabel/iconlabel.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
/* ---------- Icon label ---------- */
7
8
.monaco-icon-label {
9
display: flex; /* required for icons support :before rule */
10
overflow: hidden;
11
text-overflow: ellipsis;
12
}
13
14
.monaco-icon-label::before {
15
16
/* svg icons rendered as background image */
17
background-size: 16px;
18
background-position: left center;
19
background-repeat: no-repeat;
20
padding-right: 6px;
21
width: 16px;
22
height: 22px;
23
line-height: inherit !important;
24
display: inline-block;
25
26
/* fonts icons */
27
-webkit-font-smoothing: antialiased;
28
-moz-osx-font-smoothing: grayscale;
29
vertical-align: top;
30
31
flex-shrink: 0; /* fix for https://github.com/microsoft/vscode/issues/13787 */
32
}
33
34
.monaco-icon-label-iconpath {
35
width: 16px;
36
height: 16px;
37
padding-left: 2px;
38
margin-top: 2px;
39
display: flex;
40
}
41
42
.monaco-icon-label-container.disabled {
43
color: var(--vscode-disabledForeground);
44
}
45
.monaco-icon-label > .monaco-icon-label-container {
46
min-width: 0;
47
overflow: hidden;
48
text-overflow: ellipsis;
49
flex: 1;
50
}
51
52
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {
53
color: inherit;
54
white-space: pre; /* enable to show labels that include multiple whitespaces */
55
}
56
57
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {
58
margin: 0 2px;
59
opacity: 0.5;
60
}
61
62
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-suffix-container > .label-suffix {
63
opacity: .7;
64
white-space: pre;
65
}
66
67
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
68
opacity: .7;
69
margin-left: 0.5em;
70
font-size: 0.9em;
71
white-space: pre; /* enable to show labels that include multiple whitespaces */
72
}
73
74
.monaco-icon-label.nowrap > .monaco-icon-label-container > .monaco-icon-description-container > .label-description{
75
white-space: nowrap
76
}
77
78
.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
79
opacity: .95;
80
}
81
82
.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,
83
.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
84
font-style: italic;
85
}
86
87
.monaco-icon-label.deprecated {
88
text-decoration: line-through;
89
opacity: 0.66;
90
}
91
92
.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,
93
.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
94
text-decoration: line-through;
95
}
96
97
.monaco-icon-label::after {
98
opacity: 0.75;
99
font-size: 90%;
100
font-weight: 600;
101
margin: auto 16px 0 5px; /* https://github.com/microsoft/vscode/issues/113223 */
102
text-align: center;
103
}
104
105
/* make sure selection color wins when a label is being selected */
106
.monaco-list:focus .selected .monaco-icon-label, /* list */
107
.monaco-list:focus .selected .monaco-icon-label::after
108
{
109
color: inherit !important;
110
}
111
112
.monaco-list-row.focused.selected .label-description,
113
.monaco-list-row.selected .label-description {
114
opacity: .8;
115
}
116
117