Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/electron-browser/actions/media/openInAgents.css
13401 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
/* "Open in Agents" titlebar widget — icon-only at rest, expands on hover/focus. */
7
.monaco-workbench .open-in-agents-titlebar-widget {
8
display: inline-flex;
9
align-items: center;
10
height: 22px;
11
padding: 0 4px;
12
margin: 0 10px 0 2px;
13
border-radius: 5px;
14
cursor: pointer;
15
color: var(--vscode-titleBar-activeForeground);
16
-webkit-app-region: no-drag;
17
white-space: nowrap;
18
position: relative;
19
}
20
21
/* Vertical separator drawn as an absolutely positioned pseudo-element so it isn't clipped by any ancestor `overflow: hidden`. */
22
.monaco-workbench .open-in-agents-titlebar-widget::after {
23
content: '';
24
position: absolute;
25
right: -6px;
26
top: 4px;
27
bottom: 4px;
28
width: 1px;
29
background-color: var(--vscode-widget-border, rgba(128, 128, 128, 0.5));
30
pointer-events: none;
31
}
32
33
.monaco-workbench .open-in-agents-titlebar-widget > .open-in-agents-titlebar-widget-icon {
34
width: 16px;
35
height: 16px;
36
flex: 0 0 auto;
37
background-image: url('../../../../sessions/browser/media/sessions-icon.svg');
38
background-repeat: no-repeat;
39
background-position: center center;
40
background-size: contain;
41
/* Keep desaturated for legibility against light/dark titlebar backgrounds; brighten on hover/focus. */
42
filter: grayscale(1);
43
transition: filter 150ms ease;
44
}
45
46
.monaco-workbench .open-in-agents-titlebar-widget:hover > .open-in-agents-titlebar-widget-icon,
47
.monaco-workbench .open-in-agents-titlebar-widget:focus-visible > .open-in-agents-titlebar-widget-icon {
48
filter: none;
49
}
50
51
.monaco-workbench .open-in-agents-titlebar-widget > .open-in-agents-titlebar-widget-label {
52
display: inline-block;
53
max-width: 0;
54
opacity: 0;
55
margin-left: 0;
56
color: var(--vscode-foreground);
57
font: inherit;
58
overflow: hidden;
59
white-space: nowrap;
60
transition: max-width 150ms ease, opacity 150ms ease, margin-left 150ms ease;
61
}
62
63
.monaco-workbench .open-in-agents-titlebar-widget:hover,
64
.monaco-workbench .open-in-agents-titlebar-widget:focus-visible {
65
background-color: var(--vscode-toolbar-hoverBackground);
66
outline: none;
67
}
68
69
.monaco-workbench .open-in-agents-titlebar-widget:hover > .open-in-agents-titlebar-widget-label,
70
.monaco-workbench .open-in-agents-titlebar-widget:focus-visible > .open-in-agents-titlebar-widget-label {
71
max-width: 200px;
72
opacity: 1;
73
margin-left: 6px;
74
}
75
76
.monaco-workbench .open-in-agents-titlebar-widget:focus-visible {
77
outline: 1px solid var(--vscode-focusBorder);
78
outline-offset: -1px;
79
}
80
81