/* 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");
}
