Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/base/browser/ui/button/button.css
5221 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-text-button {
7
box-sizing: border-box;
8
display: flex;
9
width: 100%;
10
padding: 4px 8px;
11
border-radius: 4px;
12
text-align: center;
13
cursor: pointer;
14
justify-content: center;
15
align-items: center;
16
border: 1px solid var(--vscode-button-border, transparent);
17
line-height: 16px;
18
font-size: 12px;
19
overflow-wrap: normal;
20
}
21
22
.monaco-text-button.small {
23
line-height: 14px;
24
font-size: 11px;
25
padding: 3px 6px;
26
}
27
28
.monaco-text-button:focus {
29
outline-offset: 2px !important;
30
}
31
32
.monaco-text-button:hover {
33
text-decoration: none !important;
34
}
35
36
.monaco-button.disabled:focus,
37
.monaco-button.disabled {
38
opacity: 0.4 !important;
39
cursor: default;
40
}
41
42
.monaco-text-button .codicon {
43
margin: 0 0.2em;
44
color: inherit !important;
45
}
46
47
.monaco-text-button.monaco-text-button-with-short-label {
48
flex-direction: row;
49
flex-wrap: wrap;
50
padding: 0 4px;
51
overflow: hidden;
52
height: 28px;
53
}
54
55
.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label {
56
flex-basis: 100%;
57
}
58
59
.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label-short {
60
flex-grow: 1;
61
width: 0;
62
overflow: hidden;
63
}
64
65
.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label,
66
.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label-short {
67
display: flex;
68
justify-content: center;
69
align-items: center;
70
font-weight: normal;
71
font-style: inherit;
72
line-height: 18px;
73
padding: 4px 0;
74
}
75
76
.monaco-button-dropdown {
77
display: flex;
78
cursor: pointer;
79
}
80
81
.monaco-button-dropdown.disabled {
82
cursor: default;
83
}
84
85
.monaco-button-dropdown > .monaco-button:focus {
86
outline-offset: -1px !important;
87
}
88
89
.monaco-button-dropdown.disabled > .monaco-button.disabled,
90
.monaco-button-dropdown.disabled > .monaco-button.disabled:focus,
91
.monaco-button-dropdown.disabled > .monaco-button-dropdown-separator {
92
opacity: 0.4 !important;
93
}
94
95
.monaco-button-dropdown > .monaco-button.monaco-text-button {
96
border-right-width: 0 !important;
97
}
98
99
.monaco-button-dropdown .monaco-button-dropdown-separator {
100
padding: 4px 0;
101
cursor: default;
102
}
103
104
.monaco-button-dropdown .monaco-button-dropdown-separator > div {
105
height: 100%;
106
width: 1px;
107
}
108
109
.monaco-button-dropdown > .monaco-button.monaco-dropdown-button {
110
border: 1px solid var(--vscode-button-border, transparent);
111
border-left-width: 0 !important;
112
border-radius: 0 4px 4px 0;
113
display: flex;
114
align-items: center;
115
}
116
117
.monaco-button-dropdown > .monaco-button.monaco-text-button {
118
border-radius: 4px 0 0 4px;
119
}
120
121
.monaco-description-button {
122
display: flex;
123
flex-direction: column;
124
align-items: center;
125
margin: 4px 5px; /* allows button focus outline to be visible */
126
}
127
128
.monaco-description-button .monaco-button-description {
129
font-style: italic;
130
font-size: 11px;
131
padding: 4px 20px;
132
}
133
134
.monaco-description-button .monaco-button-label,
135
.monaco-description-button .monaco-button-description {
136
display: flex;
137
justify-content: center;
138
align-items: center;
139
}
140
141
.monaco-description-button .monaco-button-label > .codicon,
142
.monaco-description-button .monaco-button-description > .codicon {
143
margin: 0 0.2em;
144
color: inherit !important;
145
}
146
147
/* default color styles - based on CSS variables */
148
149
.monaco-button.default-colors,
150
.monaco-button-dropdown.default-colors > .monaco-button{
151
color: var(--vscode-button-foreground);
152
background-color: var(--vscode-button-background);
153
}
154
155
.monaco-button.default-colors:hover,
156
.monaco-button-dropdown.default-colors > .monaco-button:hover {
157
background-color: var(--vscode-button-hoverBackground);
158
}
159
160
.monaco-button.default-colors.secondary,
161
.monaco-button-dropdown.default-colors > .monaco-button.secondary {
162
color: var(--vscode-button-secondaryForeground);
163
background-color: var(--vscode-button-secondaryBackground);
164
}
165
166
.monaco-button.default-colors.secondary:hover,
167
.monaco-button-dropdown.default-colors > .monaco-button.secondary:hover {
168
background-color: var(--vscode-button-secondaryHoverBackground);
169
}
170
171
.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator {
172
background-color: var(--vscode-button-background);
173
border-top: 1px solid var(--vscode-button-border);
174
border-bottom: 1px solid var(--vscode-button-border);
175
}
176
177
.monaco-button-dropdown.default-colors .monaco-button.secondary + .monaco-button-dropdown-separator {
178
background-color: var(--vscode-button-secondaryBackground);
179
}
180
181
.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator > div {
182
background-color: var(--vscode-button-separator);
183
}
184
185