dark-theme.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. @import url(resource://devtools/client/themes/variables.css);
  6. @import url(resource://devtools/client/themes/common.css);
  7. @import url(toolbars.css);
  8. @import url(tooltips.css);
  9. body {
  10. margin: 0;
  11. }
  12. .theme-body {
  13. background: var(--theme-body-background);
  14. color: var(--theme-body-color);
  15. }
  16. .theme-sidebar {
  17. background: var(--theme-sidebar-background);
  18. color: var(--theme-content-color1);
  19. }
  20. ::-moz-selection {
  21. background-color: var(--theme-selection-background);
  22. color: var(--theme-selection-color);
  23. }
  24. .theme-bg-darker {
  25. background-color: var(--theme-selection-background-semitransparent);
  26. }
  27. .theme-selected,
  28. .CodeMirror-hint-active {
  29. background-color: var(--theme-selection-background);
  30. color: var(--theme-selection-color);
  31. }
  32. .theme-bg-contrast,
  33. .variable-or-property:not([overridden])[changed] {
  34. background: var(--theme-contrast-background);
  35. }
  36. .theme-link,
  37. .cm-s-mozilla .cm-link,
  38. .cm-s-mozilla .cm-keyword {
  39. color: var(--theme-highlight-green);
  40. }
  41. /*
  42. * FIXME: http://bugzil.la/575675 CSS links without :visited set cause assertion
  43. * failures in debug builds.
  44. */
  45. .theme-link:visited,
  46. .cm-s-mozilla .cm-link:visited,
  47. .CodeMirror-Tern-type {
  48. color: var(--theme-highlight-blue);
  49. }
  50. .theme-comment,
  51. .cm-s-mozilla .cm-meta,
  52. .cm-s-mozilla .cm-hr,
  53. .cm-s-mozilla .cm-comment,
  54. .variable-or-property .token-undefined,
  55. .variable-or-property .token-null,
  56. .CodeMirror-Tern-completion-unknown:before {
  57. color: var(--theme-comment);
  58. }
  59. .theme-gutter {
  60. background-color: var(--theme-tab-toolbar-background);
  61. color: var(--theme-content-color3);
  62. border-color: var(--theme-splitter-color);
  63. }
  64. .theme-separator {
  65. border-color: var(--theme-splitter-color);
  66. }
  67. .theme-fg-color1,
  68. .cm-s-mozilla .cm-number,
  69. .variable-or-property .token-number,
  70. .variable-or-property[return] > .title > .name,
  71. .variable-or-property[scope] > .title > .name {
  72. color: var(--theme-highlight-red);
  73. }
  74. .CodeMirror-Tern-completion-number:before {
  75. background-color: #5c9966;
  76. }
  77. .theme-fg-color2,
  78. .cm-s-mozilla .cm-attribute,
  79. .cm-s-mozilla .cm-def,
  80. .cm-s-mozilla .cm-property,
  81. .cm-s-mozilla .cm-qualifier,
  82. .variables-view-variable > .title > .name {
  83. color: var(--theme-highlight-purple);
  84. }
  85. .CodeMirror-Tern-completion-object:before {
  86. background-color: #3689b2;
  87. }
  88. .cm-s-mozilla .cm-unused-line {
  89. text-decoration: line-through;
  90. text-decoration-color: #0072ab;
  91. }
  92. .cm-s-mozilla .cm-executed-line {
  93. background-color: #133c26;
  94. }
  95. .theme-fg-color3,
  96. .cm-s-mozilla .cm-builtin,
  97. .cm-s-mozilla .cm-tag,
  98. .cm-s-mozilla .cm-header,
  99. .cm-s-mozilla .cm-bracket,
  100. .variables-view-property > .title > .name {
  101. color: var(--theme-highlight-green);
  102. }
  103. .CodeMirror-Tern-completion-array:before {
  104. background-color: var(--theme-highlight-bluegrey);
  105. }
  106. .theme-fg-color4 {
  107. color: var(--theme-highlight-purple);
  108. }
  109. .theme-fg-color5 {
  110. color: var(--theme-highlight-purple);
  111. }
  112. .theme-fg-color6,
  113. .cm-s-mozilla .cm-string,
  114. .cm-s-mozilla .cm-string-2,
  115. .variable-or-property .token-string,
  116. .cm-s-mozilla .cm-variable,
  117. .CodeMirror-Tern-farg {
  118. color: var(--theme-highlight-gray);
  119. }
  120. .CodeMirror-Tern-completion-string:before,
  121. .CodeMirror-Tern-completion-fn:before {
  122. background-color: #b26b47;
  123. }
  124. .theme-fg-color7,
  125. .cm-s-mozilla .cm-atom,
  126. .cm-s-mozilla .cm-quote,
  127. .cm-s-mozilla .cm-error,
  128. .variable-or-property .token-boolean,
  129. .variable-or-property .token-domnode,
  130. .variable-or-property[exception] > .title > .name {
  131. color: var(--theme-highlight-red);
  132. }
  133. .CodeMirror-Tern-completion-bool:before {
  134. background-color: #bf5656;
  135. }
  136. .variable-or-property .token-domnode {
  137. font-weight: bold;
  138. }
  139. .theme-toolbar,
  140. .devtools-toolbar,
  141. .devtools-sidebar-tabs tabs,
  142. .devtools-sidebar-alltabs,
  143. .cm-s-mozilla .CodeMirror-dialog { /* General toolbar styling */
  144. color: var(--theme-body-color-alt);
  145. background-color: var(--theme-toolbar-background);
  146. border-color: var(--theme-splitter-color);
  147. }
  148. .theme-fg-contrast { /* To be used for text on theme-bg-contrast */
  149. color: black;
  150. }
  151. .ruleview-swatch,
  152. .computedview-colorswatch {
  153. box-shadow: 0 0 0 1px #818181;
  154. }
  155. /* CodeMirror specific styles.
  156. * Best effort to match the existing theme, some of the colors
  157. * are duplicated here to prevent weirdness in the main theme. */
  158. .CodeMirror.cm-s-mozilla { /* Inherit platform specific font sizing and styles */
  159. font-family: inherit;
  160. font-size: inherit;
  161. background: transparent;
  162. }
  163. .CodeMirror.cm-s-mozilla pre,
  164. .cm-s-mozilla .cm-variable-2,
  165. .cm-s-mozilla .cm-variable-3,
  166. .cm-s-mozilla .cm-operator,
  167. .cm-s-mozilla .cm-special {
  168. color: var(--theme-content-color1);
  169. }
  170. .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor {
  171. border-left: solid 1px #fff;
  172. }
  173. .cm-s-mozilla.CodeMirror-focused .CodeMirror-selected { /* selected text (focused) */
  174. background: rgb(185, 215, 253);
  175. }
  176. .cm-s-mozilla .CodeMirror-selected { /* selected text (unfocused) */
  177. background: rgb(176, 176, 176);
  178. }
  179. .cm-s-mozilla .CodeMirror-activeline-background { /* selected color with alpha */
  180. background: rgba(185, 215, 253, .15);
  181. }
  182. div.cm-s-mozilla span.CodeMirror-matchingbracket { /* highlight brackets */
  183. outline: solid 1px rgba(255, 255, 255, .25);
  184. color: white;
  185. }
  186. /* Highlight for a line that contains an error. */
  187. div.CodeMirror div.error-line {
  188. background: rgba(255,0,0,0.2);
  189. }
  190. /* Generic highlighted text */
  191. div.CodeMirror span.marked-text {
  192. background: rgba(255,255,0,0.2);
  193. border: 1px dashed rgba(192,192,0,0.6);
  194. margin-inline-start: -1px;
  195. margin-inline-end: -1px;
  196. }
  197. /* Highlight for evaluating current statement. */
  198. div.CodeMirror span.eval-text {
  199. background-color: #556;
  200. }
  201. .cm-s-mozilla .CodeMirror-linenumber { /* line number text */
  202. color: var(--theme-content-color3);
  203. }
  204. .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */
  205. border-right-color: var(--theme-toolbar-background);
  206. background-color: var(--theme-sidebar-background);
  207. }
  208. .cm-s-markup-view pre {
  209. line-height: 1.4em;
  210. min-height: 1.4em;
  211. }
  212. /* XUL panel styling (see devtools/client/shared/widgets/tooltip/Tooltip.js) */
  213. .theme-tooltip-panel .panel-arrowcontent {
  214. padding: 5px;
  215. background: rgba(19, 28, 38, .9);
  216. border-radius: 5px;
  217. box-shadow: none;
  218. border: 3px solid #434850;
  219. }
  220. /* Overring panel arrow images to fit with our light and dark themes */
  221. .theme-tooltip-panel .panel-arrow {
  222. --arrow-margin: -4px;
  223. }
  224. :root[platform="win"] .theme-tooltip-panel .panel-arrow {
  225. --arrow-margin: -7px;
  226. }
  227. .theme-tooltip-panel .panel-arrow[side="top"],
  228. .theme-tooltip-panel .panel-arrow[side="bottom"] {
  229. list-style-image: url("chrome://devtools/skin/tooltip/arrow-vertical-dark.png");
  230. /* !important is needed to override the popup.css rules in toolkit/themes */
  231. width: 39px !important;
  232. height: 16px !important;
  233. }
  234. .theme-tooltip-panel .panel-arrow[side="left"],
  235. .theme-tooltip-panel .panel-arrow[side="right"] {
  236. list-style-image: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark.png");
  237. /* !important is needed to override the popup.css rules in toolkit/themes */
  238. width: 16px !important;
  239. height: 39px !important;
  240. }
  241. .theme-tooltip-panel .panel-arrow[side="top"] {
  242. margin-bottom: var(--arrow-margin);
  243. }
  244. .theme-tooltip-panel .panel-arrow[side="bottom"] {
  245. margin-top: var(--arrow-margin);
  246. }
  247. .theme-tooltip-panel .panel-arrow[side="left"] {
  248. margin-right: var(--arrow-margin);
  249. }
  250. .theme-tooltip-panel .panel-arrow[side="right"] {
  251. margin-left: var(--arrow-margin);
  252. }
  253. @media (min-resolution: 1.1dppx) {
  254. .theme-tooltip-panel .panel-arrow[side="top"],
  255. .theme-tooltip-panel .panel-arrow[side="bottom"] {
  256. list-style-image: url("chrome://devtools/skin/tooltip/arrow-vertical-dark@2x.png");
  257. }
  258. .theme-tooltip-panel .panel-arrow[side="left"],
  259. .theme-tooltip-panel .panel-arrow[side="right"] {
  260. list-style-image: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark@2x.png");
  261. }
  262. }
  263. .theme-tooltip-panel .devtools-tooltip-simple-text {
  264. color: white;
  265. border-bottom: 1px solid #434850;
  266. }
  267. .theme-tooltip-panel .devtools-tooltip-simple-text:last-child {
  268. border-bottom: 0;
  269. }
  270. .devtools-textinput,
  271. .devtools-searchinput,
  272. .devtools-filterinput {
  273. background-color: rgba(24, 29, 32, 1);
  274. color: rgba(184, 200, 217, 1);
  275. }
  276. .CodeMirror-Tern-fname {
  277. color: #f7f7f7;
  278. }
  279. .CodeMirror-hints,
  280. .CodeMirror-Tern-tooltip {
  281. box-shadow: 0 0 4px rgba(255, 255, 255, .3);
  282. background-color: #0f171f;
  283. color: var(--theme-body-color);
  284. }