mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +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>
55 lines
1.5 KiB
CSS
55 lines
1.5 KiB
CSS
/*
|
|
* Copyright (c) 2015 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.
|
|
*/
|
|
|
|
.tooltip {
|
|
background: hsl(0deg 0% 95%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-radius: 2px;
|
|
color: hsl(0deg 0% 20%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
padding: 5px 8px;
|
|
line-height: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
filter: drop-shadow(0 1px 2px hsl(0deg 0% 0% / 30%));
|
|
border: 1px solid hsl(0deg 0% 0% / 10%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
background-clip: padding-box;
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
visibility: hidden;
|
|
transition: visibility 0s 100ms, opacity 150ms cubic-bezier(0, 0, 0.2, 1);
|
|
z-index: 20001;
|
|
top: 0;
|
|
left: 0;
|
|
opacity: 0%;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tooltip-breakword {
|
|
word-break: break-word;
|
|
}
|
|
|
|
.tooltip.shown {
|
|
visibility: visible;
|
|
transition-delay: 600ms;
|
|
opacity: 100%;
|
|
}
|
|
|
|
.tooltip.shown.instant {
|
|
transition-delay: 0s;
|
|
}
|
|
|
|
.tooltip-shortcut {
|
|
color: hsl(0deg 0% 45%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
display: inline-block;
|
|
margin-left: 8px;
|
|
flex: 0 0 auto;
|
|
}
|