176 lines
3.4 KiB
CSS
176 lines
3.4 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;
|
|
--window-header-height: 40px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.snapshot-tab .toolbar {
|
|
background-color: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.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(--window-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;
|
|
}
|
|
|
|
.popout-icon {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
color: var(--vscode-sideBarTitle-foreground);
|
|
font-size: 14px;
|
|
z-index: 100;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.popout-icon:not(.popout-disabled):hover {
|
|
color: var(--vscode-foreground);
|
|
}
|
|
|
|
.popout-icon.popout-disabled {
|
|
opacity: var(--vscode-disabledForeground);
|
|
}
|
|
|
|
.window-dot {
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
height: 12px;
|
|
margin-right: 6px;
|
|
margin-top: 4px;
|
|
width: 12px;
|
|
}
|
|
|
|
.window-address-bar {
|
|
background-color: var(--vscode-input-background);
|
|
border-radius: 12.5px;
|
|
color: var(--vscode-input-foreground);
|
|
flex: 1 0;
|
|
font: 400 16px Arial,sans-serif;
|
|
margin: 0 16px 0 8px;
|
|
padding: 5px 15px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.snapshot-tab .cm-wrapper {
|
|
line-height: 23px;
|
|
margin-right: 4px;
|
|
}
|