| 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 | body { |
| 9 | padding: 0; |
| 10 | overflow: hidden; |
| 11 | } |
| 12 | |
| 13 | html body.vscode-high-contrast.vscode-high-contrast > * { |
| 14 | --button-primary-hover-background: var(--vscode-contrastBorder); |
| 15 | --selected-commit-border: 1px solid var(--vscode-button-border); |
| 16 | } |
| 17 | |
| 18 | .webview-view .isl-root { |
| 19 | --background: var(--vscode-sideBar-background); |
| 20 | outline: 1px solid var(--vscode-panel-border); |
| 21 | outline-offset: -1px; |
| 22 | } |
| 23 | |
| 24 | code { |
| 25 | /* vscode webview default styling sets color to var(--vscode-textPreformat-foreground), |
| 26 | which is an undesirably noticeable red color. |
| 27 | Just unset this to reset to more browser-like style. */ |
| 28 | color: unset; |
| 29 | background-color: unset; |
| 30 | } |
| 31 | |
| 32 | /* Improve handling of the "Modern" themes, which have a particularly "loud" badge color. */ |
| 33 | body[data-vscode-theme-id='Default Light Modern'] .commit-rows vscode-tag::part(control), |
| 34 | body[data-vscode-theme-id='Default Dark Modern'] .commit-rows vscode-tag::part(control) { |
| 35 | background-color: var(--vscode-tab-unfocusedHoverBackground); |
| 36 | color: var(--vscode-tab-activeForeground); |
| 37 | } |
| 38 | |
| 39 | body[data-vscode-theme-kind='vscode-high-contrast'] .inline-badge.badge-primary { |
| 40 | background-color: var(--background); |
| 41 | outline: 1px solid var(--vscode-button-border); |
| 42 | } |
| 43 | |
| 44 | /* Match VS Code Webview UI Toolkit variables with vscode theme colors. */ |
| 45 | body { |
| 46 | --background: var(--vscode-editor-background); |
| 47 | --focus-border: #4d8a78; |
| 48 | --foreground: var(--vscode-foreground); |
| 49 | --scrollbar-slider-background: var(--vscode-scrollbarSlider-background); |
| 50 | --scrollbar-slider-hover-background: var(--vscode-scrollbarSlider-hoverBackground); |
| 51 | --scrollbar-slider-active-background: var(--vscode-scrollbarSlider-activeBackground); |
| 52 | --badge-background: var(--vscode-badge-background); |
| 53 | --badge-foreground: var(--vscode-badge-foreground); |
| 54 | --button-border: var(--vscode-button-border); |
| 55 | /* --button-icon-background: var(--vscode-button-icon-background); |
| 56 | --button-icon-hover-background: var(--vscode-button-icon-hover-background); */ |
| 57 | --button-primary-background: #4d8a78; |
| 58 | --button-primary-foreground: #ffffff; |
| 59 | --button-primary-hover-background: #5b9e8a; |
| 60 | --button-secondary-background: var(--vscode-button-secondaryBackground); |
| 61 | --button-secondary-foreground: var(--vscode-button-secondaryForeground); |
| 62 | --button-secondary-hover-background: var(--vscode-button-secondaryHoverBackground); |
| 63 | --checkbox-background: var(--vscode-checkbox-background); |
| 64 | --checkbox-border: var(--vscode-checkbox-border); |
| 65 | --checkbox-foreground: var(--vscode-checkbox-foreground); |
| 66 | --list-active-selection-background: var(--vscode-list-activeSelectionBackground); |
| 67 | --list-active-selection-foreground: var(--vscode-list-activeSelectionForeground); |
| 68 | --list-hover-background: var(--vscode-list-hoverBackground); |
| 69 | --divider-background: var(--vscode-settings-dropdownListBorder); |
| 70 | --dropdown-background: var(--vscode-dropdown-background); |
| 71 | --dropdown-border: var(--vscode-dropdown-border); |
| 72 | --dropdown-foreground: var(--vscode-dropdown-foreground); |
| 73 | --input-background: var(--vscode-input-background); |
| 74 | --input-foreground: var(--vscode-input-foreground); |
| 75 | --input-placeholder-foreground: var(--vscode-input-placeholderForeground); |
| 76 | --link-active-foreground: #6bb3a0; |
| 77 | --link-foreground: #6bb3a0; |
| 78 | --progress-background: #4d8a78; |
| 79 | --panel-tab-active-border: var(--vscode-panelTitle-activeBorder); |
| 80 | --panel-tab-active-foreground: var(--vscode-panelTitle-activeForeground); |
| 81 | --panel-tab-foreground: var(--vscode-panelTitle-inactiveForeground); |
| 82 | --panel-view-background: var(--vscode-panel-background); |
| 83 | --panel-view-border: var(--vscode-panel-border); |
| 84 | } |
| 85 | |