mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 21:28:43 +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>
160 lines
3.8 KiB
CSS
160 lines
3.8 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.
|
|
*/
|
|
|
|
.search-bar {
|
|
flex: 0 0 31px;
|
|
background-color: #eee; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-top: 1px solid #ccc; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
display: flex;
|
|
overflow: hidden;
|
|
z-index: 0;
|
|
}
|
|
|
|
.search-bar.replaceable {
|
|
flex: 0 0 57px;
|
|
}
|
|
|
|
.search-replace {
|
|
appearance: none;
|
|
border: 0;
|
|
padding: 0 3px;
|
|
margin: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.search-replace:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.toolbar-search {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.toolbar-search > div {
|
|
margin: 2px 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.toolbar-search-inputs {
|
|
flex-grow: 1;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.toolbar-search-navigation-controls {
|
|
align-self: stretch;
|
|
}
|
|
|
|
.toolbar-search-navigation {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
background-repeat: no-repeat;
|
|
background-position: 4px 7px;
|
|
border-left: 1px solid rgb(170 170 170); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
opacity: 30%;
|
|
}
|
|
|
|
.toolbar-search-navigation.enabled {
|
|
opacity: 100%;
|
|
}
|
|
|
|
.toolbar-search button.search-action-button {
|
|
font-weight: 400;
|
|
height: 22px;
|
|
width: 87px;
|
|
}
|
|
|
|
.toolbar-search-control {
|
|
display: flex;
|
|
position: relative;
|
|
background-color: var(--color-background);
|
|
}
|
|
|
|
.toolbar-search-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.toolbar-replace-control,
|
|
#search-input-field {
|
|
line-height: 17px;
|
|
}
|
|
|
|
.toolbar-search-control,
|
|
.toolbar-replace-control {
|
|
border: 1px solid rgb(163 163 163); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
height: 22px;
|
|
border-radius: 2px;
|
|
width: 100%;
|
|
margin-top: 2px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.toolbar-search-navigation.enabled:active {
|
|
background-position: 4px 7px, 0 0;
|
|
}
|
|
|
|
.toolbar-search-navigation.toolbar-search-navigation-prev {
|
|
background-image: url(Images/searchPrev.png);
|
|
border-left: 1px solid rgb(163 163 163); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .toolbar-search-navigation {
|
|
filter: invert(90%);
|
|
}
|
|
|
|
.toolbar-search-navigation.toolbar-search-navigation-prev.enabled:active {
|
|
background-image: url(Images/searchPrev.png), #f2f2f2; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.toolbar-search-navigation.toolbar-search-navigation-next {
|
|
background-image: url(Images/searchNext.png);
|
|
border-left: 1px solid rgb(230 230 230); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.toolbar-search-navigation.toolbar-search-navigation-next.enabled:active {
|
|
background-image: url(Images/searchNext.png), #f2f2f2; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.search-results-matches {
|
|
display: inline-block;
|
|
text-align: right;
|
|
padding: 0 4px;
|
|
color: rgb(165 165 165); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
align-self: center;
|
|
}
|
|
|
|
.first-row-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.toolbar-search > .replace-toggle-toolbar {
|
|
margin: 2px -2px 0 0;
|
|
}
|
|
|
|
.toolbar-search-options {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
:host-context(#sources-panel-sources-view) .search-bar {
|
|
flex-basis: auto;
|
|
}
|
|
|
|
:host-context(#sources-panel-sources-view) .toolbar-search {
|
|
flex-wrap: wrap;
|
|
}
|