mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
This reverts commit 2d8ad76070a840ce3821f3d28e55cd952f7640c0. Reason for revert: Grouping would break alphabetical sort, which is controversial. Original change's description: > DevTools: prepare Computed sidebar for groups > > Computed sidebar > - Removes even/odd striping > - Extracts a function to build a property's TreeElement > > Bug: 929536 > Change-Id: I727cf1efa5ac65277a046b52575f35102323c38f > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548446 > Reviewed-by: Joey Arhar <jarhar@chromium.org> > Commit-Queue: Erik Luo <luoe@chromium.org> > Cr-Commit-Position: refs/heads/master@{#648029} TBR=luoe@chromium.org,jarhar@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 929536 Change-Id: Icec233a91c07b2b864830df6419690911070101a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565380 Reviewed-by: Erik Luo <luoe@chromium.org> Commit-Queue: Erik Luo <luoe@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#650149} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 37893dee61d4f8d4a23c0d23bd36dbd4ef6d893c
132 lines
2.3 KiB
CSS
132 lines
2.3 KiB
CSS
/*
|
|
* Copyright (c) 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.
|
|
*/
|
|
|
|
.computed-style-property {
|
|
overflow: hidden;
|
|
flex: auto;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.computed-style-property .property-name {
|
|
width: 16em;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
max-width: 52%;
|
|
display: inline-block;
|
|
vertical-align: text-top;
|
|
}
|
|
|
|
.computed-style-property .property-value {
|
|
margin-left: 2em;
|
|
position: relative;
|
|
}
|
|
|
|
.computed-style-property .property-value-text {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tree-outline li:hover .goto-source-icon {
|
|
display: block;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
.goto-source-icon {
|
|
background-color: #5a5a5a;
|
|
display: none;
|
|
position: absolute;
|
|
left: -16px;
|
|
top: 0;
|
|
}
|
|
|
|
.goto-source-icon:hover {
|
|
background-color: #333;
|
|
}
|
|
|
|
.computed-style-property-inherited {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.trace-link {
|
|
user-select: none;
|
|
float: right;
|
|
padding-left: 1em;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.property-trace {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.property-trace-selector {
|
|
color: gray;
|
|
padding-left: 2em;
|
|
}
|
|
|
|
.property-trace-value {
|
|
position: relative;
|
|
display: inline-block;
|
|
margin-left: 16px;
|
|
}
|
|
|
|
.property-trace-inactive .property-trace-value::before {
|
|
position: absolute;
|
|
content: ".";
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.35);
|
|
top: 0;
|
|
bottom: 5px;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.tree-outline li.odd-row {
|
|
position: relative;
|
|
background-color: #F5F5F5;
|
|
}
|
|
|
|
.tree-outline, .tree-outline ol {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.tree-outline li:hover {
|
|
background-color: rgb(235, 242, 252);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tree-outline li::before {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.delimeter {
|
|
color: transparent;
|
|
}
|
|
|
|
.delimeter::selection {
|
|
color: transparent;
|
|
}
|
|
|
|
.computed-narrow .computed-style-property .property-name,
|
|
.computed-narrow .computed-style-property .property-value {
|
|
display: inline-block;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin-left: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.computed-narrow .computed-style-property {
|
|
padding: 2px 0;
|
|
display: block;
|
|
white-space: normal;
|
|
}
|
|
|
|
.computed-narrow.tree-outline li::before {
|
|
margin-top: -14px;
|
|
}
|