addons/vscode/webview/vscode-styles.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
b69ab318body {
b69ab319 padding: 0;
b69ab3110 overflow: hidden;
b69ab3111}
b69ab3112
b69ab3113html body.vscode-high-contrast.vscode-high-contrast > * {
b69ab3114 --button-primary-hover-background: var(--vscode-contrastBorder);
b69ab3115 --selected-commit-border: 1px solid var(--vscode-button-border);
b69ab3116}
b69ab3117
b69ab3118.webview-view .isl-root {
b69ab3119 --background: var(--vscode-sideBar-background);
b69ab3120 outline: 1px solid var(--vscode-panel-border);
b69ab3121 outline-offset: -1px;
b69ab3122}
b69ab3123
b69ab3124code {
b69ab3125 /* vscode webview default styling sets color to var(--vscode-textPreformat-foreground),
b69ab3126 which is an undesirably noticeable red color.
b69ab3127 Just unset this to reset to more browser-like style. */
b69ab3128 color: unset;
b69ab3129 background-color: unset;
b69ab3130}
b69ab3131
b69ab3132/* Improve handling of the "Modern" themes, which have a particularly "loud" badge color. */
b69ab3133body[data-vscode-theme-id='Default Light Modern'] .commit-rows vscode-tag::part(control),
b69ab3134body[data-vscode-theme-id='Default Dark Modern'] .commit-rows vscode-tag::part(control) {
b69ab3135 background-color: var(--vscode-tab-unfocusedHoverBackground);
b69ab3136 color: var(--vscode-tab-activeForeground);
b69ab3137}
b69ab3138
b69ab3139body[data-vscode-theme-kind='vscode-high-contrast'] .inline-badge.badge-primary {
b69ab3140 background-color: var(--background);
b69ab3141 outline: 1px solid var(--vscode-button-border);
b69ab3142}
b69ab3143
b69ab3144/* Match VS Code Webview UI Toolkit variables with vscode theme colors. */
b69ab3145body {
b69ab3146 --background: var(--vscode-editor-background);
c3ed59a47 --focus-border: #4d8a78;
b69ab3148 --foreground: var(--vscode-foreground);
b69ab3149 --scrollbar-slider-background: var(--vscode-scrollbarSlider-background);
b69ab3150 --scrollbar-slider-hover-background: var(--vscode-scrollbarSlider-hoverBackground);
b69ab3151 --scrollbar-slider-active-background: var(--vscode-scrollbarSlider-activeBackground);
b69ab3152 --badge-background: var(--vscode-badge-background);
b69ab3153 --badge-foreground: var(--vscode-badge-foreground);
b69ab3154 --button-border: var(--vscode-button-border);
b69ab3155 /* --button-icon-background: var(--vscode-button-icon-background);
b69ab3156 --button-icon-hover-background: var(--vscode-button-icon-hover-background); */
c3ed59a57 --button-primary-background: #4d8a78;
c3ed59a58 --button-primary-foreground: #ffffff;
c3ed59a59 --button-primary-hover-background: #5b9e8a;
b69ab3160 --button-secondary-background: var(--vscode-button-secondaryBackground);
b69ab3161 --button-secondary-foreground: var(--vscode-button-secondaryForeground);
b69ab3162 --button-secondary-hover-background: var(--vscode-button-secondaryHoverBackground);
b69ab3163 --checkbox-background: var(--vscode-checkbox-background);
b69ab3164 --checkbox-border: var(--vscode-checkbox-border);
b69ab3165 --checkbox-foreground: var(--vscode-checkbox-foreground);
b69ab3166 --list-active-selection-background: var(--vscode-list-activeSelectionBackground);
b69ab3167 --list-active-selection-foreground: var(--vscode-list-activeSelectionForeground);
b69ab3168 --list-hover-background: var(--vscode-list-hoverBackground);
b69ab3169 --divider-background: var(--vscode-settings-dropdownListBorder);
b69ab3170 --dropdown-background: var(--vscode-dropdown-background);
b69ab3171 --dropdown-border: var(--vscode-dropdown-border);
b69ab3172 --dropdown-foreground: var(--vscode-dropdown-foreground);
b69ab3173 --input-background: var(--vscode-input-background);
b69ab3174 --input-foreground: var(--vscode-input-foreground);
b69ab3175 --input-placeholder-foreground: var(--vscode-input-placeholderForeground);
c3ed59a76 --link-active-foreground: #6bb3a0;
c3ed59a77 --link-foreground: #6bb3a0;
c3ed59a78 --progress-background: #4d8a78;
b69ab3179 --panel-tab-active-border: var(--vscode-panelTitle-activeBorder);
b69ab3180 --panel-tab-active-foreground: var(--vscode-panelTitle-activeForeground);
b69ab3181 --panel-tab-foreground: var(--vscode-panelTitle-inactiveForeground);
b69ab3182 --panel-view-background: var(--vscode-panel-background);
b69ab3183 --panel-view-border: var(--vscode-panel-border);
b69ab3184}