mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 12:33:47 +08:00
The list of CSS properties we check for colors wasn't thorough and didn't include `border-left/right/top/bottom` or `background` on its own. This CL fixes that and disables the rule for any current violations. Bug: 1152736 Change-Id: Ic732d653fdfab0462a04dc891bcece1f44e5d471 No-Presubmit: true Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676157 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
71 lines
2.2 KiB
CSS
71 lines
2.2 KiB
CSS
/*
|
|
* 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 #ccc; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.websocket-frame-view .data-grid tr.selected {
|
|
background-color: #def; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.websocket-frame-view .data-grid td,
|
|
.websocket-frame-view .data-grid th {
|
|
border-left-color: #ccc; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.websocket-frame-view-row-send td:first-child::before {
|
|
content: "\2B06";
|
|
color: #080; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.websocket-frame-view-row-receive td:first-child::before {
|
|
content: "\2B07";
|
|
color: #e65100; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.data-grid:focus .websocket-frame-view-row-send.selected td:first-child::before,
|
|
.data-grid:focus .websocket-frame-view-row-receive.selected td:first-child::before {
|
|
color: #fff; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.websocket-frame-view-row-send {
|
|
background-color: rgb(226 247 218); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.websocket-frame-view-row-error {
|
|
background-color: rgb(255 237 237); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
color: rgb(182 0 0); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.websocket-frame-view .toolbar {
|
|
border-bottom: var(--divider-border);
|
|
}
|