forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditor.css
More file actions
273 lines (227 loc) · 5.61 KB
/
Editor.css
File metadata and controls
273 lines (227 loc) · 5.61 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/* 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/>. */
.editor-wrapper {
--debug-line-border: rgb(145, 188, 219);
--debug-expression-background: rgba(202, 227, 255, 0.5);
--editor-searchbar-height: 27px;
--debug-line-error-border: rgb(255, 0, 0);
--debug-expression-error-background: rgba(231, 116, 113, 0.3);
--editor-header-height: 30px;
}
.theme-dark .editor-wrapper {
--debug-expression-background: rgba(202, 227, 255, 0.3);
--debug-line-border: #7786a2;
}
.editor-wrapper .CodeMirror-linewidget {
margin-right: -7px;
overflow: hidden;
}
.editor-wrapper {
min-width: 0 !important;
}
.theme-dark {
--theme-conditional-breakpoint-color: #9fa4a9;
}
.theme-light {
--theme-conditional-breakpoint-color: var(--theme-body-color);
}
/**
* There's a known codemirror flex issue with chrome that this addresses.
* BUG https://github.com/devtools-html/debugger.html/issues/63
*/
.editor-wrapper {
position: absolute;
height: calc(100% - var(--editor-header-height));
width: calc(100% - 1px);
top: var(--editor-header-height);
left: 0px;
--editor-footer-height: 24px;
}
html[dir="rtl"] .editor-mount {
direction: ltr;
}
.theme-light {
--gutter-hover-background-color: #dde1e4;
}
.theme-dark {
--gutter-hover-background-color: #414141;
}
:not(.empty-line):not(.new-breakpoint)
> .CodeMirror-gutter-wrapper:hover
> .CodeMirror-linenumber {
height: 13px;
color: var(--theme-body-color);
/* Add 1px offset to the background to match it
with the actual breakpoint image dimensions */
background: linear-gradient(
to bottom,
transparent 1px,
var(--gutter-hover-background-color) 0
);
}
:not(.empty-line):not(.new-breakpoint)
> .CodeMirror-gutter-wrapper:hover
> .CodeMirror-linenumber::after {
content: "";
position: absolute;
top: 1px;
height: 12px;
width: 9px;
background-color: var(--gutter-hover-background-color);
mask: url(/images/breakpoint.svg) no-repeat;
mask-size: auto 12px;
mask-position: right;
}
.theme-light .cm-s-mozilla .empty-line .CodeMirror-linenumber {
color: var(--grey-30);
}
.theme-dark .cm-s-mozilla .empty-line .CodeMirror-linenumber {
color: var(--grey-70);
}
.editor-wrapper .breakpoints {
position: absolute;
top: 0;
left: 0;
}
.function-search {
max-height: 300px;
overflow: hidden;
}
.function-search .results {
height: auto;
}
.editor.hit-marker {
height: 14px;
}
.editor-wrapper .highlight-lines {
background: var(--theme-selection-background-hover);
}
.coverage-on .CodeMirror-code :not(.hit-marker) .CodeMirror-line,
.coverage-on .CodeMirror-code :not(.hit-marker) .CodeMirror-gutter-wrapper {
opacity: 0.5;
}
.editor.new-breakpoint svg {
fill: var(--theme-selection-background);
width: 60px;
height: 14px;
position: absolute;
top: 0px;
right: -4px;
}
.inline-bp {
background-color: #9ddfff;
width: 20px;
padding: 0px 5px;
margin: 0px 4px;
border-radius: 5px;
border-color: blue;
border: 1px solid #00b6ff;
}
.editor .breakpoint {
position: absolute;
right: -2px;
}
.editor.new-breakpoint.folding-enabled svg {
right: -16px;
}
.new-breakpoint.has-condition svg {
fill: var(--theme-graphs-yellow);
}
.editor.new-breakpoint.breakpoint-disabled svg {
opacity: 0.3;
}
.editor.column-breakpoint svg {
fill: var(--theme-selection-background);
vertical-align: middle;
width: 17px;
height: 14px;
}
.editor.column-breakpoint.breakpoint-disabled svg {
opacity: 0.3;
}
.CodeMirror {
width: 100%;
height: 100%;
}
.editor-wrapper .editor-mount {
width: 100%;
background-color: var(--theme-body-background);
}
.CodeMirror-linenumber {
font-size: 11px;
line-height: 14px;
}
.folding-enabled .CodeMirror-linenumber {
text-align: left;
padding: 0 0 0 2px;
}
/* set the linenumber white when there is a breakpoint */
.cm-s-mozilla
.new-breakpoint
.CodeMirror-gutter-wrapper
.CodeMirror-linenumber {
color: white;
}
/* move the breakpoint below the other gutter elements */
.new-breakpoint .CodeMirror-gutter-elt:nth-child(2) {
z-index: 0;
}
.editor-wrapper .CodeMirror-line {
font-size: 11px;
}
.theme-dark .editor-wrapper .CodeMirror-line .cm-comment {
color: var(--theme-comment);
}
.debug-expression {
background-color: var(--debug-expression-background);
}
debug-expression-error {
background-color: var(--debug-expression-error-background);
}
.new-debug-line .CodeMirror-line {
background-color: transparent !important;
outline: var(--debug-line-border) solid 1px;
}
/* Don't display the highlight color since the debug line
is already highlighted */
.new-debug-line .CodeMirror-activeline-background {
display: none;
}
.new-debug-line-error .CodeMirror-line {
background-color: var(--debug-expression-error-background) !important;
outline: var(--debug-line-error-border) solid 1px;
}
/* Don't display the highlight color since the debug line
is already highlighted */
.new-debug-line-error .CodeMirror-activeline-background {
display: none;
}
.highlight-line .CodeMirror-line {
animation: fade-highlight-out 1.5s normal forwards;
}
@keyframes fade-highlight-out {
0% {
background-color: var(--theme-highlight-gray);
}
100% {
background-color: transparent;
}
}
.theme-dark .highlight-line .CodeMirror-line {
animation: fade-highlight-out-dark 1.5s normal forwards;
}
@keyframes fade-highlight-out-dark {
0% {
background-color: var(--theme-comment);
}
100% {
background-color: transparent;
}
}
.CodeMirror-guttermarker-subtle {
visibility: hidden;
}
.visible {
visibility: visible;
}