/**
 * Copyright (c) HashiCorp, Inc.
 * SPDX-License-Identifier: BUSL-1.1
 */

// used in KV version diff view. https://github.com/benjamine/jsondiffpatch/tree/master

.jsondiffpatch-deleted .jsondiffpatch-property-name,
.jsondiffpatch-deleted pre,
.jsondiffpatch-modified .jsondiffpatch-left-value pre,
.jsondiffpatch-textdiff-deleted {
  background: var(--token-color-foreground-critical-high-contrast);
}
.jsondiffpatch-added .jsondiffpatch-property-name,
.jsondiffpatch-added .jsondiffpatch-value pre,
.jsondiffpatch-modified .jsondiffpatch-right-value pre,
.jsondiffpatch-textdiff-added {
  background: var(--token-color-foreground-success-high-contrast);
}

.jsondiffpatch-property-name {
  color: $ui-gray-300;
}

.jsondiffpatch-added > .jsondiffpatch-property-name {
  color: var(--token-color-surface-success);
}

.jsondiffpatch-deleted > .jsondiffpatch-property-name {
  color: var(--token-color-surface-critical);
}
