mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
The component is wrapping the `Frames` component from the debugger in order to have access to frames grouping. It also handles sourcemaps, since the debugger component does not by itself. Tests are added to ensure the component behaves as expected. Depends on D11602 Differential Revision: https://phabricator.services.mozilla.com/D11603
103 lines
2.1 KiB
CSS
103 lines
2.1 KiB
CSS
/* 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 ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline-grid;
|
|
grid-template-columns: auto auto 1fr;
|
|
grid-column-gap: 8px;
|
|
}
|
|
|
|
.frames .frame {
|
|
display: contents;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.frames .title {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
grid-column: 1 / 2;
|
|
color: var(--console-output-color);
|
|
}
|
|
|
|
.frames .location {
|
|
color: var(--frame-link-source);
|
|
grid-column: -1 / -2;
|
|
}
|
|
|
|
.frames .location .line {
|
|
color: var(--frame-link-line-color);
|
|
}
|
|
|
|
.frames ul .frame:hover .location {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/******* Group styles *******/
|
|
.frames .frames-group,
|
|
.frames .frames-group .group {
|
|
display: contents;
|
|
}
|
|
|
|
.frames-group .frames-list .frame {
|
|
padding-inline-start: 16px;
|
|
display: block;
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.frames-list {
|
|
grid-column: 1 / -1;
|
|
margin-block-start: 2px;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.frames ul .frames-group.expanded,
|
|
.frames ul .frames-group.expanded .location {
|
|
color: var(--theme-highlight-blue);
|
|
}
|
|
|
|
.frames ul .frames-group.expanded .react path {
|
|
fill: var(--theme-highlight-blue);
|
|
}
|
|
|
|
.frames ul .frames-group.expanded .badge {
|
|
color: var(--theme-highlight-blue);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.annotation-logo {
|
|
display: inline-block;
|
|
width: 12px;
|
|
margin-inline-start: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
:root.theme-dark .annotation-logo svg path {
|
|
fill: var(--theme-highlight-blue);
|
|
}
|