/*
  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 {
  align-items: stretch;
  outline: none;
  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;
  --browser-frame-header-height: 40px;
}

.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-browser-body {
  height: calc(100% - var(--browser-frame-header-height));

  /* CSS checkerboard */
  background: conic-gradient(#eee 25%, #ddd 0 50%, #eee 0 75%, #ddd 0) 0 0 / 40px 40px;
}

.snapshot-switcher {
  width: 100%;
  height: 100%;
  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;
}
