playwright/src/cli/traceViewer/web/ui/propertiesTabbedPane.css
Dmitry Gozman 5033261d27
feat(trace): streaming snapshots (#5133)
- Instead of capturing snapshots on demand, we now stream them
  from each frame every 100ms.
- Certain actions can also force snapshots at particular moment using
  "checkpoints".
- Trace viewer is able to show the page snapshot at a particular
  timestamp, or using a "checkpoint" snapshot.
- Small optimization to not process stylesheets if CSSOM was not used.
  There still is a lot of room for improvement.
2021-01-25 18:44:46 -08:00

109 lines
1.9 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.
*/
.properties-tabbed-pane {
display: flex;
flex: auto;
overflow: hidden;
}
.properties-tab-content {
display: flex;
flex: auto;
overflow: hidden;
}
.properties-tab-strip {
flex: auto;
display: flex;
flex-direction: row;
align-items: center;
height: 34px;
}
.properties-tab-strip:focus {
outline: none;
}
.properties-tab-element {
padding: 2px 6px 0 6px;
margin-right: 4px;
cursor: pointer;
display: flex;
flex: none;
align-items: center;
justify-content: center;
user-select: none;
border-bottom: 3px solid transparent;
width: 80px;
outline: none;
}
.properties-tab-label {
max-width: 250px;
white-space: pre;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
.properties-tab-element.selected {
border-bottom-color: var(--color);
}
.properties-tab-element:hover {
font-weight: 600;
}
.snapshot-tab {
display: flex;
flex-direction: column;
align-items: stretch;
}
.snapshot-controls {
flex: 0 0 24px;
display: flex;
flex-direction: row;
align-items: center;
}
.snapshot-toggle {
padding: 5px 10px;
cursor: pointer;
}
.snapshot-toggle.toggled {
background: var(--inactive-focus-ring);
}
.snapshot-wrapper {
flex: auto;
margin: 1px;
}
.snapshot-container {
display: block;
background: white;
outline: 1px solid #aaa;
}
iframe#snapshot {
width: 100%;
height: 100%;
border: none;
}