addons/isl/src/index.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@stylex stylesheet;
b69ab319
b69ab3110/**
b69ab3111 * We don't assume we're rendered directly into <body>,
b69ab3112 * so we don't put any styles on <body> itself.
b69ab3113 */
b69ab3114.isl-root {
b69ab3115 /**
b69ab3116 * These CSS variables come from the VS Code webview UI toolkit:
b69ab3117 * https://github.com/microsoft/vscode-webview-ui-toolkit/blob/main/src/design-tokens.ts
b69ab3118 */
b69ab3119 background-color: var(--background);
b69ab3120 color: var(--foreground);
b69ab3121
b69ab3122 margin: 0;
b69ab3123 font-family:
b69ab3124 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
b69ab3125 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
b69ab3126
b69ab3127 --pad: 10px;
b69ab3128 --halfpad: 5px;
b69ab3129
b69ab3130 --vscode-button-height: 26px; /* height of vscode-button */
b69ab3131 --vscode-icon-button-height: 22px; /* height of vscode-button with appearance="icon" */
b69ab3132
b69ab3133 --monospace-fontFamily: var(
b69ab3134 --vscode-editor-font-family,
b69ab3135 source-code-pro,
b69ab3136 SFMono-Regular,
b69ab3137 Consolas,
b69ab3138 'Liberation Mono',
b69ab3139 Menlo,
b69ab3140 Courier,
b69ab3141 monospace
b69ab3142 );
b69ab3143
b69ab3144 --editor-font-size: var(--vscode-editor-font-size, 12px);
b69ab3145
b69ab3146 height: calc(100vh / var(--zoom, 1));
b69ab3147 max-height: calc(100vh / var(--zoom, 1));
b69ab3148 display: flex;
b69ab3149 flex-direction: column;
b69ab3150
b69ab3151 zoom: var(--zoom, 1);
b69ab3152}
b69ab3153
b69ab3154.main-content-area {
b69ab3155 overflow-y: auto;
b69ab3156 flex-grow: 1;
b69ab3157}
b69ab3158
b69ab3159code {
b69ab3160 font-family: var(--monospace-fontFamily);
b69ab3161}
b69ab3162
b69ab3163.empty-app-state {
b69ab3164 display: flex;
b69ab3165 flex-direction: column;
b69ab3166 padding: calc(4 * var(--pad));
b69ab3167 width: calc(100% - 8 * var(--pad));
b69ab3168 height: 100%;
b69ab3169 align-items: center;
b69ab3170 justify-content: center;
b69ab3171}
b69ab3172
b69ab3173vscode-button::part(content) {
b69ab3174 white-space: nowrap;
b69ab3175 align-items: center;
b69ab3176}
b69ab3177vscode-button::part(control) {
b69ab3178 margin: 0;
b69ab3179}
b69ab3180
b69ab3181vscode-button[appearance='icon'] {
b69ab3182 border: 1px solid var(--subtle-hover-darken);
b69ab3183}
b69ab3184vscode-button[appearance='icon']:not(:hover) {
b69ab3185 background-color: var(--subtle-hover-darken);
b69ab3186}