-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdebugger-Tabs.css
127 lines (108 loc) · 2.7 KB
/
debugger-Tabs.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
.source-header {
grid-area: editor-header;
display: flex;
width: 100%;
height: var(--editor-header-height);
border-bottom: 1px solid var(--theme-splitter-color);
background-color: var(--theme-toolbar-background);
}
.source-header * {
user-select: none;
}
.source-header .command-bar {
flex: initial;
flex-shrink: 0;
border-bottom: 0;
border-inline-start: 1px solid var(--theme-splitter-color);
}
.source-tabs {
flex: auto;
align-self: flex-start;
/* Reserve space for the overflow button (even if not visible) */
padding-inline-end: 28px;
/* Make sure that overflowing tabs don't show through other elements (see Bug 1855458) */
max-height: 100%;
overflow: hidden;
}
.source-tab {
display: inline-flex;
align-items: center;
position: relative;
min-width: 40px;
max-width: 100%;
overflow: hidden;
padding: 4px 10px;
cursor: default;
height: calc(var(--editor-header-height) - 1px);
font-size: 12px;
background-color: transparent;
vertical-align: bottom;
}
.source-tab::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--tab-line-color, transparent);
transition: transform 250ms var(--animation-curve),
opacity 250ms var(--animation-curve);
opacity: 0;
transform: scaleX(0);
}
.source-tab.active {
--tab-line-color: var(--tab-line-selected-color);
color: var(--theme-toolbar-selected-color);
border-bottom-color: transparent;
}
.source-tab:not(.active):hover {
--tab-line-color: var(--tab-line-hover-color);
background-color: var(--theme-toolbar-hover);
}
.source-tab:hover::before,
.source-tab.active::before {
opacity: 1;
transform: scaleX(1);
}
.source-tab .img:is(.prettyPrint,.blackBox) {
mask-size: 14px;
}
.source-tab .img.prettyPrint {
background-color: currentColor;
}
.source-tab .img.source-icon.blackBox {
background-color: #806414;
}
.source-tab .filename {
display: block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
padding-inline-end: 4px;
}
.source-tab .filename span {
opacity: 0.7;
padding-inline-start: 4px;
}
.source-tab .close-btn {
visibility: hidden;
margin-inline-end: -6px;
}
.source-tab.active .close-btn {
color: inherit;
}
.source-tab.active .close-btn,
.source-tab:hover .close-btn {
visibility: visible;
}
.source-tab.active .source-icon {
background-color: currentColor;
}
.source-tab .close-btn:hover {
color: var(--theme-selection-color);
background-color: var(--theme-selection-background);
}