File: Tree.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 (89 lines) | stat: -rw-r--r-- 2,238 bytes parent folder | download | duplicates (13)
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
/* 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/. */

/* We can remove the outline since we do add our own focus style on nodes */
.tree:focus {
  outline: none;
}

.tree.inline {
  display: inline-block;
}

.tree.nowrap {
  white-space: nowrap;
}

.tree.noselect {
  user-select: none;
}

.tree .tree-node {
  display: flex;
}

.tree-indent {
  display: inline-block;
  width: 12px;
  margin-inline-start: 3px;
  border-inline-start: 1px solid #a2d1ff;
  flex-shrink: 0;
  height: 0;
}

.tree-node[data-expandable="false"] .tree-last-indent {
  /* The 13px value is taken from the total width and margins of the arrow
  element of expandables nodes (10px width + 3px margins). That way the
  node's text are indented the same for both expandable and non-expandable
  nodes */
  margin-inline-end: 13px;
}

.tree .tree-node[data-expandable="true"] {
  cursor: default;
}

/* add a grey background when hovering any line of the tree */
.tree .tree-node:not(.focused):hover {
  background-color: var(--theme-toolbar-background-hover);
}

/* In the webconsole object inspector, it is styled as a button */
.tree .theme-twisty {
  background-color: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

/* avoid distinct background when hovering the arrow*/
.tree .theme-twisty:hover {
  background-color: var(--theme-toolbar-background-hover);
}

.tree .tree-node.focused {
  color: var(--theme-selection-color);
  background-color: var(--theme-selection-background);

  /* Make folder/file icons white on dark focused background */
  .img {
    background-color: var(--theme-selection-color);
    fill: var(--theme-selection-color);
  }
  /* also toggle the color of the expand arrows */
  .theme-twisty {
    fill: var(--theme-selection-color);

    /* avoid distinct background when hovering the arrow */
    &:hover {
      background-color: var(--theme-selection-background);
    }
  }

  /* Invert text selection color in selected rows */
  ::selection {
    color: var(--theme-selection-background);
    background-color: var(--theme-selection-color);
  }
}