net-info-body.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. /******************************************************************************/
  5. /* Network Info Body */
  6. .netInfoBody {
  7. margin: 10px 0 0 0;
  8. width: 100%;
  9. cursor: default;
  10. display: block;
  11. }
  12. .netInfoBody *:focus {
  13. outline: 0 !important;
  14. }
  15. .netInfoBody .panelContent {
  16. word-break: break-all;
  17. }
  18. /******************************************************************************/
  19. /* Network Info Body Tabs */
  20. .netInfoBody > .tabs {
  21. background-color: transparent;
  22. background-image: none;
  23. height: 100%;
  24. }
  25. .netInfoBody > .tabs .tabs-navigation {
  26. border-bottom-color: var(--net-border);
  27. background-color: transparent;
  28. text-decoration: none;
  29. padding-top: 3px;
  30. padding-left: 7px;
  31. padding-bottom: 1px;
  32. border-bottom: 1px solid var(--net-border);
  33. }
  34. .netInfoBody > .tabs .tabs-menu {
  35. display: table;
  36. list-style: none;
  37. padding: 0;
  38. margin: 0;
  39. }
  40. /* This is the trick that makes the tab bottom border invisible */
  41. .netInfoBody > .tabs .tabs-menu-item {
  42. position: relative;
  43. bottom: -2px;
  44. float: left;
  45. }
  46. .netInfoBody > .tabs .tabs-menu-item a {
  47. display: block;
  48. border: 1px solid transparent;
  49. text-decoration: none;
  50. padding: 5px 8px 4px 8px;;
  51. font-weight: bold;
  52. color: var(--theme-body-color);
  53. border-radius: 4px 4px 0 0;
  54. }
  55. .netInfoBody > .tabs .tab-panel {
  56. background-color: var(--theme-body-background);
  57. border: 1px solid transparent;
  58. border-top: none;
  59. padding: 10px;
  60. overflow: auto;
  61. height: calc(100% - 31px); /* minus the height of the tab bar */
  62. }
  63. .netInfoBody > .tabs .tab-panel > div,
  64. .netInfoBody > .tabs .tab-panel > div > div {
  65. height: 100%;
  66. }
  67. .netInfoBody > .tabs .tabs-menu-item.is-active a,
  68. .netInfoBody > .tabs .tabs-menu-item.is-active a:focus,
  69. .netInfoBody > .tabs .tabs-menu-item.is-active:hover a {
  70. background-color: var(--theme-body-background);
  71. border: 1px solid transparent;
  72. border-bottom-color: var(--theme-highlight-bluegrey);
  73. color: var(--theme-highlight-bluegrey);
  74. }
  75. .netInfoBody > .tabs .tabs-menu-item:hover a {
  76. border: 1px solid transparent;
  77. border-bottom: 1px solid var(--net-border);
  78. background-color: var(--theme-body-background);
  79. }
  80. /******************************************************************************/
  81. /* Themes */
  82. .theme-firebug .netInfoBody > .tabs .tab-panel {
  83. border-color: var(--net-border);
  84. }
  85. .theme-firebug .netInfoBody > .tabs .tabs-menu-item.is-active a,
  86. .theme-firebug .netInfoBody > .tabs .tabs-menu-item.is-active:hover a,
  87. .theme-firebug .netInfoBody > .tabs .tabs-menu-item.is-active a:focus {
  88. border: 1px solid var(--net-border);
  89. border-bottom-color: transparent;
  90. }
  91. .theme-firebug .netInfoBody > .tabs .tabs-menu-item:hover a {
  92. border-bottom-color: transparent;
  93. }