playwright/packages/trace-viewer/src/ui/timeline.css
Andrey Lushnikov dc81cfaf81
Revert "fix: scroll timeline with multiple pages in context (#23493)" (#23711)
This reverts commit a4d361379f.

Reason for revert: this breaks screencast preview (the image
that is shown when you hover over the screencast).
2023-06-14 11:41:42 -07:00

161 lines
3.1 KiB
CSS

/*
Copyright (c) Microsoft Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.timeline-view {
flex: none;
position: relative;
display: flex;
flex-direction: column;
padding: 20px 0 5px;
cursor: text;
user-select: none;
margin-left: 10px;
}
.timeline-divider {
position: absolute;
width: 1px;
top: 0;
bottom: 0;
background-color: var(--vscode-panel-border);
}
.timeline-time {
position: absolute;
top: 4px;
right: 3px;
font-size: 80%;
white-space: nowrap;
pointer-events: none;
}
.timeline-lane {
pointer-events: none;
overflow: hidden;
flex: none;
height: 30px;
position: relative;
}
.timeline-lane.timeline-labels {
height: 20px;
}
.timeline-grid {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.timeline-lane.timeline-bars {
pointer-events: auto;
margin-bottom: 10px;
overflow: visible;
}
.timeline-bar {
position: absolute;
height: 9px;
border-radius: 2px;
min-width: 3px;
--action-color: gray;
background-color: var(--action-color);
}
.timeline-bar.selected {
filter: brightness(70%);
box-shadow: 0 0 0 1px var(--action-color);
}
.timeline-bar.frame_click,
.timeline-bar.frame_dblclick,
.timeline-bar.frame_hover,
.timeline-bar.frame_check,
.timeline-bar.frame_uncheck,
.timeline-bar.frame_tap {
--action-color: var(--green);
}
.timeline-bar.page_load,
.timeline-bar.page_domcontentloaded,
.timeline-bar.frame_fill,
.timeline-bar.frame_press,
.timeline-bar.frame_type,
.timeline-bar.frame_selectoption,
.timeline-bar.frame_setinputfiles {
--action-color: var(--orange);
}
.timeline-bar.frame_loadstate {
display: none;
}
.timeline-bar.frame_goto,
.timeline-bar.frame_setcontent,
.timeline-bar.frame_goback,
.timeline-bar.frame_goforward,
.timeline-bar.reload {
--action-color: var(--blue);
}
.timeline-bar.frame_evaluateexpression {
--action-color: var(--yellow);
}
.timeline-bar.frame_dialog {
--action-color: var(--transparent-blue);
}
.timeline-bar.frame_navigated {
--action-color: var(--blue);
}
.timeline-bar.frame_waitforeventinfo,
.timeline-bar.page_waitforeventinfo {
--action-color: var(--vscode-editorCodeLens-foreground);
}
.timeline-label {
position: absolute;
top: 0;
bottom: 0;
margin-left: 2px;
background-color: var(--vscode-panel-background);
justify-content: center;
display: none;
white-space: nowrap;
}
.timeline-label.selected {
display: flex;
}
.timeline-marker {
display: none;
position: absolute;
top: 0;
bottom: 0;
width: 3px;
background-color: black;
pointer-events: none;
}
.timeline-marker.timeline-marker-hover {
background-color: var(--light-pink);
}