Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

3.3 KB
Raw Blame
/**
 * 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.
 */

.debugger-panel {
  display: flex;
  flex-direction: column;
  flex: auto;
  width: 100%;
  height: 100%;
  background: var(--color-canvas-default);
  overflow: hidden;
}

.debugger-panel-title {
  font-weight: 600;
  padding: 0 4px;
}

.debugger-panel .debugger-run-control:not(:disabled),
.debugger-panel .debugger-run-control:not(:disabled) .codicon {
  color: var(--color-success-fg);
}

.debugger-panel.paused .toolbar,
.debugger-panel.pause-pending .toolbar {
  background: var(--color-attention-subtle);
}

.debugger-status {
  flex: none;
  padding: 0 8px;
  font-weight: 500;
  color: var(--color-attention-fg);
  white-space: nowrap;
}

.debugger-call-log {
  display: flex;
  flex-direction: column;
  flex: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  line-height: 20px;
  white-space: pre;
  overflow: auto;
}

.debugger-source {
  display: flex;
  flex-direction: column;
  flex: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.debugger-source-header {
  flex: none;
  padding: 2px 8px;
  font-weight: 500;
  color: var(--color-fg-muted);
  border-bottom: 1px solid var(--color-border-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debugger-source .cm-wrapper,
.debugger-source .CodeMirror {
  flex: auto;
  min-height: 0;
}

.debugger-empty {
  padding: 12px;
  color: var(--color-fg-muted);
  white-space: normal;
}

.debugger-call {
  display: flex;
  flex: none;
  flex-direction: column;
  border-top: 1px solid var(--color-border-muted);
}

.debugger-call-header {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  gap: 2px;
}

.debugger-call-header.expandable {
  cursor: pointer;
}

.debugger-call-header.expandable:hover {
  background: var(--color-canvas-subtle);
}

.debugger-call .codicon {
  padding: 0 4px;
  flex: none;
}

.debugger-call-title {
  flex: none;
  font-weight: 500;
}

.debugger-call-location {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-fg-muted);
}

.debugger-call .codicon-loading {
  margin-left: auto;
}

.debugger-call .codicon-error {
  color: var(--color-danger-fg, #cd3131);
  margin-left: auto;
}

.debugger-call.error {
  background-color: var(--color-danger-subtle, rgba(205, 49, 49, 0.1));
}

.debugger-call-message {
  flex: none;
  padding: 3px 0 3px 36px;
  display: flex;
  align-items: center;
  color: var(--color-fg-muted);
}

.debugger-call-message.error {
  color: var(--color-danger-fg, #cd3131);
  white-space: pre-wrap;
}

.debugger-action-point {
  position: absolute;
  width: 2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: red;
  border-radius: 50%;
  pointer-events: none;
  z-index: 11;
}