| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | .modal { |
| 9 | position: fixed; |
| 10 | width: calc(100vw / var(--zoom, 1)); |
| 11 | height: calc(100vh / var(--zoom, 1)); |
| 12 | background-color: rgba(0, 0, 0, 0.2); |
| 13 | z-index: 100; |
| 14 | display: flex; |
| 15 | align-items: center; |
| 16 | justify-content: center; |
| 17 | left: 0; |
| 18 | top: 0; |
| 19 | } |
| 20 | |
| 21 | .dark-theme .modal, |
| 22 | .vscode-dark .modal { |
| 23 | background-color: rgba(0, 0, 0, 0.5); |
| 24 | } |
| 25 | |
| 26 | .modal-contents { |
| 27 | background-color: var(--background); |
| 28 | --border-amt: calc(4 * var(--pad)); |
| 29 | --padding-amt: calc(1 * var(--pad)); |
| 30 | margin: var(--border-amt); |
| 31 | padding: var(--padding-amt); |
| 32 | padding-bottom: 0; |
| 33 | background-color: var(--background); |
| 34 | border-radius: 8px; |
| 35 | box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); |
| 36 | height: calc((100vh / var(--zoom, 1)) - 2 * var(--border-amt) - 2 * var(--padding-amt)); |
| 37 | width: calc((100vw / var(--zoom, 1)) - 2 * var(--border-amt) - 2 * var(--padding-amt)); |
| 38 | display: flex; |
| 39 | flex-direction: column; |
| 40 | position: relative; |
| 41 | } |
| 42 | |
| 43 | .dismiss-modal { |
| 44 | display: flex; |
| 45 | position: absolute; |
| 46 | top: var(--pad); |
| 47 | right: var(--pad); |
| 48 | z-index: 10; |
| 49 | } |
| 50 | |