toolbars.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /* vim:set ts=2 sw=2 sts=2 et: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /* CSS Variables specific to the devtools toolbar that aren't defined by the themes */
  6. .theme-light {
  7. --toolbar-tab-hover: rgba(170, 170, 170, .2);
  8. --toolbar-tab-hover-active: rgba(170, 170, 170, .4);
  9. --searchbox-background-color: #ffee99;
  10. --searchbox-border-color: #ffbf00;
  11. --searcbox-no-match-background-color: #ffe5e5;
  12. --searcbox-no-match-border-color: #e52e2e;
  13. --magnifying-glass-image: url(chrome://devtools/skin/images/search.svg);
  14. --filter-image: url(chrome://devtools/skin/images/filter.svg);
  15. --tool-options-image: url(chrome://devtools/skin/images/tool-options.svg);
  16. --icon-filter: none;
  17. --checked-icon-filter: url(chrome://devtools/skin/images/filters.svg#checked-icon-state);
  18. --toolbar-button-border-color: rgba(170, 170, 170, .5);
  19. }
  20. .theme-dark {
  21. --toolbar-tab-hover: hsla(206, 37%, 4%, .2);
  22. --toolbar-tab-hover-active: hsla(206, 37%, 4%, .4);
  23. --searchbox-background-color: #4d4222;
  24. --searchbox-border-color: #d99f2b;
  25. --searcbox-no-match-background-color: #402325;
  26. --searcbox-no-match-border-color: #cc3d3d;
  27. --magnifying-glass-image: url(chrome://devtools/skin/images/search.svg);
  28. --filter-image: url(chrome://devtools/skin/images/filter.svg);
  29. --tool-options-image: url(chrome://devtools/skin/images/tool-options.svg);
  30. --icon-filter: invert(1);
  31. --checked-icon-filter: url(chrome://devtools/skin/images/filters.svg#dark-theme-checked-icon-state);
  32. --toolbar-button-border-color: rgba(0, 0, 0, .4);
  33. }
  34. .theme-firebug {
  35. --magnifying-glass-image: url(chrome://devtools/skin/images/search.svg);
  36. --tool-options-image: url(chrome://devtools/skin/images/firebug/tool-options.svg);
  37. --icon-filter: none;
  38. --checked-icon-filter: none;
  39. --toolbar-button-border-color: rgba(170, 170, 170, .5);
  40. }
  41. /* Toolbars */
  42. .devtools-toolbar,
  43. .devtools-sidebar-tabs tabs {
  44. -moz-appearance: none;
  45. padding: 0;
  46. border-width: 0;
  47. border-bottom-width: 1px;
  48. border-style: solid;
  49. height: 24px;
  50. line-height: 24px;
  51. box-sizing: border-box;
  52. }
  53. .devtools-toolbar {
  54. padding: 0 3px;
  55. }
  56. .devtools-toolbar checkbox {
  57. margin: 0 2px;
  58. padding: 0;
  59. line-height: -moz-block-height;
  60. }
  61. .devtools-toolbar checkbox .checkbox-check {
  62. margin: 0;
  63. padding: 0;
  64. vertical-align: bottom;
  65. }
  66. .devtools-toolbar checkbox .checkbox-label-box {
  67. border: none !important; /* overrides .checkbox-label-box from checkbox.css */
  68. }
  69. .devtools-toolbar checkbox .checkbox-label-box .checkbox-label {
  70. margin: 0 6px !important; /* overrides .checkbox-label from checkbox.css */
  71. padding: 0;
  72. }
  73. .devtools-separator {
  74. margin: 0 2px;
  75. width: 2px;
  76. background-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%);
  77. background-size: 1px 100%;
  78. background-repeat: no-repeat;
  79. background-position: 0, 1px, 2px;
  80. }
  81. /* In-tools sidebar */
  82. .devtools-sidebar-tabs {
  83. -moz-appearance: none;
  84. margin: 0;
  85. height: 100%;
  86. }
  87. .devtools-sidebar-tabs > tabpanels {
  88. -moz-appearance: none;
  89. background: transparent;
  90. padding: 0;
  91. border: 0;
  92. }
  93. .theme-light .devtools-sidebar-tabs > tabpanels {
  94. background: var(--theme-sidebar-background);
  95. color: var(--theme-body-color);
  96. }
  97. .devtools-sidebar-tabs tabs {
  98. position: static;
  99. font: inherit;
  100. margin-bottom: 0;
  101. overflow: hidden;
  102. }
  103. .devtools-sidebar-alltabs {
  104. -moz-appearance: none;
  105. height: 24px;
  106. line-height: 24px;
  107. padding: 0 4px;
  108. margin: 0;
  109. border-width: 0 0 1px 0;
  110. border-inline-start-width: 1px;
  111. border-style: solid;
  112. }
  113. .devtools-sidebar-alltabs .toolbarbutton-icon {
  114. display: none;
  115. }
  116. .devtools-sidebar-tabs tabs > .tabs-right,
  117. .devtools-sidebar-tabs tabs > .tabs-left {
  118. display: none;
  119. }
  120. .devtools-sidebar-tabs tabs > tab {
  121. -moz-appearance: none;
  122. /* We want to match the height of a toolbar with a toolbarbutton
  123. * First, we need to replicated the padding of toolbar (4px),
  124. * then we need to take the border of the buttons into account (1px).
  125. */
  126. padding: 0 3px;
  127. margin: 0;
  128. min-width: 78px;
  129. text-align: center;
  130. background-color: transparent;
  131. color: inherit;
  132. -moz-box-flex: 1;
  133. border-width: 0;
  134. border-inline-start-width: 1px;
  135. border-style: solid;
  136. border-radius: 0;
  137. position: static;
  138. text-shadow: none;
  139. }
  140. .devtools-sidebar-tabs tabs > tab {
  141. border-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%) 1 1;
  142. }
  143. .devtools-sidebar-tabs tabs > tab[selected],
  144. .devtools-sidebar-tabs tabs > tab[selected] + tab {
  145. border-image: linear-gradient(var(--theme-splitter-color), var(--theme-splitter-color)) 1 1;
  146. }
  147. .devtools-sidebar-tabs tabs > tab:first-child {
  148. border-inline-start-width: 0;
  149. }
  150. .devtools-sidebar-tabs tabs > tab:hover {
  151. background: rgba(0, 0, 0, 0.12);
  152. }
  153. .devtools-sidebar-tabs tabs > tab:hover:active {
  154. background: rgba(0, 0, 0, 0.2);
  155. }
  156. .devtools-sidebar-tabs tabs > tab[selected],
  157. .devtools-sidebar-tabs tabs > tab[selected]:hover:active {
  158. color: var(--theme-selection-color);
  159. background: var(--theme-selection-background);
  160. }
  161. /* Invert the colors of certain light theme images for displaying
  162. * inside of the dark theme.
  163. */
  164. .devtools-tab[icon-invertable] > image,
  165. .devtools-toolbarbutton > image,
  166. .devtools-button::before,
  167. .scrollbutton-up > .toolbarbutton-icon,
  168. .scrollbutton-down > .toolbarbutton-icon,
  169. #black-boxed-message-button .button-icon,
  170. #requests-menu-perf-notice-button .button-icon,
  171. #canvas-debugging-empty-notice-button .button-icon,
  172. #toggle-breakpoints[checked] > image,
  173. .event-tooltip-debugger-icon {
  174. filter: var(--icon-filter);
  175. }
  176. .hidden-labels-box:not(.visible) > label,
  177. .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child {
  178. display: none;
  179. }
  180. .devtools-invisible-splitter {
  181. border-color: transparent;
  182. background-color: transparent;
  183. }
  184. .devtools-horizontal-splitter,
  185. .devtools-side-splitter {
  186. background-color: var(--theme-splitter-color);
  187. }