playwright/packages/trace-viewer/src/ui/snapshotTab.css

150 lines
2.8 KiB
CSS
Raw Normal View History

/*
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;
--window-header-height: 40px;
}
.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(--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);
}
iframe#snapshot {
width: 100%;
height: calc(100% - var(--window-header-height));
border: none;
background: white;
}
.no-snapshot {
text-align: center;
padding: 50px;
}
.popout-icon {
position: absolute;
top: 10px;
right: 10px;
color: var(--gray);
font-size: 14px;
}
.popout-icon:not(.popout-disabled):hover {
color: var(--blue);
}
.popout-icon.popout-disabled {
opacity: 0.7;
}
.window-dot {
border-radius: 50%;
display: inline-block;
height: 12px;
margin-right: 6px;
margin-top: 4px;
width: 12px;
}
.window-address-bar {
background-color: white;
border-radius: 12.5px;
color: #1c1e21;
flex: 1 0;
font: 400 13px Arial,sans-serif;
margin: 0 16px 0 8px;
padding: 5px 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
body.dark-mode .window-address-bar {
background-color: #1b1b1d;
color: #e3e3e3;
}
.window-menu-bar {
background-color: #aaa;
display: block;
height: 3px;
margin: 3px 0;
width: 17px;
}
.window-header {
align-items: center;
background: #ebedf0;
display: flex;
padding: 8px 16px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
height: var(--window-header-height);
}
body.dark-mode .window-header {
background: #444950;
}