Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/base/browser/ui/actionbar/actionbar.css
5241 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-action-bar {
7
white-space: nowrap;
8
height: 100%;
9
}
10
11
.monaco-action-bar .actions-container {
12
display: flex;
13
margin: 0 auto;
14
padding: 0;
15
height: 100%;
16
width: 100%;
17
align-items: center;
18
}
19
20
.monaco-action-bar.vertical .actions-container {
21
display: inline-block;
22
}
23
24
.monaco-action-bar .action-item {
25
display: block;
26
align-items: center;
27
justify-content: center;
28
cursor: pointer;
29
position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
30
}
31
32
.monaco-action-bar .action-item.disabled {
33
cursor: default;
34
}
35
36
.monaco-action-bar .action-item .icon,
37
.monaco-action-bar .action-item .codicon {
38
display: block;
39
}
40
41
.monaco-action-bar .action-item .codicon {
42
display: flex;
43
align-items: center;
44
width: 16px;
45
height: 16px;
46
}
47
48
.monaco-action-bar .action-label,
49
.monaco-action-bar .action-item .keybinding {
50
display: flex;
51
font-size: 11px;
52
padding: 3px;
53
border-radius: 5px;
54
}
55
56
.monaco-action-bar .action-item.disabled .action-label:not(.icon) ,
57
.monaco-action-bar .action-item.disabled .action-label:not(.icon)::before,
58
.monaco-action-bar .action-item.disabled .action-label:not(.icon):hover {
59
color: var(--vscode-disabledForeground);
60
}
61
62
/* Unable to change color of SVGs, hence opacity is used */
63
.monaco-action-bar .action-item.disabled .action-label.icon ,
64
.monaco-action-bar .action-item.disabled .action-label.icon::before,
65
.monaco-action-bar .action-item.disabled .action-label.icon:hover {
66
opacity: 0.6;
67
}
68
69
/* Vertical actions */
70
71
.monaco-action-bar.vertical {
72
text-align: left;
73
}
74
75
.monaco-action-bar.vertical .action-item {
76
display: block;
77
}
78
79
.monaco-action-bar.vertical .action-item .action-label.separator {
80
display: block;
81
border-bottom: 1px solid var(--vscode-menu-separatorBackground, var(--vscode-disabledForeground));
82
padding-top: 1px;
83
margin: 4px .8em;
84
width: 100%;
85
height: 0;
86
background-color: transparent;
87
}
88
89
.monaco-action-bar .action-item .action-label.separator {
90
width: 1px;
91
height: 16px;
92
margin: 5px 4px !important;
93
cursor: default;
94
min-width: 1px;
95
padding: 0;
96
background-color: var(--vscode-disabledForeground);
97
}
98
99
.secondary-actions .monaco-action-bar .action-label {
100
margin-left: 6px;
101
}
102
103
/* Action Items */
104
.monaco-action-bar .action-item.select-container {
105
overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
106
flex: 1;
107
max-width: 170px;
108
min-width: 60px;
109
display: flex;
110
align-items: center;
111
justify-content: center;
112
margin-right: 10px;
113
}
114
115
.monaco-action-bar .action-item.action-dropdown-item {
116
display: flex;
117
}
118
119
.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator {
120
display: flex;
121
align-items: center;
122
cursor: default;
123
}
124
125
.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator > div {
126
width: 1px;
127
}
128
129