Files
palemoon27/toolkit/themes/shared/devtools/animationinspector.css
T
roytam1 b9843e0358 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1167459 - Skip rendering function name nodes if there's no name available (e.g. for C++ pseudoframes), r=jsantell (4a69ed224)
- missing bits Bug 1102219 - Part 4: Replace String.prototype.contains with `String.prototype.includes` in chrome code. r=till (73cd2d2b1)
- Bug 1165045 - Don't create nodes with empty text in the call tree, r=jsantell (b013aa82d)
- Bug 1166122 - Fix regression in the call tree caused by bug 1165045, r=jsantell (ee3f16901)
- Bug 1167975 - CallView._displaySelf sets this.document just because other functions use it; it should pass it as an argument instead, r=jsantell (5ef560c4f)
- Bug 1122662 - Resize graphs when window resizes;r=vporof (25c108e4e)
- Bug 1164784 - Eliminate CSS duplication with perf tool record button r=jsantell (43c9bb999)
- Bug 1150761 - Rename the performance tool's details view names to better describe the data visualizations. r=vp (04ceb6a37)
- Bug 1144424 - Rename '{self,total} allocations' to '{self,total} sampled allocations' in the performance tool. r=jsantell (ae79ad54f)
- Bug 1069910 - Add tooltips explaining what each column in the profiler's tree view represents; r=jsantell (8756f88b6)
- Bug 1107849 - Define a min/max width for the performance panel sidebar. r=vporof (e1769e831)
- Bug 11663354 - A locked recording button should appear disabled in the performance tool. r=vp (4a359d39e)
- Bug 1023546 - DevTools - Support HDPI resolutions for Windows. r=bgrins (ef1a3ecb8)
- Bug 1168125 - Cleanup performance xul and css, r=jsantell (8ec794e46)
- Bug 1168125 - Replace the waterfall view with a tree, r=jsantell (ea76514fe)
- Bug 1168125 - Add marker folding logic, r=jsantell (1d3748d2a)
- Bug 862341 Part 1: Move the network request storage from the console frontend to the console client so the netmonitor can reuse it. r=vporof (d29fb2b73)
- remove gre from resource path (126b00df1)
- Bug 943306 - Allow persisting console input history between sessions;r=past (146ebb486)
- Bug 1134845 - Add clearHistory jsterm helper to remove persisted console input history. r=past (22237e95b)
- Bug 1143497 - Offer a way to extend WebConsole commands. r=bgrins (84e2d2957)
- Bug 1125205 - Display console API messages from shared or service workers to the web console, r=past (b4b701a2c)
- Bug 1169342 - Remove nsIDOMDeviceStorage. Cleanup nsDOMDeviceStorage event wrappers. r=dhylands (41338e16f)
- Bug 1151610 - Manage the case where two extensions fight over the same command. r=bgrins (63f9d2064)
- Bug 862341 Part 2: Display cached network requests in the web console. r=vporof (83c0e7263)
- Bug 1144211 - Improve code coverage of camera mochitests. r=mikeh (ba9f3de89)
- Bug 1152500 - Fix how stop recording may be handled out-of-order. r=dhylands (d8bdd379c)
- Bug 862341 Part 3: Display cached network requests in the network panel. r=vporof (a1a6f151d)
- Bug 862341 Part 4: Start recording network requests when the toolbox opens. r=vporof (7a2bdf847)
- Bug 1151499 - Correct the FM playable state. r=baku (8af26fff2)
- Bug 1180347 - Split media.useAudioChannelService to support turning the service on without turning the Firefox OS specific APIs on; r=baku (3fa29291a)
- Bug 862341 Part 5: Tests. r=vporof (82fb944c6)
2021-05-29 22:53:37 +08:00

420 lines
8.9 KiB
CSS

