mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 20:58:24 +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>
92 lines
2.0 KiB
CSS
92 lines
2.0 KiB
CSS
/*
|
|
* Copyright 2017 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.
|
|
*/
|
|
|
|
.perfmon-pane {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.perfmon-pane.suspended {
|
|
opacity: 40%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.perfmon-pane .perfmon-chart-suspend-overlay {
|
|
display: none;
|
|
font-size: 26px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.perfmon-pane.suspended .perfmon-chart-suspend-overlay {
|
|
display: flex;
|
|
}
|
|
|
|
.perfmon-control-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 6px 0;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.perfmon-chart-container {
|
|
display: flex;
|
|
flex: 1 1;
|
|
border-left: 1px solid #ccc; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.perfmon-chart-container canvas {
|
|
width: 100%;
|
|
}
|
|
|
|
.perfmon-indicator {
|
|
padding: 6px 12px;
|
|
margin: -1px 0;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
width: 210px;
|
|
}
|
|
|
|
.perfmon-indicator:hover {
|
|
background-color: #f8f8f8; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.perfmon-indicator:focus-visible {
|
|
background-color: #f8f8f8; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.perfmon-indicator-swatch {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.perfmon-indicator:not(.active) .perfmon-indicator-swatch {
|
|
background-color: #eee !important; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.perfmon-indicator-title {
|
|
flex: 0 0 115px;
|
|
}
|
|
|
|
.perfmon-indicator:not(.active) .perfmon-indicator-title {
|
|
color: #aaa; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.perfmon-indicator-value {
|
|
flex: 0 0 55px;
|
|
text-align: right;
|
|
overflow: visible;
|
|
}
|
|
|
|
.perfmon-indicator:not(.active) .perfmon-indicator-value {
|
|
opacity: 0%;
|
|
}
|