File: TreeView.css

package info (click to toggle)
firefox 144.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,637,504 kB
  • sloc: cpp: 7,576,692; javascript: 6,430,831; ansic: 3,748,119; python: 1,398,978; xml: 628,810; asm: 438,679; java: 186,194; sh: 63,212; makefile: 19,159; objc: 13,086; perl: 12,986; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 53; csh: 10
file content (189 lines) | stat: -rw-r--r-- 4,988 bytes parent folder | download | duplicates (4)
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* 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/. */

@import url("chrome://devtools/content/shared/components/reps/reps.css");

/******************************************************************************/
/* TreeView Colors */

:root {
  --tree-header-background: #c8d2dc;
  --tree-header-sorted-background: #aac3dc;
}

/******************************************************************************/
/* TreeView Table*/

.treeTable {
  color: var(--theme-highlight-blue);
}

.treeTable .treeLabelCell,
.treeTable .treeValueCell {
  padding: 2px 0;
  padding-inline-start: 4px;
  line-height: 16px; /* make rows 20px tall */
  vertical-align: top;
  overflow: hidden;
}

.treeTable .treeLabelCell {
  white-space: nowrap;
  cursor: default;
  padding-inline-start: var(--tree-label-cell-indent);
}

.treeTable .treeLabelCell::after {
  content: ":";
  color: var(--object-color);
}

.treeTable .treeValueCell.inputEnabled {
  padding-block: 0;
}

.treeTable .treeValueCell.inputEnabled input {
  width: 100%;
  height: 20px;
  margin: 0;
  margin-inline-start: -2px;
  border: solid 1px transparent;
  outline: none;
  box-shadow: none;
  padding: 0 1px;
  color: var(--theme-text-color-strong);
  background: var(--theme-sidebar-background);
}

.treeTable .treeValueCell.inputEnabled input:focus {
  transition: all 150ms ease-in-out;
}

.treeTable .treeValueCell > [aria-labelledby],
.treeTable .treeLabelCell > .treeLabel {
  unicode-bidi: plaintext;
  text-align: match-parent;
}

/* No padding if there is actually no label */
.treeTable .treeLabel:empty {
  padding-inline-start: 0;
}

.treeTable .treeRow.hasChildren > .treeLabelCell > .treeLabel:hover {
  cursor: pointer;
}

/* :not(.selected) is used because row selection styles should have
   more precedence than row hovering. */
.treeTable .treeRow:not(.selected):hover {
  background-color: var(--theme-selection-background-hover) !important;
}

.treeTable .treeRow.selected {
  background-color: var(--theme-selection-background);
}

.treeTable .treeRow.selected :where(:not(.objectBox-jsonml)),
.treeTable .treeRow.selected .treeLabelCell::after {
  color: var(--theme-selection-color);
  fill: currentColor;
}

/* Invert text selection color in selected rows */
.treeTable .treeRow.selected :not(input, textarea)::selection {
  color: var(--theme-selection-background);
  background-color: var(--theme-selection-color);
}

/* Filtering */
.treeTable .treeRow.hidden {
  display: none !important;
}

.treeTable .treeValueCellDivider {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Learn More link */
.treeTable .treeValueCell .learn-more-link {
  user-select: none;
  color: var(--theme-link-color);
  cursor: pointer;
  margin: 0 5px;
}

.treeTable .treeValueCell .learn-more-link:hover {
  text-decoration: underline;
}

/******************************************************************************/
/* Toggle Icon */

.treeTable .treeRow .treeIcon {
  box-sizing: content-box;
  height: 14px;
  width: 14px;
  padding: 1px;
  /* Set the size of loading spinner (see .devtools-throbber) */
  font-size: 10px;
  line-height: 14px;
  display: inline-block;
  vertical-align: bottom;
  /* Use a total width of 20px (margins + padding + width) */
  margin-inline: 3px 1px;
}

/* All expanded/collapsed styles need to apply on immediate children
   since there might be nested trees within a tree. */
.treeTable .treeRow.hasChildren > .treeLabelCell > .treeIcon {
  cursor: pointer;
  background-repeat: no-repeat;
}

/******************************************************************************/
/* Header */

.treeTable .treeHeaderRow {
  height: 18px;
}

.treeTable .treeHeaderCell {
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0 !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.05)),
    radial-gradient(1px 60% at right, rgba(0, 0, 0, 0.8) 0%, transparent 80%) repeat-x var(--tree-header-background);
  color: var(--theme-body-color);
  white-space: nowrap;
}

.treeTable .treeHeaderCellBox {
  padding-block: 2px;
  padding-inline: 10px 14px;
}

.treeTable .treeHeaderRow > .treeHeaderCell:first-child > .treeHeaderCellBox {
  padding: 0;
}

.treeTable .treeHeaderSorted {
  background-color: var(--tree-header-sorted-background);
}

.treeTable .treeHeaderSorted > .treeHeaderCellBox {
  background: url(chrome://devtools/skin/images/sort-descending-arrow.svg) no-repeat calc(100% - 4px);
}

.treeTable .treeHeaderSorted.sortedAscending > .treeHeaderCellBox {
  background-image: url(chrome://devtools/skin/images/sort-ascending-arrow.svg);
}

.treeTable .treeHeaderCell:hover:active {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), transparent), radial-gradient(1px 60% at right, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
}