Skip to content

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

1.6 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.
 */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  padding: 24px;
}

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--color-canvas-default);
  border: 1px solid var(--color-border-default);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 40px;
  min-height: 40px;
  background: var(--color-canvas-overlay);
  padding: 0 8px;
  border-bottom: 1px solid var(--color-border-muted);
}

:root.light-mode .modal-toolbar {
  background: var(--color-canvas-subtle);
}

.modal-title {
  margin-right: auto;
  padding-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-fg-default);
}

.modal-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px;
}