/*
 * Copyright 2014 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.resource-chunk-view {
  user-select: text;
}

.resource-chunk-view .data-grid {
  flex: auto;
  border: none;

  & tr {
    &.resource-chunk-view-row-send td:first-child::before {
      content: "\2B06";
      color: var(--sys-color-tertiary);
      padding-right: 4px;
    }

    &.resource-chunk-view-row-receive td:first-child::before {
      content: "\2B07";
      color: var(--sys-color-error);
      padding-right: 4px;
    }

    &.resource-chunk-view-row-send {
      background-color: color-mix(in srgb, var(--sys-color-tertiary-container), transparent 50%);
    }

    &.resource-chunk-view-row-error {
      background-color: var(--sys-color-surface-error);
      color: var(--sys-color-on-surface-error);
    }
  }
}

.resource-chunk-view .data-grid .data {
  background-image: none;
}

.resource-chunk-view devtools-toolbar {
  border-bottom: 1px solid var(--sys-color-divider);
}
