Files
react-native-devtools-frontend/front_end/elements/classesPaneWidget.css
T
Jack Franklin 49a9481a74 Lint color usage in background and border-* properties.
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>
2021-02-05 15:39:39 +00:00

40 lines
1.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.
*/
.styles-element-classes-pane {
background-color: var(--toolbar-bg-color);
border-bottom: 1px solid rgb(189 189 189); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
padding: 6px 2px 2px;
}
.styles-element-classes-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.styles-element-classes-pane [is=dt-checkbox] {
margin-right: 15px;
}
.styles-element-classes-pane .title-container {
padding-bottom: 2px;
}
.styles-element-classes-pane .new-class-input {
padding-left: 3px;
padding-right: 3px;
overflow: hidden;
border: 1px solid #ddd; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
line-height: 15px;
margin-left: 3px;
width: calc(100% - 7px);
background-color: var(--color-background);
cursor: text;
}