mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 13:18:29 +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>
136 lines
3.8 KiB
CSS
136 lines
3.8 KiB
CSS
/*
|
|
* Copyright 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.
|
|
*/
|
|
/* Media query bars */
|
|
|
|
.media-inspector-view {
|
|
height: 50px;
|
|
}
|
|
|
|
.media-inspector-marker-container {
|
|
height: 14px;
|
|
margin: 2px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.media-inspector-bar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.media-inspector-marker {
|
|
flex: none;
|
|
pointer-events: auto;
|
|
margin: 1px 0;
|
|
white-space: nowrap;
|
|
z-index: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.media-inspector-marker-spacer {
|
|
flex: auto;
|
|
}
|
|
|
|
.media-inspector-marker:hover {
|
|
margin: -1px 0;
|
|
opacity: 100%;
|
|
}
|
|
|
|
.media-inspector-marker-max-width {
|
|
background-color: hsl(207deg 90% 77%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-right: 2px solid hsl(207deg 90% 61%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-left: 2px solid hsl(207deg 90% 61%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.media-inspector-marker-inactive .media-inspector-marker-max-width:not(:hover) {
|
|
background-color: hsl(199deg 94% 94%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.media-inspector-marker-min-max-width {
|
|
background-color: hsl(88deg 50% 76%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-left: 2px solid #689f38; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-right: 2px solid hsl(92deg 48% 42%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.media-inspector-marker-min-max-width:hover {
|
|
z-index: 1;
|
|
}
|
|
|
|
.media-inspector-marker-inactive .media-inspector-marker-min-max-width:not(:hover) {
|
|
background-color: hsl(125deg 39% 94%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.media-inspector-marker-min-width {
|
|
background-color: hsl(36deg 100% 75%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
flex: auto;
|
|
}
|
|
|
|
.media-inspector-marker-inactive .media-inspector-marker-min-width:not(:hover) {
|
|
background-color: hsl(37deg 100% 94%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.media-inspector-marker-min-width-right {
|
|
border-left: 2px solid hsl(30deg 100% 48%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.media-inspector-marker-min-width-left {
|
|
border-right: 2px solid hsl(30deg 100% 48%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
/* Media query labels */
|
|
|
|
.media-inspector-marker-label-container {
|
|
position: absolute;
|
|
z-index: 1;
|
|
}
|
|
|
|
.media-inspector-marker:not(:hover) .media-inspector-marker-label-container {
|
|
display: none;
|
|
}
|
|
|
|
.media-inspector-marker-label-container-left {
|
|
left: -2px;
|
|
}
|
|
|
|
.media-inspector-marker-label-container-right {
|
|
right: -2px;
|
|
}
|
|
|
|
.media-inspector-marker-label {
|
|
color: #222; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
position: absolute;
|
|
top: 1px;
|
|
bottom: 0;
|
|
font-size: 12px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.media-inspector-label-right {
|
|
right: 4px;
|
|
}
|
|
|
|
.media-inspector-label-left {
|
|
left: 4px;
|
|
}
|