/* 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/. */
/* Animation-inspector specific theme variables */
.theme-dark {
--even-animation-timeline-background-color: rgba(255,255,255,0.03);
}
.theme-light {
--even-animation-timeline-background-color: rgba(128,128,128,0.03);
}
html {
height: 100%;
}
body {
margin: 0;
padding: 0;
display : flex;
flex-direction: column;
height: 100%;
overflow: hidden;
color: var(--theme-content-color3);
}
/* The top toolbar, containing the toggle-all button */
#toolbar {
border-bottom: 1px solid var(--theme-splitter-color);
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
height: 20px;
}
#toolbar .label {
padding: 1px 4px;
}
#toggle-all {
border-width: 0 0 0 1px;
min-height: 20px;
}
/* The main animations container */
#players {
height: calc(100% - 20px);
overflow: auto;
}
/* The error message, shown when an invalid/unanimated element is selected */
#error-message {
padding-top: 10%;
text-align: center;
flex: 1;
overflow: auto;
/* The error message is hidden by default */
display: none;
}
/* Element picker and toggle-all buttons */
#element-picker,
#toggle-all {
position: relative;
}
#element-picker::before,
#toggle-all::before {
content: "";
display: block;
width: 16px;
height: 16px;
position: absolute;
left: 50%;
top: 50%;
margin: -8px 0 0 -8px;
background-image: url("chrome://global/skin/devtools/command-pick.png");
}
#toggle-all::before {
background-image: url("debugger-pause.png");
}
#element-picker[checked]::before {
background-position: -48px 0;
filter: none; /* Icon is blue when checked, don't invert for light theme */
}
#toggle-all.paused::before {
background-image: url("debugger-play.png");
}
@media (min-resolution: 1.25dppx) {
#element-picker::before {
background-image: url("chrome://global/skin/devtools/command-pick@2x.png");
background-size: 64px;
}
#toggle-all::before {
background-image: url("debugger-pause@2x.png");
}
#toggle-all.paused::before {
background-image: url("debugger-play@2x.png");
}
}
/* Animation timeline component */
.animation-timeline {
height: 100%;
overflow: hidden;
/* The timeline gets its background-image from a canvas element created in
/toolkit/devtools/animationinspector/utils.js drawGraphElementBackground
thanks to document.mozSetImageElement("time-graduations", canvas)
This is done so that the background can be built dynamically from script */
background-image: -moz-element(#time-graduations);
background-repeat: repeat-y;
/* The animations are drawn 150px from the left edge so that animated nodes
can be displayed in a sidebar */
background-position: 150px 0;
display: flex;
flex-direction: column;
}
.animation-timeline .time-header {
margin-left: 150px;
height: 20px;
overflow: hidden;
position: relative;
border-bottom: 1px solid var(--theme-splitter-color);
}
.animation-timeline .time-header .time-tick {
position: absolute;
top: 3px;
}
.animation-timeline .animations {
width: 100%;
overflow-y: auto;
overflow-x: hidden;
margin: 0;
padding: 0;
list-style-type: none;
}
/* Animation block widgets */
.animation-timeline .animation {
margin: 4px 0;
height: 20px;
position: relative;
}
.animation-timeline .animation:nth-child(2n) {
background-color: var(--even-animation-timeline-background-color);
}
.animation-timeline .animation .target {
width: 150px;
overflow: hidden;
height: 100%;
}
.animation-timeline .animation-target {
background-color: transparent;
}
.animation-timeline .animation .time-block {
position: absolute;
top: 0;
left: 150px;
right: 0;
height: 100%;
}
/* Animation iterations */
.animation-timeline .animation .iterations {
position: relative;
height: 100%;
border: 1px solid var(--theme-highlight-lightorange);
box-sizing: border-box;
background: var(--theme-contrast-background);
/* Iterations are displayed with a repeating linear-gradient which size is
dynamically changed from JS */
background-image:
linear-gradient(to right,
var(--theme-highlight-lightorange) 0,
var(--theme-highlight-lightorange) 1px,
transparent 1px,
transparent 2px);
background-repeat: repeat-x;
background-position: -1px 0;
}
.animation-timeline .animation .iterations.infinite {
border-right-width: 0;
}
.animation-timeline .animation .iterations.infinite::before,
.animation-timeline .animation .iterations.infinite::after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 0;
height: 0;
border-right: 4px solid var(--theme-body-background);
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
}
.animation-timeline .animation .iterations.infinite::after {
bottom: 0;
top: unset;
}
.animation-timeline .animation .animation-title {
height: 1.5em;
width: 100%;
box-sizing: border-box;
overflow: hidden;
}
.animation-timeline .animation .delay {
position: absolute;
top: 0;
height: 100%;
background-image: linear-gradient(to bottom,
transparent,
transparent 9px,
var(--theme-highlight-lightorange) 9px,
var(--theme-highlight-lightorange) 11px,
transparent 11px,
transparent);
}
.animation-timeline .animation .delay::before {
position: absolute;
content: "";
left: 0;
width: 2px;
height: 8px;
top: 50%;
margin-top: -4px;
background: var(--theme-highlight-lightorange);
}
.animation-timeline .animation .name {
position: absolute;
z-index: 1;
padding: 2px;
white-space: nowrap;
}
/* Animation target node gutter, contains a preview of the dom node */
.animation-target {
background-color: var(--theme-toolbar-background);
padding: 1px 4px;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.animation-target .attribute-name {
padding-left: 4px;
}
.animation-target .node-selector {
background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
padding-left: 16px;
margin-right: 5px;
cursor: pointer;
}
.animation-target .node-selector:hover {
background-position: -32px 0;
}
.animation-target .node-selector:active {
background-position: -16px 0;
}
/* Animation title gutter, contains the name, duration, iteration */
.animation-title {
background-color: var(--theme-toolbar-background);
border-bottom: 1px solid var(--theme-splitter-color);
padding: 1px 4px;
word-wrap: break-word;
overflow: auto;
}
.animation-title .meta-data {
float: right;
}
.animation-title strong {
margin: 0 .5em;
}
/* Timeline wiget */
.timeline {
height: 20px;
width: 100%;
display: flex;
flex-direction: row;
border-bottom: 1px solid var(--theme-splitter-color);
}
.timeline .playback-controls {
display: flex;
flex-direction: row;
}
/* Playback control buttons */
.timeline .playback-controls button {
flex-grow: 1;
border-width: 0 1px 0 0;
}
.timeline .toggle::before {
background-image: url(debugger-pause.png);
}
.paused .timeline .toggle::before,
.finished .timeline .toggle::before {
background-image: url(debugger-play.png);
}
.timeline .ff::before {
background-image: url(fast-forward.png);
}
.timeline .rw::before {
background-image: url(rewind.png);
}
@media (min-resolution: 1.25dppx) {
.timeline .toggle::before {
background-image: url(debugger-pause@2x.png);
}
.paused .timeline .toggle::before,
.finished .timeline .toggle::before {
background-image: url(debugger-play@2x.png);
}
.timeline .ff::before {
background-image: url(fast-forward@2x.png);
}
.timeline .rw::before {
background-image: url(rewind@2x.png);
}
}
.timeline .rate {
-moz-appearance: none;
text-align: center;
border-right: 1px solid var(--theme-splitter-color);
}
/* Slider (input type range) container */
.timeline .sliders-container {
flex-grow: 1;
height: 100%;
position: relative;
border-width: 1px 0;
}
.timeline .sliders-container .current-time {
position: absolute;
padding: 0;
margin: 0;
left: 0;
width: 100%;
height: 100%;
}
.timeline .sliders-container .current-time::-moz-range-thumb {
height: 100%;
width: 4px;
border-radius: 0;
border: none;
background: var(--theme-highlight-blue);
}
.timeline .sliders-container .current-time::-moz-range-track {
width: 100%;
height: 50px;
background: transparent;
}
/* Current time label */
.timeline .time-display {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
border-left: 1px solid var(--theme-splitter-color);
background: var(--theme-toolbar-background);
}