summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/net/components/net-info-group.css
blob: 43800019f056c2a43dc7755632f622447e2ea196 (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
/* 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/. */

/******************************************************************************/
/* Net Info Group */

.netInfoBody .netInfoGroup {
  padding-bottom: 6px;
}

/* Last group doesn't need bottom padding */
.netInfoBody .netInfoGroup:last-child {
  padding-bottom: 0;
}

.netInfoBody .netInfoGroup:last-child .netInfoGroupContent {
  padding-bottom: 0;
}

.netInfoBody .netInfoGroupTitle {
  cursor: pointer;
  font-weight: bold;
  -moz-user-select: none;
  cursor: pointer;
  padding-left: 3px;
}

.netInfoBody .netInfoGroupTwisty {
  background-image: url("chrome://devtools/skin/images/controls.png");
  background-size: 56px 28px;
  background-position: 0 -14px;
  background-repeat: no-repeat;
  width: 14px;
  height: 14px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.netInfoBody .netInfoGroup.opened .netInfoGroupTwisty {
  background-position: -14px -14px;
}

/* Group content is expandable/collapsible by clicking on the title */
.netInfoBody .netInfoGroupContent {
  padding-top: 7px;
  margin-top: 3px;
  padding-bottom: 14px;
  border-top: 1px solid var(--net-border);
  display: none;
}

/* Toggle group visibility */
.netInfoBody .netInfoGroup.opened .netInfoGroupContent {
  display: block;
}

/******************************************************************************/
/* Themes */

.theme-dark .netInfoBody .netInfoGroup {
  color: var(--theme-body-color);
}

.theme-dark .netInfoBody .netInfoGroup .netInfoGroupTwisty {
  filter: invert(1);
}

/* Twisties */
.theme-firebug .netInfoBody .netInfoGroup .netInfoGroupTwisty {
  background-image: url("chrome://devtools/skin/images/firebug/twisty-closed-firebug.svg");
  background-position: 0 2px;
  background-size: 11px 11px;
  width: 15px;
}

.theme-firebug .netInfoBody .netInfoGroup.opened .netInfoGroupTwisty {
  background-image: url("chrome://devtools/skin/images/firebug/twisty-open-firebug.svg");
}