addons/isl/src/Modal.cssblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318.modal {
b69ab319 position: fixed;
b69ab3110 width: calc(100vw / var(--zoom, 1));
b69ab3111 height: calc(100vh / var(--zoom, 1));
b69ab3112 background-color: rgba(0, 0, 0, 0.2);
b69ab3113 z-index: 100;
b69ab3114 display: flex;
b69ab3115 align-items: center;
b69ab3116 justify-content: center;
b69ab3117 left: 0;
b69ab3118 top: 0;
b69ab3119}
b69ab3120
b69ab3121.dark-theme .modal,
b69ab3122.vscode-dark .modal {
b69ab3123 background-color: rgba(0, 0, 0, 0.5);
b69ab3124}
b69ab3125
b69ab3126.modal-contents {
b69ab3127 background-color: var(--background);
b69ab3128 --border-amt: calc(4 * var(--pad));
b69ab3129 --padding-amt: calc(1 * var(--pad));
b69ab3130 margin: var(--border-amt);
b69ab3131 padding: var(--padding-amt);
b69ab3132 padding-bottom: 0;
b69ab3133 background-color: var(--background);
b69ab3134 border-radius: 8px;
b69ab3135 box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
b69ab3136 height: calc((100vh / var(--zoom, 1)) - 2 * var(--border-amt) - 2 * var(--padding-amt));
b69ab3137 width: calc((100vw / var(--zoom, 1)) - 2 * var(--border-amt) - 2 * var(--padding-amt));
b69ab3138 display: flex;
b69ab3139 flex-direction: column;
b69ab3140 position: relative;
b69ab3141}
b69ab3142
b69ab3143.dismiss-modal {
b69ab3144 display: flex;
b69ab3145 position: absolute;
b69ab3146 top: var(--pad);
b69ab3147 right: var(--pad);
b69ab3148 z-index: 10;
b69ab3149}