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
5236 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: 22px;
37
margin-right: 6px;
38
display: flex;
39
}
40
41
.monaco-icon-label-container.disabled {
42
color: var(--vscode-disabledForeground);
43
}
44
.monaco-icon-label > .monaco-icon-label-container {
45
min-width: 0;
46
overflow: hidden;
47
text-overflow: ellipsis;
48
flex: 1;
49
}
50
51
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {
52
color: inherit;
53
white-space: pre; /* enable to show labels that include multiple whitespaces */
54
}
55
56
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {
57
margin: 0 2px;
58
opacity: 0.5;
59
}
60
61
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-suffix-container > .label-suffix {
62
opacity: .7;
63
white-space: pre;
64
}
65
66
.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
67
opacity: .7;
68
margin-left: 0.5em;
69
font-size: 0.9em;
70
white-space: pre; /* enable to show labels that include multiple whitespaces */
71
}
72
73
.monaco-icon-label.nowrap > .monaco-icon-label-container > .monaco-icon-description-container > .label-description{
74
white-space: nowrap
75
}
76
77
.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
78
opacity: .95;
79
}
80
81
.monaco-icon-label.bold > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,
82
.monaco-icon-label.bold > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
83
font-weight: bold;
84
}
85
86
.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,
87
.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
88
font-style: italic;
89
}
90
91
.monaco-icon-label.deprecated {
92
text-decoration: line-through;
93
opacity: 0.66;
94
}
95
96
.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,
97
.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {
98
text-decoration: line-through;
99
}
100
101
.monaco-icon-label::after {
102
opacity: 0.75;
103
font-size: 90%;
104
font-weight: 600;
105
margin: auto 16px 0 5px; /* https://github.com/microsoft/vscode/issues/113223 */
106
text-align: center;
107
}
108
109
/* make sure selection color wins when a label is being selected */
110
.monaco-list:focus .selected .monaco-icon-label, /* list */
111
.monaco-list:focus .selected .monaco-icon-label::after
112
{
113
color: inherit !important;
114
}
115
116
.monaco-list-row.focused.selected .label-description,
117
.monaco-list-row.selected .label-description {
118
opacity: .8;
119
}
120
121