| 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 | @stylex stylesheet; |
| b69ab31 | | | 9 | |
| b69ab31 | | | 10 | /** |
| b69ab31 | | | 11 | * We don't assume we're rendered directly into <body>, |
| b69ab31 | | | 12 | * so we don't put any styles on <body> itself. |
| b69ab31 | | | 13 | */ |
| b69ab31 | | | 14 | .isl-root { |
| b69ab31 | | | 15 | /** |
| b69ab31 | | | 16 | * These CSS variables come from the VS Code webview UI toolkit: |
| b69ab31 | | | 17 | * https://github.com/microsoft/vscode-webview-ui-toolkit/blob/main/src/design-tokens.ts |
| b69ab31 | | | 18 | */ |
| b69ab31 | | | 19 | background-color: var(--background); |
| b69ab31 | | | 20 | color: var(--foreground); |
| b69ab31 | | | 21 | |
| b69ab31 | | | 22 | margin: 0; |
| b69ab31 | | | 23 | font-family: |
| b69ab31 | | | 24 | -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', |
| b69ab31 | | | 25 | 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; |
| b69ab31 | | | 26 | |
| b69ab31 | | | 27 | --pad: 10px; |
| b69ab31 | | | 28 | --halfpad: 5px; |
| b69ab31 | | | 29 | |
| b69ab31 | | | 30 | --vscode-button-height: 26px; /* height of vscode-button */ |
| b69ab31 | | | 31 | --vscode-icon-button-height: 22px; /* height of vscode-button with appearance="icon" */ |
| b69ab31 | | | 32 | |
| b69ab31 | | | 33 | --monospace-fontFamily: var( |
| b69ab31 | | | 34 | --vscode-editor-font-family, |
| b69ab31 | | | 35 | source-code-pro, |
| b69ab31 | | | 36 | SFMono-Regular, |
| b69ab31 | | | 37 | Consolas, |
| b69ab31 | | | 38 | 'Liberation Mono', |
| b69ab31 | | | 39 | Menlo, |
| b69ab31 | | | 40 | Courier, |
| b69ab31 | | | 41 | monospace |
| b69ab31 | | | 42 | ); |
| b69ab31 | | | 43 | |
| b69ab31 | | | 44 | --editor-font-size: var(--vscode-editor-font-size, 12px); |
| b69ab31 | | | 45 | |
| b69ab31 | | | 46 | height: calc(100vh / var(--zoom, 1)); |
| b69ab31 | | | 47 | max-height: calc(100vh / var(--zoom, 1)); |
| b69ab31 | | | 48 | display: flex; |
| b69ab31 | | | 49 | flex-direction: column; |
| b69ab31 | | | 50 | |
| b69ab31 | | | 51 | zoom: var(--zoom, 1); |
| b69ab31 | | | 52 | } |
| b69ab31 | | | 53 | |
| b69ab31 | | | 54 | .main-content-area { |
| b69ab31 | | | 55 | overflow-y: auto; |
| b69ab31 | | | 56 | flex-grow: 1; |
| b69ab31 | | | 57 | } |
| b69ab31 | | | 58 | |
| b69ab31 | | | 59 | code { |
| b69ab31 | | | 60 | font-family: var(--monospace-fontFamily); |
| b69ab31 | | | 61 | } |
| b69ab31 | | | 62 | |
| b69ab31 | | | 63 | .empty-app-state { |
| b69ab31 | | | 64 | display: flex; |
| b69ab31 | | | 65 | flex-direction: column; |
| b69ab31 | | | 66 | padding: calc(4 * var(--pad)); |
| b69ab31 | | | 67 | width: calc(100% - 8 * var(--pad)); |
| b69ab31 | | | 68 | height: 100%; |
| b69ab31 | | | 69 | align-items: center; |
| b69ab31 | | | 70 | justify-content: center; |
| b69ab31 | | | 71 | } |
| b69ab31 | | | 72 | |
| b69ab31 | | | 73 | vscode-button::part(content) { |
| b69ab31 | | | 74 | white-space: nowrap; |
| b69ab31 | | | 75 | align-items: center; |
| b69ab31 | | | 76 | } |
| b69ab31 | | | 77 | vscode-button::part(control) { |
| b69ab31 | | | 78 | margin: 0; |
| b69ab31 | | | 79 | } |
| b69ab31 | | | 80 | |
| b69ab31 | | | 81 | vscode-button[appearance='icon'] { |
| b69ab31 | | | 82 | border: 1px solid var(--subtle-hover-darken); |
| b69ab31 | | | 83 | } |
| b69ab31 | | | 84 | vscode-button[appearance='icon']:not(:hover) { |
| b69ab31 | | | 85 | background-color: var(--subtle-hover-darken); |
| b69ab31 | | | 86 | } |