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
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
.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
display: flex;
50
font-size: 11px;
51
padding: 3px;
52
border-radius: 5px;
53
}
54
55
.monaco-action-bar .action-item.disabled .action-label:not(.icon) ,
56
.monaco-action-bar .action-item.disabled .action-label:not(.icon)::before,
57
.monaco-action-bar .action-item.disabled .action-label:not(.icon):hover {
58
color: var(--vscode-disabledForeground);
59
}
60
61
/* Unable to change color of SVGs, hence opacity is used */
62
.monaco-action-bar .action-item.disabled .action-label.icon ,
63
.monaco-action-bar .action-item.disabled .action-label.icon::before,
64
.monaco-action-bar .action-item.disabled .action-label.icon:hover {
65
opacity: 0.6;
66
}
67
68
/* Vertical actions */
69
70
.monaco-action-bar.vertical {
71
text-align: left;
72
}
73
74
.monaco-action-bar.vertical .action-item {
75
display: block;
76
}
77
78
.monaco-action-bar.vertical .action-label.separator {
79
display: block;
80
border-bottom: 1px solid var(--vscode-disabledForeground);
81
padding-top: 1px;
82
margin-left: .8em;
83
margin-right: .8em;
84
}
85
86
.monaco-action-bar .action-item .action-label.separator {
87
width: 1px;
88
height: 16px;
89
margin: 5px 4px !important;
90
cursor: default;
91
min-width: 1px;
92
padding: 0;
93
background-color: var(--vscode-disabledForeground);
94
}
95
96
.secondary-actions .monaco-action-bar .action-label {
97
margin-left: 6px;
98
}
99
100
/* Action Items */
101
.monaco-action-bar .action-item.select-container {
102
overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
103
flex: 1;
104
max-width: 170px;
105
min-width: 60px;
106
display: flex;
107
align-items: center;
108
justify-content: center;
109
margin-right: 10px;
110
}
111
112
.monaco-action-bar .action-item.action-dropdown-item {
113
display: flex;
114
}
115
116
.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator {
117
display: flex;
118
align-items: center;
119
cursor: default;
120
}
121
122
.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator > div {
123
width: 1px;
124
}
125
126