light-theme.css 8.3 KB

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