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