summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/src/components/shared/ResultList.css
blob: 037c3497d357b6a4eb7541edc7fefb53c7eb4e5e (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
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
/* 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/>. */

.result-list {
  list-style: none;
  margin: 0px;
  padding: 0px;
  overflow: auto;
  width: 100%;
  background: var(--theme-body-background);
}

.result-list * {
  user-select: none;
}

.result-list li {
  color: var(--theme-body-color);
  padding: 4px 8px;
  display: flex;
}

.result-list.big li {
  flex-direction: row;
  align-items: center;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 16px;
}

.result-list.small li {
  justify-content: space-between;
}

.result-list li:hover {
  background: var(--theme-tab-toolbar-background);
}

.theme-dark .result-list li:hover {
  background: var(--grey-70);
}

.result-list li.selected {
  background: var(--theme-accordion-header-background);
}

.result-list.small li.selected {
  background-color: var(--theme-selection-background);
  color: white;
}

.result-list li .result-item-icon {
  background-color: var(--theme-icon-dimmed-color);
}

.result-list li .icon {
  align-self: center;
  margin-inline-end: 14px;
  margin-inline-start: 4px;
}

.result-list .result-item-icon {
  display: block;
}

.result-list .selected .result-item-icon {
  background-color: var(--theme-selection-color);
}

.result-list li .title {
  word-break: break-all;
  text-overflow: ellipsis;
  white-space: nowrap;

  /** https://searchfox.org/mozilla-central/source/devtools/client/themes/variables.css **/
  color: var(--grey-90);
}

.theme-dark .result-list li .title {
  /** https://searchfox.org/mozilla-central/source/devtools/client/themes/variables.css **/
  color: var(--grey-30);
}

.result-list li.selected .title {
  color: white;
}

.result-list.big li.selected {
  background-color: var(--theme-selection-background);
  color: white;
}

.result-list.big li.selected .subtitle {
  color: white;
}

.result-list.big li.selected .subtitle .highlight {
  color: white;
  font-weight: bold;
}

.result-list.big li .subtitle {
  word-break: break-all;
  /** https://searchfox.org/mozilla-central/source/devtools/client/themes/variables.css **/
  color: var(--grey-40);
  margin-left: 15px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.theme-dark .result-list.big li.selected .subtitle {
  color: white;
}

.theme-dark .result-list.big li .subtitle {
  color: var(--theme-text-color-inactive);
}

.search-bar .result-list li.selected .subtitle {
  color: white;
}

.search-bar .result-list {
  border-bottom: 1px solid var(--theme-splitter-color);
}

.theme-dark .result-list {
  background-color: var(--theme-body-background);
}