make both Nightly devtools and 48/49 devtools work well
[themes.git] / LCARStrek / devtools / canvasdebugger.css
CommitLineData
565f36fa
RK
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
d0a8de80
RK
5:root {
6 --gutter-width: 3em;
7 --gutter-padding-start: 22px;
8 --checkerboard-pattern: linear-gradient(45deg, rgba(128,128,128,0.2) 25%, transparent 25%, transparent 75%, rgba(128,128,128,0.2) 75%, rgba(128,128,128,0.2)),
9 linear-gradient(45deg, rgba(128,128,128,0.2) 25%, transparent 25%, transparent 75%, rgba(128,128,128,0.2) 75%, rgba(128,128,128,0.2));
10}
11
7d6161c5
RK
12:root.theme-dark,
13:root.theme-light,
14:root.theme-firebug {
15 --draw-call-background: #403800;
16 --interesting-call-background: #272740;
17}
18
565f36fa
RK
19/* Reload and waiting notices */
20
21.notice-container {
22 margin-top: -50vh;
7d6161c5 23 color: var(--theme-body-color-alt);
565f36fa
RK
24}
25
26#empty-notice > button {
27 min-width: 30px;
28 min-height: 28px;
29 margin: 0;
dadba0f2 30 list-style-image: url("images/profiler-stopwatch.svg");
565f36fa
RK
31}
32
33#empty-notice > button .button-text {
34 display: none;
35}
36
ae90b726
RK
37#waiting-notice {
38 font-size: 110%;
565f36fa
RK
39}
40
41/* Snapshots pane */
42
7d6161c5
RK
43#snapshots-pane {
44 border-inline-end: 1px solid var(--theme-splitter-color);
565f36fa
RK
45}
46
47#record-snapshot {
dadba0f2 48 list-style-image: url("chrome://devtools/skin/images/profiler-stopwatch-tbutton.svg");
565f36fa
RK
49}
50
1e9e1791
RK
51#import-snapshot {
52 list-style-image: url("images/import.svg");
53}
54
565f36fa
RK
55/* Snapshots items */
56
57.snapshot-item-thumbnail {
58 image-rendering: -moz-crisp-edges;
7d6161c5 59 background-image: var(--checkerboard-pattern);
565f36fa
RK
60 background-size: 12px 12px, 12px 12px;
61 background-position: 0px 0px, 6px 6px;
62 background-repeat: repeat, repeat;
63}
64
65.snapshot-item-thumbnail[flipped=true] {
66 transform: scaleY(-1);
67}
68
69.snapshot-item-thumbnail {
7d6161c5 70 background-color: var(--theme-body-background);
565f36fa
RK
71}
72
73.snapshot-item-details {
7d6161c5 74 padding-inline-start: 6px;
565f36fa
RK
75}
76
77.snapshot-item-calls {
78 padding-top: 4px;
79 font-size: 80%;
80}
81
82.snapshot-item-save {
83 padding-bottom: 2px;
84 font-size: 90%;
85}
86
87.snapshot-item-calls,
88.snapshot-item-save {
7d6161c5 89 color: var(--theme-body-color-alt);
565f36fa
RK
90}
91
92.snapshot-item-save {
93 text-decoration: underline;
94 cursor: pointer;
95}
96
97.snapshot-item-save[disabled=true] {
98 text-decoration: none;
99 pointer-events: none;
100}
101
d533ec21 102.snapshot-item-footer.devtools-throbber::before {
565f36fa 103 margin-top: -2px;
565f36fa
RK
104}
105
106#snapshots-list .selected label {
107 /* Text inside a selected item should not be custom colored. */
108 color: inherit !important;
109}
110
111/* Debugging pane controls */
112
565f36fa 113#resume {
d0a8de80 114 list-style-image: url("images/debugger-play.png");
565f36fa
RK
115}
116
117#step-over {
d0a8de80 118 list-style-image: url("images/debugger-step-over.png");
565f36fa
RK
119}
120
121#step-in {
d0a8de80 122 list-style-image: url("images/debugger-step-in.png");
565f36fa
RK
123}
124
125#step-out {
d0a8de80 126 list-style-image: url("images/debugger-step-out.png");
565f36fa
RK
127}
128
024a65e9 129@media (min-resolution: 1.1dppx) {
565f36fa 130 #resume {
d0a8de80 131 list-style-image: url(images/debugger-play@2x.png);
565f36fa
RK
132 }
133
134 #step-over {
d0a8de80 135 list-style-image: url(images/debugger-step-over@2x.png);
565f36fa
RK
136 }
137
138 #step-in {
d0a8de80 139 list-style-image: url(images/debugger-step-in@2x.png);
565f36fa
RK
140 }
141
142 #step-out {
d0a8de80 143 list-style-image: url(images/debugger-step-out@2x.png);
565f36fa
RK
144 }
145}
146
565f36fa 147#calls-slider {
7d6161c5 148 padding-inline-end: 24px;
565f36fa
RK
149}
150
151#calls-slider .scale-slider {
152 margin: 0;
153}
154
155#debugging-toolbar-sizer-button {
156 /* This button's only purpose in life is to make the
157 container .devtools-toolbar have the right height. */
158 visibility: hidden;
159 min-width: 1px;
160}
161
162/* Calls list pane */
163
164#calls-list .side-menu-widget-container {
165 background: transparent;
166}
167
565f36fa
RK
168/* Calls list items */
169
170#calls-list .side-menu-widget-item {
7d6161c5
RK
171 padding: 0;
172 border-color: var(--theme-splitter-color);
565f36fa
RK
173 border-bottom-color: transparent;
174}
175
176.call-item-view:hover {
177 background-color: #402800;
178}
179
180.call-item-view[draw-call] {
7d6161c5 181 background-color: var(--draw-call-background);
565f36fa
RK
182}
183
184.call-item-view[interesting-call] {
7d6161c5 185 background-color: var(--interesting-call-background);
565f36fa
RK
186}
187
188.call-item-gutter {
d0a8de80
RK
189 width: calc(var(--gutter-width) + var(--gutter-padding-start));
190 padding-inline-start: var(--gutter-padding-start);
191 padding-inline-end: 4px;
565f36fa
RK
192 padding-top: 2px;
193 padding-bottom: 2px;
d0a8de80
RK
194 border-inline-end: 1px solid var(--theme-splitter-color);
195 margin-inline-end: 6px;
196 background-color: var(--theme-sidebar-background);
197 color: var(--theme-content-color3);
565f36fa
RK
198}
199
200.selected .call-item-gutter {
d0a8de80
RK
201 background-color: #008484;
202 color: #000000;
565f36fa
RK
203}
204
024a65e9 205@media (min-resolution: 1.1dppx) {
565f36fa 206 .selected .call-item-gutter {
d0a8de80 207 background-image: url("images/editor-debug-location@2x.png");
565f36fa
RK
208 }
209}
210
565f36fa
RK
211.call-item-index {
212 text-align: end;
213}
214
215.call-item-context {
de5e780d 216 color: var(--theme-highlight-lightorange);
565f36fa
RK
217}
218
219.call-item-name {
de5e780d 220 color: var(--theme-highlight-blue);
565f36fa
RK
221}
222
223.call-item-location {
7d6161c5
RK
224 padding-inline-start: 2px;
225 padding-inline-end: 6px;
565f36fa
RK
226 text-align: end;
227 cursor: pointer;
de5e780d 228 color: var(--theme-highlight-bluegrey);
7d6161c5 229 border-color: var(--theme-splitter-color);
565f36fa
RK
230}
231
232.call-item-location:hover {
de5e780d 233 color: var(--theme-highlight-blue);
565f36fa
RK
234}
235
236.call-item-view:hover .call-item-location,
237.call-item-view[expanded] .call-item-location {
238 text-decoration: underline;
239}
240
565f36fa 241.call-item-stack {
7d6161c5 242 padding-inline-start: calc(var(--gutter-width) + var(--gutter-padding-start));
565f36fa
RK
243 padding-bottom: 10px;
244}
245
246.call-item-stack {
247 background: #403800;
248}
249
250.call-item-stack-fn {
251 padding-top: 2px;
252 padding-bottom: 2px;
253}
254
255.call-item-stack-fn-location {
7d6161c5
RK
256 padding-inline-start: 2px;
257 padding-inline-end: 6px;
565f36fa
RK
258 text-align: end;
259 cursor: pointer;
260 text-decoration: underline;
261}
262
263.call-item-stack-fn-name {
de5e780d 264 color: var(--theme-content-color2);
565f36fa
RK
265}
266
267.theme-dark .call-item-stack-fn-location {
de5e780d 268 color: var(--theme-content-color1);
565f36fa
RK
269}
270
271.theme-dark .call-item-stack-fn-location:hover {
de5e780d 272 color: var(--theme-highlight-blue);
565f36fa
RK
273}
274
275#calls-list .selected .call-item-contents > label:not(.call-item-gutter) {
276 /* Text inside a selected item should not be custom colored. */
277 color: inherit !important;
278}
279
280/* Rendering preview */
281
282#screenshot-container {
7d6161c5
RK
283 background-color: var(--theme-body-background);
284 background-image: var(--checkerboard-pattern);
565f36fa
RK
285 background-size: 30px 30px, 30px 30px;
286 background-position: 0px 0px, 15px 15px;
287 background-repeat: repeat, repeat;
288}
289
565f36fa
RK
290@media (min-width: 701px) {
291 #screenshot-container {
292 width: 30vw;
293 max-width: 50vw;
294 min-width: 100px;
295 }
296}
297
298@media (max-width: 700px) {
299 #screenshot-container {
300 height: 40vh;
301 max-height: 70vh;
302 min-height: 100px;
303 }
304}
305
306#screenshot-image {
307 background-image: -moz-element(#screenshot-rendering);
308 background-size: contain;
309 background-position: center, center;
310 background-repeat: no-repeat;
311}
312
313#screenshot-image[flipped=true] {
314 transform: scaleY(-1);
315}
316
317#screenshot-dimensions {
318 padding-top: 4px;
319 padding-bottom: 4px;
320 text-align: center;
321}
322
323#screenshot-dimensions {
324 background-color: #402800;
325}
326
327/* Snapshot filmstrip */
328
329#snapshot-filmstrip {
7d6161c5 330 border-top: 1px solid var(--theme-splitter-color);
565f36fa
RK
331 overflow: hidden;
332}
333
334#snapshot-filmstrip {
de5e780d 335 color: var(--theme-body-color);
565f36fa
RK
336}
337
338.filmstrip-thumbnail {
339 image-rendering: -moz-crisp-edges;
7d6161c5
RK
340 background-color: var(--theme-body-background);
341 background-image: var(--checkerboard-pattern);
565f36fa
RK
342 background-size: 12px 12px, 12px 12px;
343 background-position: 0px -1px, 6px 5px;
344 background-repeat: repeat, repeat;
345 background-origin: content-box;
346 cursor: pointer;
347 padding-top: 1px;
348 padding-bottom: 1px;
7d6161c5 349 border-inline-end: 1px solid var(--theme-splitter-color);
565f36fa
RK
350 transition: opacity 0.1s ease-in-out;
351}
352
353.filmstrip-thumbnail[flipped=true] {
354 transform: scaleY(-1);
355}
356
565f36fa
RK
357#snapshot-filmstrip > .filmstrip-thumbnail:hover,
358#snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] {
de5e780d 359 border: 1px solid var(--theme-highlight-blue);
565f36fa
RK
360 margin: 0 0 0 -1px;
361 padding: 0;
362 opacity: 0.66;
363}