addons/isl/src/ComparisonView/ComparisonView.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
b69ab318.comparison-view-file {
b69ab319 width: 100%;
b69ab3110}
b69ab3111
b69ab3112.comparison-view-base-styles,
b69ab3113.comparison-view-container,
b69ab3114.comparison-view {
b69ab3115 display: contents;
b69ab3116}
b69ab3117
b69ab3118.comparison-view-header {
b69ab3119 padding: var(--pad) 0 var(--halfpad) 0;
b69ab3120 margin-bottom: var(--pad);
b69ab3121 position: relative;
b69ab3122 display: flex;
b69ab3123 align-items: flex-start;
b69ab3124 justify-content: space-between;
b69ab3125}
b69ab3126.comparison-view-header-group {
b69ab3127 display: flex;
b69ab3128 gap: var(--pad);
b69ab3129 align-items: center;
b69ab3130 flex-wrap: wrap;
b69ab3131}
b69ab3132
b69ab3133.comparison-view-header vscode-dropdown {
b69ab3134 z-index: 2;
b69ab3135}
b69ab3136
b69ab3137.comparison-view-details {
b69ab3138 overflow-x: hidden;
b69ab3139 overflow-y: scroll;
b69ab3140 display: flex;
b69ab3141 flex-direction: column;
b69ab3142 gap: var(--pad);
b69ab3143 padding-bottom: var(--pad);
b69ab3144 align-items: center;
b69ab3145 /* height: calc(100% - 41px); */
b69ab3146}
b69ab3147
b69ab3148.comparison-view .split-diff-view {
b69ab3149 border-top-width: 0;
b69ab3150 border-radius: 0;
b69ab3151}
b69ab3152
b69ab3153.file-header-copyable-path {
b69ab3154 cursor: pointer;
b69ab3155 display: inherit;
b69ab3156 word-break: break-word;
b69ab3157}
b69ab3158
b69ab3159.file-header-copyfrom-path {
b69ab3160 cursor: default;
b69ab3161 opacity: 0.5;
b69ab3162 color: grey;
b69ab3163 padding: 0 0.5em;
b69ab3164}
b69ab3165
b69ab3166.file-header-copyable-path:hover,
b69ab3167.file-header-copyable-path:hover ~ .file-header-copyable-path {
b69ab3168 text-decoration-line: underline;
b69ab3169}
b69ab3170
b69ab3171.file-header-copyable-path-hover {
b69ab3172 font-size: 90%;
b69ab3173}
b69ab3174
b69ab3175.comparison-view-modal {
b69ab3176 --border-amt: calc(2 * var(--pad));
b69ab3177}
b69ab3178
b69ab3179.comparison-view-root {
b69ab3180 padding-inline: var(--pad);
b69ab3181 max-height: calc(100vh / var(--zoom, 1));
b69ab3182 max-width: calc(100vw / var(--zoom, 1));
b69ab3183 height: calc((100vh / var(--zoom, 1)));
b69ab3184 display: flex;
b69ab3185 flex-direction: column;
b69ab3186 position: relative;
b69ab3187}