| 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 | .dark-theme, |
| 9 | .light-theme { |
| 10 | /** |
| 11 | * These CSS variables come from the VS Code webview UI toolkit: |
| 12 | * https://github.com/microsoft/vscode-webview-ui-toolkit/blob/main/src/design-tokens.ts |
| 13 | */ |
| 14 | background-color: var(--background); |
| 15 | color: var(--foreground); |
| 16 | |
| 17 | font-family: |
| 18 | -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', |
| 19 | 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; |
| 20 | |
| 21 | --pad: 10px; |
| 22 | --halfpad: 5px; |
| 23 | |
| 24 | --vscode-button-height: 26px; /* height of vscode-button */ |
| 25 | --vscode-icon-button-height: 22px; /* height of vscode-button with appearance="icon" */ |
| 26 | |
| 27 | --monospace-fontFamily: var( |
| 28 | --vscode-editor-font-family, |
| 29 | source-code-pro, |
| 30 | SFMono-Regular, |
| 31 | Consolas, |
| 32 | 'Liberation Mono', |
| 33 | Menlo, |
| 34 | Courier, |
| 35 | monospace |
| 36 | ); |
| 37 | |
| 38 | --editor-font-size: var(--vscode-font-size, 13px); |
| 39 | |
| 40 | height: calc(100vh / var(--zoom, 1)); |
| 41 | max-height: calc(100vh / var(--zoom, 1)); |
| 42 | |
| 43 | zoom: var(--zoom, 1); |
| 44 | } |
| 45 | |