| 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 | .comparison-view-file { |
| b69ab31 | | | 9 | width: 100%; |
| b69ab31 | | | 10 | } |
| b69ab31 | | | 11 | |
| b69ab31 | | | 12 | .comparison-view-base-styles, |
| b69ab31 | | | 13 | .comparison-view-container, |
| b69ab31 | | | 14 | .comparison-view { |
| b69ab31 | | | 15 | display: contents; |
| b69ab31 | | | 16 | } |
| b69ab31 | | | 17 | |
| b69ab31 | | | 18 | .comparison-view-header { |
| b69ab31 | | | 19 | padding: var(--pad) 0 var(--halfpad) 0; |
| b69ab31 | | | 20 | margin-bottom: var(--pad); |
| b69ab31 | | | 21 | position: relative; |
| b69ab31 | | | 22 | display: flex; |
| b69ab31 | | | 23 | align-items: flex-start; |
| b69ab31 | | | 24 | justify-content: space-between; |
| b69ab31 | | | 25 | } |
| b69ab31 | | | 26 | .comparison-view-header-group { |
| b69ab31 | | | 27 | display: flex; |
| b69ab31 | | | 28 | gap: var(--pad); |
| b69ab31 | | | 29 | align-items: center; |
| b69ab31 | | | 30 | flex-wrap: wrap; |
| b69ab31 | | | 31 | } |
| b69ab31 | | | 32 | |
| b69ab31 | | | 33 | .comparison-view-header vscode-dropdown { |
| b69ab31 | | | 34 | z-index: 2; |
| b69ab31 | | | 35 | } |
| b69ab31 | | | 36 | |
| b69ab31 | | | 37 | .comparison-view-details { |
| b69ab31 | | | 38 | overflow-x: hidden; |
| b69ab31 | | | 39 | overflow-y: scroll; |
| b69ab31 | | | 40 | display: flex; |
| b69ab31 | | | 41 | flex-direction: column; |
| b69ab31 | | | 42 | gap: var(--pad); |
| b69ab31 | | | 43 | padding-bottom: var(--pad); |
| b69ab31 | | | 44 | align-items: center; |
| b69ab31 | | | 45 | /* height: calc(100% - 41px); */ |
| b69ab31 | | | 46 | } |
| b69ab31 | | | 47 | |
| b69ab31 | | | 48 | .comparison-view .split-diff-view { |
| b69ab31 | | | 49 | border-top-width: 0; |
| b69ab31 | | | 50 | border-radius: 0; |
| b69ab31 | | | 51 | } |
| b69ab31 | | | 52 | |
| b69ab31 | | | 53 | .file-header-copyable-path { |
| b69ab31 | | | 54 | cursor: pointer; |
| b69ab31 | | | 55 | display: inherit; |
| b69ab31 | | | 56 | word-break: break-word; |
| b69ab31 | | | 57 | } |
| b69ab31 | | | 58 | |
| b69ab31 | | | 59 | .file-header-copyfrom-path { |
| b69ab31 | | | 60 | cursor: default; |
| b69ab31 | | | 61 | opacity: 0.5; |
| b69ab31 | | | 62 | color: grey; |
| b69ab31 | | | 63 | padding: 0 0.5em; |
| b69ab31 | | | 64 | } |
| b69ab31 | | | 65 | |
| b69ab31 | | | 66 | .file-header-copyable-path:hover, |
| b69ab31 | | | 67 | .file-header-copyable-path:hover ~ .file-header-copyable-path { |
| b69ab31 | | | 68 | text-decoration-line: underline; |
| b69ab31 | | | 69 | } |
| b69ab31 | | | 70 | |
| b69ab31 | | | 71 | .file-header-copyable-path-hover { |
| b69ab31 | | | 72 | font-size: 90%; |
| b69ab31 | | | 73 | } |
| b69ab31 | | | 74 | |
| b69ab31 | | | 75 | .comparison-view-modal { |
| b69ab31 | | | 76 | --border-amt: calc(2 * var(--pad)); |
| b69ab31 | | | 77 | } |
| b69ab31 | | | 78 | |
| b69ab31 | | | 79 | .comparison-view-root { |
| b69ab31 | | | 80 | padding-inline: var(--pad); |
| b69ab31 | | | 81 | max-height: calc(100vh / var(--zoom, 1)); |
| b69ab31 | | | 82 | max-width: calc(100vw / var(--zoom, 1)); |
| b69ab31 | | | 83 | height: calc((100vh / var(--zoom, 1))); |
| b69ab31 | | | 84 | display: flex; |
| b69ab31 | | | 85 | flex-direction: column; |
| b69ab31 | | | 86 | position: relative; |
| b69ab31 | | | 87 | } |