2021-01-08 01:15:34 +01:00
|
|
|
/*
|
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2021-01-26 03:44:46 +01:00
|
|
|
.snapshot-tab {
|
|
|
|
|
display: flex;
|
2021-03-11 20:22:59 +01:00
|
|
|
flex: auto;
|
2021-04-20 04:50:11 +02:00
|
|
|
flex-direction: column;
|
2021-01-26 03:44:46 +01:00
|
|
|
align-items: stretch;
|
2021-04-19 23:09:50 +02:00
|
|
|
outline: none;
|
2023-08-23 00:46:41 +02:00
|
|
|
--browser-frame-header-height: 40px;
|
2023-02-16 16:59:21 +01:00
|
|
|
overflow: hidden;
|
2021-01-26 03:44:46 +01:00
|
|
|
}
|
|
|
|
|
|
2023-03-21 04:45:32 +01:00
|
|
|
.snapshot-tab .toolbar {
|
|
|
|
|
background-color: var(--vscode-sideBar-background);
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-26 03:44:46 +01:00
|
|
|
.snapshot-controls {
|
2021-04-20 04:50:11 +02:00
|
|
|
flex: none;
|
2022-10-28 01:50:41 +02:00
|
|
|
background-color: var(--vscode-sideBar-background);
|
|
|
|
|
color: var(--vscode-sideBarTitle-foreground);
|
2021-01-26 03:44:46 +01:00
|
|
|
display: flex;
|
2021-04-20 04:50:11 +02:00
|
|
|
box-shadow: var(--box-shadow);
|
|
|
|
|
height: 32px;
|
2021-01-26 03:44:46 +01:00
|
|
|
align-items: center;
|
2021-04-20 04:50:11 +02:00
|
|
|
justify-content: center;
|
2021-01-26 03:44:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.snapshot-toggle {
|
2021-04-19 23:09:50 +02:00
|
|
|
margin-top: 4px;
|
2021-03-11 20:22:59 +01:00
|
|
|
padding: 4px 8px;
|
2021-01-26 03:44:46 +01:00
|
|
|
cursor: pointer;
|
2021-03-11 20:22:59 +01:00
|
|
|
border-radius: 20px;
|
|
|
|
|
margin-left: 4px;
|
2021-04-19 23:09:50 +02:00
|
|
|
width: 60px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2021-03-11 20:22:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.snapshot-toggle:hover {
|
|
|
|
|
background-color: #ededed;
|
2021-01-26 03:44:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.snapshot-toggle.toggled {
|
2021-04-19 23:09:50 +02:00
|
|
|
background: var(--gray);
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.snapshot-tab:focus .snapshot-toggle.toggled {
|
2023-07-10 21:56:56 +02:00
|
|
|
background: var(--vscode-charts-blue);
|
2021-01-26 03:44:46 +01:00
|
|
|
}
|
|
|
|
|
|
2021-01-08 01:15:34 +01:00
|
|
|
.snapshot-wrapper {
|
|
|
|
|
flex: auto;
|
|
|
|
|
margin: 1px;
|
2021-03-11 20:22:59 +01:00
|
|
|
padding: 10px;
|
2023-01-31 04:07:52 +01:00
|
|
|
position: relative;
|
2021-01-08 01:15:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.snapshot-container {
|
|
|
|
|
display: block;
|
2022-11-22 17:41:52 +01:00
|
|
|
box-shadow: 0 12px 28px 0 rgba(0,0,0,.2),0 2px 4px 0 rgba(0,0,0,.1);
|
2021-01-08 01:15:34 +01:00
|
|
|
}
|
|
|
|
|
|
2023-03-21 15:40:54 +01:00
|
|
|
.snapshot-switcher {
|
2021-01-08 01:15:34 +01:00
|
|
|
width: 100%;
|
2023-08-23 00:46:41 +02:00
|
|
|
height: calc(100% - var(--browser-frame-header-height));
|
2023-03-21 15:40:54 +01:00
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iframe[name=snapshot] {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2021-01-08 01:15:34 +01:00
|
|
|
border: none;
|
2022-11-22 17:41:52 +01:00
|
|
|
background: white;
|
2023-03-21 15:40:54 +01:00
|
|
|
visibility: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iframe.snapshot-visible[name=snapshot] {
|
|
|
|
|
visibility: visible;
|
2021-01-08 01:15:34 +01:00
|
|
|
}
|
2022-02-01 18:26:38 +01:00
|
|
|
|
|
|
|
|
.no-snapshot {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 50px;
|
|
|
|
|
}
|
2022-11-22 17:41:52 +01:00
|
|
|
|
2023-01-31 04:07:52 +01:00
|
|
|
.popout-icon {
|
|
|
|
|
position: absolute;
|
2023-02-16 16:59:21 +01:00
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
color: var(--vscode-sideBarTitle-foreground);
|
2023-01-31 04:07:52 +01:00
|
|
|
font-size: 14px;
|
2023-02-16 16:59:21 +01:00
|
|
|
z-index: 100;
|
|
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
text-decoration: none;
|
2023-01-31 04:07:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.popout-icon:not(.popout-disabled):hover {
|
2023-02-16 16:59:21 +01:00
|
|
|
color: var(--vscode-foreground);
|
2023-01-31 04:07:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.popout-icon.popout-disabled {
|
2023-02-16 16:59:21 +01:00
|
|
|
opacity: var(--vscode-disabledForeground);
|
2023-01-31 04:07:52 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-17 20:19:53 +01:00
|
|
|
.snapshot-tab .cm-wrapper {
|
|
|
|
|
line-height: 23px;
|
2023-03-19 20:04:19 +01:00
|
|
|
margin-right: 4px;
|
2023-02-17 20:19:53 +01:00
|
|
|
}
|