summaryrefslogtreecommitdiffstats
path: root/devtools/client/themes/components-frame.css
blob: f647f68a7f1d79f2bdfeb6e451b2fb656ea18bfa (plain)
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
/* 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/. */

/**
 * Frame Component
 * Styles for React component at `devtools/client/shared/components/Frame.js`
 */

.theme-light {
  --frame-link-line-color: var(--theme-link-color);
  --frame-link-source: var(--theme-highlight-purple);
}

.theme-dark {
  --frame-link-line-color: hsl(210, 40%, 60%);
  --frame-link-source: var(--blue-40);
}

.stack-trace {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
}

.stack-trace .frame-link-async-cause {
  grid-column: 1 / -1;
}

.stack-trace .frame-link {
  display: contents;
}

.frame-link-async-cause {
  color: var(--theme-comment);
}

.frame-link .frame-link-source {
  color: var(--frame-link-source);
}

.frame-link a.frame-link-source {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  font-style: normal;
}

.frame-link .frame-link-host {
  margin-inline-start: 5px;
  font-size: 90%;
  color: var(--theme-comment);
}

.frame-link .frame-link-function-display-name {
  margin-inline-end: 5px;
  color: var(--console-output-color, currentColor);
}

.frame-link .frame-link-line {
  color: var(--frame-link-line-color);
}

.focused .frame-link .frame-link-source,
.focused .frame-link .frame-link-line,
.focused .frame-link .frame-link-host {
  color: var(--theme-selection-color);
}