playwright/packages/trace-viewer/src/ui/snapshotTab.css
Dmitry Gozman f232507afa
feat(ui mode): ui updates (#31894)
- Update copy to clipboard button.
- Reveal test source in the Source tab instead of external editor.
- New button to reveal in the external editor in the Source tab.
- Move the Pick Locator button next to snapshot tabs.
2024-07-29 07:32:13 -07:00

113 lines
2.2 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.
*/
.snapshot-tab {
display: flex;
flex: auto;
flex-direction: column;
align-items: stretch;
outline: none;
--browser-frame-header-height: 40px;
overflow: hidden;
}
.snapshot-tab .toolbar {
background-color: var(--vscode-sideBar-background);
}
.snapshot-tab .toolbar .pick-locator {
margin: 0 4px;
}
.snapshot-controls {
flex: none;
background-color: var(--vscode-sideBar-background);
color: var(--vscode-sideBarTitle-foreground);
display: flex;
box-shadow: var(--box-shadow);
height: 32px;
align-items: center;
justify-content: center;
}
.snapshot-toggle {
margin-top: 4px;
padding: 4px 8px;
cursor: pointer;
border-radius: 20px;
margin-left: 4px;
width: 60px;
display: flex;
align-items: center;
justify-content: center;
}
.snapshot-toggle:hover {
background-color: #ededed;
}
.snapshot-toggle.toggled {
background: var(--gray);
color: white;
}
.snapshot-tab:focus .snapshot-toggle.toggled {
background: var(--vscode-charts-blue);
}
.snapshot-wrapper {
flex: auto;
margin: 1px;
padding: 10px;
position: relative;
}
.snapshot-container {
display: block;
box-shadow: 0 12px 28px 0 rgba(0,0,0,.2),0 2px 4px 0 rgba(0,0,0,.1);
}
.snapshot-switcher {
width: 100%;
height: calc(100% - var(--browser-frame-header-height));
position: relative;
}
iframe[name=snapshot] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
background: white;
visibility: hidden;
}
iframe.snapshot-visible[name=snapshot] {
visibility: visible;
}
.no-snapshot {
text-align: center;
padding: 50px;
}
.snapshot-tab .cm-wrapper {
line-height: 23px;
margin-right: 4px;
}