Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/platform/actionWidget/browser/actionWidget.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
.action-widget {
7
font-size: 13px;
8
border-radius: 0;
9
min-width: 100px;
10
max-width: 80vw;
11
z-index: 40;
12
display: block;
13
width: 100%;
14
border: 1px solid var(--vscode-editorWidget-border) !important;
15
border-radius: 5px;
16
background-color: var(--vscode-editorActionList-background);
17
color: var(--vscode-editorActionList-foreground);
18
padding: 4px;
19
box-shadow: 0 2px 8px var(--vscode-widget-shadow);
20
}
21
22
.context-view-block {
23
position: fixed;
24
cursor: initial;
25
left: 0;
26
top: 0;
27
width: 100%;
28
height: 100%;
29
z-index: -1;
30
}
31
32
.context-view-pointerBlock {
33
position: fixed;
34
cursor: initial;
35
left: 0;
36
top: 0;
37
width: 100%;
38
height: 100%;
39
z-index: 2;
40
}
41
42
.action-widget .monaco-list {
43
user-select: none;
44
-webkit-user-select: none;
45
border: none !important;
46
border-width: 0 !important;
47
}
48
49
.action-widget .monaco-list:focus:before {
50
outline: 0 !important;
51
}
52
53
.action-widget .monaco-list .monaco-scrollable-element {
54
overflow: visible;
55
}
56
57
/** Styles for each row in the list element **/
58
.action-widget .monaco-list .monaco-list-row {
59
padding: 0 0 0 8px;
60
white-space: nowrap;
61
cursor: pointer;
62
touch-action: none;
63
width: 100%;
64
border-radius: 4px;
65
}
66
67
.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled) {
68
background-color: var(--vscode-editorActionList-focusBackground) !important;
69
color: var(--vscode-editorActionList-focusForeground);
70
outline: 1px solid var(--vscode-menu-selectionBorder, transparent);
71
outline-offset: -1px;
72
}
73
74
.action-widget .monaco-list-row.group-header {
75
color: var(--vscode-descriptionForeground) !important;
76
font-weight: 600;
77
font-size: 12px;
78
}
79
80
.action-widget .monaco-list-row.group-header:not(:first-of-type) {
81
margin-top: 2px;
82
}
83
84
.action-widget .monaco-scrollable-element .monaco-list-rows .monaco-list-row.separator {
85
border-top: 1px solid var(--vscode-editorHoverWidget-border);
86
color: var(--vscode-descriptionForeground);
87
font-size: 12px;
88
padding: 0;
89
margin: 4px 0 0 0;
90
cursor: default;
91
user-select: none;
92
border-radius: 0;
93
}
94
95
.action-widget .monaco-scrollable-element .monaco-list-rows .monaco-list-row.separator.focused {
96
outline: 0 solid;
97
background-color: transparent;
98
border-radius: 0;
99
}
100
101
.action-widget .monaco-list-row.separator:first-of-type {
102
border-top: none;
103
margin-top: 0;
104
}
105
106
.action-widget .monaco-list .group-header,
107
.action-widget .monaco-list .option-disabled,
108
.action-widget .monaco-list .option-disabled:before,
109
.action-widget .monaco-list .option-disabled .focused,
110
.action-widget .monaco-list .option-disabled .focused:before {
111
cursor: default !important;
112
-webkit-touch-callout: none;
113
-webkit-user-select: none;
114
user-select: none;
115
background-color: transparent !important;
116
outline: 0 solid !important;
117
}
118
119
.action-widget .monaco-list-row.action {
120
display: flex;
121
gap: 8px;
122
align-items: center;
123
}
124
125
.action-widget .monaco-list-row.action.option-disabled,
126
.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,
127
.action-widget .monaco-list-row.action.option-disabled .codicon,
128
.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled {
129
color: var(--vscode-disabledForeground);
130
}
131
132
133
.action-widget .monaco-list-row.action:not(.option-disabled) .codicon {
134
color: inherit;
135
}
136
137
.action-widget .monaco-list-row.action .title {
138
flex: 1;
139
overflow: hidden;
140
text-overflow: ellipsis;
141
}
142
143
.action-widget .monaco-list-row.action .monaco-keybinding > .monaco-keybinding-key {
144
background-color: var(--vscode-keybindingLabel-background);
145
color: var(--vscode-keybindingLabel-foreground);
146
border-style: solid;
147
border-width: 1px;
148
border-radius: 3px;
149
border-color: var(--vscode-keybindingLabel-border);
150
border-bottom-color: var(--vscode-keybindingLabel-bottomBorder);
151
box-shadow: inset 0 -1px 0 var(--vscode-widget-shadow);
152
}
153
154
/* Action bar */
155
156
.action-widget .action-widget-action-bar {
157
background-color: var(--vscode-editorActionList-background);
158
border-top: 1px solid var(--vscode-editorHoverWidget-border);
159
margin-top: 2px;
160
}
161
162
.action-widget .action-widget-action-bar::before {
163
display: block;
164
content: "";
165
width: 100%;
166
}
167
168
.action-widget .action-widget-action-bar .actions-container {
169
padding: 3px 8px 0;
170
}
171
172
.action-widget-action-bar .action-label {
173
color: var(--vscode-textLink-activeForeground);
174
font-size: 12px;
175
line-height: 22px;
176
padding: 0;
177
pointer-events: all;
178
}
179
180
.action-widget-action-bar .action-item {
181
margin-right: 16px;
182
pointer-events: none;
183
}
184
185
.action-widget-action-bar .action-label:hover {
186
background-color: transparent !important;
187
}
188
189
.monaco-action-bar .actions-container.highlight-toggled .action-label.checked {
190
/* The important gives this rule precedence over the hover rule. */
191
background: var(--vscode-actionBar-toggledBackground) !important;
192
}
193
194
.action-widget .monaco-list .monaco-list-row .description {
195
opacity: 0.7;
196
margin-left: 0.5em;
197
font-size: 0.9em;
198
}
199
200