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