mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-11-03 11:49:12 +08:00
Add an aggregated number of issues next to the warning sign for each issue title. Screenshot: https://imgur.com/a/Hp7axbV Bug: chromium:1057979 Change-Id: Ic7fb3654c8f36da26429bdbbacd9388f11a3a387 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2193951 Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org>
293 lines
5.3 KiB
CSS
293 lines
5.3 KiB
CSS
/*
|
|
* Copyright (c) 2020 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.
|
|
*/
|
|
|
|
/* Remove container padding from TreeOutline.
|
|
* Allows issues to touch the edges of the container. */
|
|
:host,
|
|
.issues {
|
|
padding: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.issues {
|
|
--breaking-change-color: #F29900;
|
|
--issue-gray: #5F6368;
|
|
--issue-link: #1967D2;
|
|
--issue-black: #202124;
|
|
--issue-code: #F0F0F0;
|
|
--affected-resource-background: #F8F9FA;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .issues {
|
|
--issue-gray: #FFFFFFDE;
|
|
--issue-link: #8AB4F8;
|
|
--issue-black: #FFFFFF;
|
|
--issue-code: #0F0F0F;
|
|
--affected-resource-background: #FFFFFF12;
|
|
}
|
|
|
|
/* Override whitespace behavior for tree items to allow wrapping */
|
|
.issues li {
|
|
white-space: normal;
|
|
}
|
|
|
|
/* Hide toggle for tree items which cannot be collapsed */
|
|
.issues .always-parent::before {
|
|
display: none;
|
|
}
|
|
|
|
/* Override TreeOutline toggle switching to allow animation */
|
|
.issues li.parent::before {
|
|
transition: transform 200ms;
|
|
transform-origin: 25% 50%;
|
|
}
|
|
.issues li.parent.expanded::before {
|
|
-webkit-mask-position: 0 0;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.issue {
|
|
padding: 0 8px;
|
|
overflow: hidden;
|
|
flex: none;
|
|
transition: background-color 200ms;
|
|
background: #F3F3F3;
|
|
border: 1px solid #E5E5E5;
|
|
border-width: 0 0 1px;
|
|
}
|
|
|
|
.issue.expanded {
|
|
background: #FFFFFF;
|
|
border-width: 0;
|
|
}
|
|
|
|
p {
|
|
margin-block-start: 2px;
|
|
margin-block-end: 2px;
|
|
}
|
|
|
|
/* Override selected tree item styles for issues to avoid changing width. */
|
|
.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) .tree-outline.hide-selection-when-blurred .issue.selected:focus[data-keyboard-focus="true"] {
|
|
width: auto;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: 6px 0;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.title {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
color: var(--issue-black);
|
|
font-weight: normal;
|
|
user-select: text;
|
|
}
|
|
|
|
.issue.expanded .title {
|
|
font-weight: 450;
|
|
}
|
|
|
|
.body.children {
|
|
border-bottom: 1px solid #E5E5E5;
|
|
padding: 6px 0;
|
|
position: relative;
|
|
padding-left: 51px;
|
|
padding-bottom: 26px;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
/* Show a colored border on the left side of opened issues. */
|
|
.body::before {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
left: 31px;
|
|
top: 0;
|
|
bottom: 20px;
|
|
border-left: 2px solid var(--breaking-change-color);
|
|
width: 2px;
|
|
}
|
|
|
|
.message {
|
|
line-height: 20px;
|
|
font-size: 14px;
|
|
color: var(--issue-gray);
|
|
margin-bottom: 4px;
|
|
user-select: text;
|
|
}
|
|
|
|
.message p {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.message li {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.message code {
|
|
color: var(--issue-black);
|
|
font-size: 12px;
|
|
user-select: text;
|
|
cursor: text;
|
|
background: var(--issue-code);
|
|
}
|
|
|
|
.separator::before {
|
|
content: '·';
|
|
padding-left: 1ex;
|
|
padding-right: 1ex;
|
|
}
|
|
|
|
.link {
|
|
font-size: 14px;
|
|
color: var(--issue-link);
|
|
}
|
|
|
|
.link-wrapper {
|
|
margin-top: 15px;
|
|
user-select: text;
|
|
}
|
|
|
|
.affected-resources-label,
|
|
.resolutions-label {
|
|
margin-top: 5px;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--issue-black);
|
|
display: inline-block;
|
|
}
|
|
|
|
.link-list {
|
|
list-style-type: none;
|
|
list-style-position: inside;
|
|
padding-inline-start: 0px;
|
|
}
|
|
|
|
.resolutions-list {
|
|
list-style-type: none;
|
|
list-style-position: inside;
|
|
padding-inline-start: 0px;
|
|
}
|
|
|
|
/* We inherit all the styles from treeoutline, but these are simple text <li>, so we override some styles */
|
|
.link-list li::before {
|
|
content: none;
|
|
-webkit-mask-image: none;
|
|
}
|
|
|
|
.resolutions-list li::before {
|
|
content: "→";
|
|
-webkit-mask-image: none;
|
|
padding-right: 5px;
|
|
position: relative;
|
|
top: -1px;
|
|
}
|
|
|
|
.link-list li {
|
|
display: list-item;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.resolutions-list li {
|
|
display: list-item;
|
|
}
|
|
|
|
.affected-resources-label + .affected-resources {
|
|
padding: 3px 0 0 0;
|
|
position: relative;
|
|
user-select: text;
|
|
}
|
|
|
|
.affected-resource-label {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: var(--issue-black);
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.affected-resource-cookie {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
border: 0;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.affected-resource-element {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: var(--issue-link);
|
|
border: 0;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.affected-resource-mixed-content {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
border: 0;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.affected-resource-request {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
border: 0;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.affected-resource-list {
|
|
border-spacing: 10px 0;
|
|
margin-left: -10px;
|
|
}
|
|
|
|
.affected-resource-header {
|
|
font-size: 12px;
|
|
color: rgba(95, 99, 104, 0.5);
|
|
padding-left: 2px;
|
|
}
|
|
|
|
.affected-resource-cookie-info {
|
|
color: var(--issue-gray);
|
|
padding: 2px;
|
|
text-align: right;
|
|
}
|
|
|
|
.affected-resource-cookie-info-header {
|
|
text-align: right;
|
|
}
|
|
|
|
.affected-resource-mixed-content-info {
|
|
color: var(--issue-gray);
|
|
padding: 2px;
|
|
}
|
|
|
|
.affected-resources > .parent {
|
|
margin-top: 0px;
|
|
padding: 2px 5px 0px 5px;
|
|
}
|
|
|
|
.affected-resources > .parent.expanded {
|
|
background: var(--affected-resource-background);
|
|
}
|
|
|
|
.affected-resources > .children.expanded {
|
|
background: var(--affected-resource-background);
|
|
padding: 6px 0 9px 5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.aggregated-issues-count {
|
|
padding-right: 7px;
|
|
}
|