mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-30 09:54:02 +08:00
DevTools UI should behave like browser UI. Therefore interactive UI elements should not need to change the mouse cursor to a hand with pointing finger. In particular, this CL removes `cursor: pointer` for - toolbar icons - buttons - panel tabs (vertical and horizontal) - issues hint icon - computed styles - Trust token delete button - adorners - data grid header for sorting - code folding marker in CodeMirror - animation previews - DOM tree guttor '...' menu - elements bread crumbs overflow buttons - color blocks in CSS Overview - device preset bars - devices list items - network request header and payload views - Media panel - delete buttons for watch expression and event listeners Bug: 1291516 Change-Id: I182c43a43b94de31d1d8f2db4cd7831e82c535bb Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3447411 Reviewed-by: Changhao Han <changhaohan@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org>
83 lines
1.9 KiB
CSS
83 lines
1.9 KiB
CSS
/*
|
|
* Copyright 2018 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.
|
|
*/
|
|
|
|
.close-button {
|
|
position: absolute;
|
|
top: 7px;
|
|
left: 5px;
|
|
}
|
|
|
|
.console-pins {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
background: var(--color-background-elevation-1);
|
|
|
|
--override-error-background-color: rgb(255 240 240);
|
|
--override-error-border-color: rgb(225 214 214);
|
|
--override-error-text-color: rgb(255 0 0);
|
|
}
|
|
|
|
.console-pins:not(:empty) {
|
|
border-bottom: 1px solid var(--color-details-hairline);
|
|
}
|
|
|
|
.-theme-with-dark-background .console-pins,
|
|
:host-context(.-theme-with-dark-background) .console-pins {
|
|
--override-error-background-color: rgb(41 0 0);
|
|
--override-error-border-color: rgb(92 0 0);
|
|
--override-error-text-color: rgb(255 128 128);
|
|
}
|
|
|
|
.console-pin {
|
|
position: relative;
|
|
user-select: text;
|
|
flex: none;
|
|
padding: 2px 0 6px 24px;
|
|
}
|
|
|
|
.console-pin:not(:last-child) {
|
|
border-bottom: 1px solid var(--color-background-elevation-2);
|
|
}
|
|
|
|
.console-pin.error-level:not(:focus-within) {
|
|
background-color: var(--override-error-background-color);
|
|
color: var(--override-error-text-color);
|
|
}
|
|
|
|
.console-pin:not(:last-child).error-level:not(:focus-within) {
|
|
border-top: 1px solid var(--override-error-border-color);
|
|
border-bottom: 1px solid var(--override-error-border-color);
|
|
margin-top: -1px;
|
|
}
|
|
|
|
.console-pin-name {
|
|
margin-left: -4px;
|
|
margin-bottom: 1px;
|
|
height: auto;
|
|
}
|
|
|
|
.console-pin-name,
|
|
.console-pin-preview {
|
|
width: 100%;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-height: 13px;
|
|
}
|
|
|
|
.console-pin-preview {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.console-pin-name:focus-within {
|
|
background: var(--color-background);
|
|
box-shadow: var(--legacy-focus-ring-active-shadow) inset;
|
|
}
|
|
|
|
.console-pin:focus-within .console-pin-preview,
|
|
.console-pin-name:not(:focus-within):not(:hover) {
|
|
opacity: 60%;
|
|
}
|