1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* SmartTrace Component
* Styles for React component at `devtools/client/shared/components/SmartTrace.js`
*/
.frames-group .frame {
display: block;
padding-inline-start: 16px;
}
.img.annotation-logo {
background-color: var(--theme-body-color);
}
.frames .top-frames-list[role="listbox"] {
display: inline-grid;
grid-template-columns: auto 1fr;
grid-column-gap: 8px;
outline-offset: -2px;
}
.frames .frame {
/* Parent is a grid container whose grid template we want to use, so span the whole line */
grid-column: 1 / -1;
display: grid;
/* Grid is defined in `.frames [role="list"]` rule */
grid-template-columns: subgrid;
cursor: pointer;
white-space: normal;
outline-offset: -2px;
}
.frames .title {
text-overflow: ellipsis;
white-space: nowrap;
grid-column: 1 / 2;
color: var(--console-output-color);
}
.frames .location {
color: var(--theme-internal-link-color);
grid-column: -1 / -2;
/* Force the location to be on one line and crop at start */
text-overflow: ellipsis;
white-space: nowrap;
direction: rtl;
text-align: end;
}
.frames .location .line {
color: var(--frame-link-line-color);
}
.frames .frames-list .frame:hover .location {
text-decoration: underline;
}
.frames .location-async-cause {
grid-column: 1 / -1;
color: var(--theme-comment);
}
/******* Group styles *******/
.frames-group {
grid-column: 1 / -1;
}
.frames .frames-group {
display: flex;
}
.group-description {
display: flex;
align-items: center;
color: var(--console-output-color);
}
.frames .frames-list {
margin-block-start: 2px;
/*
* We want to display each frame name on its own row, without having new lines in the
* clipboard when copying it. This does the trick.
*/
display: grid;
grid-template-columns: 1fr;
}
.frames .frames-list .frame {
padding-inline-start: 0;
text-overflow: ellipsis;
}
.frames-list .title {
grid-column: -1 / 1;
padding-inline-start: 16px;
}
.frames .frames-list .frame:first-of-type {
border-top: 1px solid var(--theme-splitter-color);
padding-block-start: 4px;
}
.frames .frames-list .frame:last-of-type {
margin-block-end: 4px;
border-bottom: 1px solid var(--theme-splitter-color);
}
.badge {
background: var(--theme-toolbar-background-hover);
color: var(--theme-body-color);
border-radius: 8px;
padding: 1px 4px;
font-size: 0.9em;
display: inline-block;
text-align: center;
cursor: default;
margin-inline-start: 4px;
}
.frames .frames-group.expanded .group-description,
.frames .frames-group.expanded .badge {
color: var(--theme-highlight-blue);
}
/** Images **/
.frames .img.annotation-logo {
/* FIXME: In order to display the Framework icons, we need to find a way to share CSS
* from the debugger, where the background images are defined.
* See https://github.com/firefox-devtools/debugger.html/issues/7782.
*/
display: none;
/*
background-color:var(--theme-body-color);
display: inline-block;
width: 12px;
height:12px;
vertical-align: middle;
margin-inline-end:4px;
*/
}
.expanded .img.annotation-logo {
background-color: currentColor;
}
.frames-group .img.arrow {
mask: url("chrome://devtools/content/debugger/images/arrow.svg");
margin-inline-end: 4px;
background-color: var(--theme-icon-dimmed-color);
width: 10px;
height: 10px;
mask-size: 100%;
display: inline-block;
transform: rotate(-90deg);
transition: transform 0.18s ease;
}
.frames-group .img.arrow.expanded {
transform: rotate(0);
}
/* Frameworks */
:root.theme-dark .annotation-logo:not(.angular) {
background-color: var(--theme-highlight-blue);
}
|