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