mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 17:57:36 +08:00
This patch drops unnecessary -webkit- prefixes in CSS and enables a lint check to enforce that prevent such properties from being added in the future. Note that the use of vendor-prefixed CSS properties is still accepted in cases where there is no standardized and browser-supported alternative. TBR=changhaohan@chromium.org No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: chromium:1104187 Change-Id: Ibf36fe5a3802b5f3ac663b7ac873a4758e0fda14 Fixed: chromium:1031475 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297386 Reviewed-by: Changhao Han <changhaohan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297393 Commit-Queue: Mathias Bynens <mathias@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org>
151 lines
2.7 KiB
CSS
151 lines
2.7 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;
|
|
border-top: 1px solid #ccc;
|
|
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);
|
|
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: white;
|
|
}
|
|
|
|
.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);
|
|
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);
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
.toolbar-search-navigation.toolbar-search-navigation-next {
|
|
background-image: url(Images/searchNext.png);
|
|
border-left: 1px solid rgb(230 230 230);
|
|
}
|
|
|
|
.toolbar-search-navigation.toolbar-search-navigation-next.enabled:active {
|
|
background-image: url(Images/searchNext.png), #f2f2f2;
|
|
}
|
|
|
|
.search-results-matches {
|
|
display: inline-block;
|
|
text-align: right;
|
|
padding: 0 4px;
|
|
color: rgb(165 165 165);
|
|
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;
|
|
}
|