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

.websocket-frame-view {
  user-select: text;
}

.websocket-frame-view .data-grid {
  flex: auto;
  border: none;
}

.websocket-frame-view .data-grid .data {
  background-image: none;
}

.websocket-frame-view-td {
  border-bottom: 1px solid var(--sys-color-divider);
}

.websocket-frame-view .data-grid td,
.websocket-frame-view .data-grid th {
  border-left-color: 1px solid var(--sys-color-divider);
}

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

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

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

.websocket-frame-view-row-error {
  background-color: var(--sys-color-surface-error);
  color: var(--sys-color-on-surface-error);
}

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