canvasdebugger.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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 file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. :root {
  5. --gutter-width: 3em;
  6. --gutter-padding-start: 22px;
  7. --checkerboard-pattern: linear-gradient(45deg, rgba(128,128,128,0.2) 25%, transparent 25%, transparent 75%, rgba(128,128,128,0.2) 75%, rgba(128,128,128,0.2)),
  8. linear-gradient(45deg, rgba(128,128,128,0.2) 25%, transparent 25%, transparent 75%, rgba(128,128,128,0.2) 75%, rgba(128,128,128,0.2));
  9. }
  10. :root.theme-dark {
  11. --draw-call-background: rgba(112,191,83,0.15);
  12. --interesting-call-background: rgba(223,128,255,0.15);
  13. }
  14. :root.theme-light {
  15. --draw-call-background: rgba(44,187,15,0.1);
  16. --interesting-call-background: rgba(184,46,229,0.1);
  17. }
  18. /* Reload and waiting notices */
  19. .notice-container {
  20. margin-top: -50vh;
  21. color: var(--theme-body-color-alt);
  22. }
  23. #empty-notice > button {
  24. min-width: 30px;
  25. min-height: 28px;
  26. margin: 0;
  27. list-style-image: url(images/profiler-stopwatch.svg);
  28. }
  29. #empty-notice > button .button-text {
  30. display: none;
  31. }
  32. #waiting-notice {
  33. font-size: 110%;
  34. }
  35. /* Snapshots pane */
  36. #snapshots-pane {
  37. border-inline-end: 1px solid var(--theme-splitter-color);
  38. }
  39. #record-snapshot {
  40. list-style-image: url("chrome://devtools/skin/images/profiler-stopwatch.svg");
  41. }
  42. #import-snapshot {
  43. list-style-image: url("images/import.svg");
  44. }
  45. /* Snapshots items */
  46. .snapshot-item-thumbnail {
  47. image-rendering: -moz-crisp-edges;
  48. background-image: var(--checkerboard-pattern);
  49. background-size: 12px 12px, 12px 12px;
  50. background-position: 0px 0px, 6px 6px;
  51. background-repeat: repeat, repeat;
  52. }
  53. .snapshot-item-thumbnail[flipped=true] {
  54. transform: scaleY(-1);
  55. }
  56. .snapshot-item-thumbnail {
  57. background-color: var(--theme-body-background);
  58. }
  59. .snapshot-item-details {
  60. padding-inline-start: 6px;
  61. }
  62. .snapshot-item-calls {
  63. padding-top: 4px;
  64. font-size: 80%;
  65. }
  66. .snapshot-item-save {
  67. padding-bottom: 2px;
  68. font-size: 90%;
  69. }
  70. .snapshot-item-calls,
  71. .snapshot-item-save {
  72. color: var(--theme-body-color-alt);
  73. }
  74. .snapshot-item-save {
  75. text-decoration: underline;
  76. cursor: pointer;
  77. }
  78. .snapshot-item-save[disabled=true] {
  79. text-decoration: none;
  80. pointer-events: none;
  81. }
  82. .snapshot-item-footer.devtools-throbber::before {
  83. margin-top: -2px;
  84. }
  85. #snapshots-list .selected label {
  86. /* Text inside a selected item should not be custom colored. */
  87. color: inherit !important;
  88. }
  89. /* Debugging pane controls */
  90. #resume {
  91. list-style-image: url(images/play.svg);
  92. }
  93. #step-over {
  94. list-style-image: url(images/debugger-step-over.svg);
  95. }
  96. #step-in {
  97. list-style-image: url(images/debugger-step-in.svg);
  98. }
  99. #step-out {
  100. list-style-image: url(images/debugger-step-out.svg);
  101. }
  102. #calls-slider {
  103. padding-inline-end: 24px;
  104. }
  105. #calls-slider .scale-slider {
  106. margin: 0;
  107. }
  108. #debugging-toolbar-sizer-button {
  109. /* This button's only purpose in life is to make the
  110. container .devtools-toolbar have the right height. */
  111. visibility: hidden;
  112. min-width: 1px;
  113. }
  114. /* Calls list pane */
  115. #calls-list .side-menu-widget-container {
  116. background: transparent;
  117. }
  118. /* Calls list items */
  119. #calls-list .side-menu-widget-item {
  120. padding: 0;
  121. border-color: var(--theme-splitter-color);
  122. border-bottom-color: transparent;
  123. }
  124. .call-item-view:hover {
  125. background-color: rgba(128,128,128,0.05);
  126. }
  127. .call-item-view[draw-call] {
  128. background-color: var(--draw-call-background);
  129. }
  130. .call-item-view[interesting-call] {
  131. background-color: var(--interesting-call-background);
  132. }
  133. .call-item-gutter {
  134. width: calc(var(--gutter-width) + var(--gutter-padding-start));
  135. padding-inline-start: var(--gutter-padding-start);
  136. padding-inline-end: 4px;
  137. padding-top: 2px;
  138. padding-bottom: 2px;
  139. border-inline-end: 1px solid var(--theme-splitter-color);
  140. margin-inline-end: 6px;
  141. background-color: var(--theme-sidebar-background);
  142. color: var(--theme-content-color3);
  143. }
  144. .selected .call-item-gutter {
  145. background-color: #2cbb0f;
  146. color: white;
  147. }
  148. .call-item-index {
  149. text-align: end;
  150. }
  151. .call-item-context {
  152. color: var(--theme-highlight-orange);
  153. }
  154. .call-item-name {
  155. color: var(--theme-highlight-blue);
  156. }
  157. .call-item-location {
  158. padding-inline-start: 2px;
  159. padding-inline-end: 6px;
  160. text-align: end;
  161. cursor: pointer;
  162. color: var(--theme-highlight-bluegrey);
  163. border-color: var(--theme-splitter-color);
  164. }
  165. .call-item-location:hover {
  166. color: var(--theme-highlight-blue);
  167. }
  168. .call-item-view:hover .call-item-location,
  169. .call-item-view[expanded] .call-item-location {
  170. text-decoration: underline;
  171. }
  172. .call-item-stack {
  173. padding-inline-start: calc(var(--gutter-width) + var(--gutter-padding-start));
  174. padding-bottom: 10px;
  175. }
  176. .theme-dark .call-item-stack {
  177. background: rgba(0,0,0,0.9);
  178. }
  179. .theme-light .call-item-stack {
  180. background: rgba(255,255,255,0.9);
  181. }
  182. .call-item-stack-fn {
  183. padding-top: 2px;
  184. padding-bottom: 2px;
  185. }
  186. .call-item-stack-fn-location {
  187. padding-inline-start: 2px;
  188. padding-inline-end: 6px;
  189. text-align: end;
  190. cursor: pointer;
  191. text-decoration: underline;
  192. }
  193. .call-item-stack-fn-name {
  194. color: var(--theme-content-color3);
  195. }
  196. .call-item-stack-fn-location {
  197. color: var(--theme-highlight-bluegrey);
  198. }
  199. .call-item-stack-fn-location:hover {
  200. color: var(--theme-highlight-blue);
  201. }
  202. #calls-list .selected .call-item-contents > label:not(.call-item-gutter) {
  203. /* Text inside a selected item should not be custom colored. */
  204. color: inherit !important;
  205. }
  206. /* Rendering preview */
  207. #screenshot-container {
  208. background-color: var(--theme-body-background);
  209. background-image: var(--checkerboard-pattern);
  210. background-size: 30px 30px, 30px 30px;
  211. background-position: 0px 0px, 15px 15px;
  212. background-repeat: repeat, repeat;
  213. }
  214. @media (min-width: 701px) {
  215. #screenshot-container {
  216. width: 30vw;
  217. max-width: 50vw;
  218. min-width: 100px;
  219. }
  220. }
  221. @media (max-width: 700px) {
  222. #screenshot-container {
  223. height: 40vh;
  224. max-height: 70vh;
  225. min-height: 100px;
  226. }
  227. }
  228. #screenshot-image {
  229. background-image: -moz-element(#screenshot-rendering);
  230. background-size: contain;
  231. background-position: center, center;
  232. background-repeat: no-repeat;
  233. }
  234. #screenshot-image[flipped=true] {
  235. transform: scaleY(-1);
  236. }
  237. #screenshot-dimensions {
  238. padding-top: 4px;
  239. padding-bottom: 4px;
  240. text-align: center;
  241. }
  242. .theme-dark #screenshot-dimensions {
  243. background-color: rgba(0,0,0,0.4);
  244. }
  245. .theme-light #screenshot-dimensions {
  246. background-color: rgba(255,255,255,0.8);
  247. }
  248. /* Snapshot filmstrip */
  249. #snapshot-filmstrip {
  250. border-top: 1px solid var(--theme-splitter-color);
  251. overflow: hidden;
  252. }
  253. .theme-dark #snapshot-filmstrip {
  254. color: var(--theme-selection-color);
  255. }
  256. .theme-light #snapshot-filmstrip {
  257. color: var(--theme-body-color-alt);
  258. }
  259. .filmstrip-thumbnail {
  260. image-rendering: -moz-crisp-edges;
  261. background-color: var(--theme-body-background);
  262. background-image: var(--checkerboard-pattern);
  263. background-size: 12px 12px, 12px 12px;
  264. background-position: 0px -1px, 6px 5px;
  265. background-repeat: repeat, repeat;
  266. background-origin: content-box;
  267. cursor: pointer;
  268. padding-top: 1px;
  269. padding-bottom: 1px;
  270. border-inline-end: 1px solid var(--theme-splitter-color);
  271. transition: opacity 0.1s ease-in-out;
  272. }
  273. .filmstrip-thumbnail[flipped=true] {
  274. transform: scaleY(-1);
  275. }
  276. #snapshot-filmstrip > .filmstrip-thumbnail:hover,
  277. #snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] {
  278. border: 1px solid var(--theme-highlight-blue);
  279. margin: 0 0 0 -1px;
  280. padding: 0;
  281. opacity: 0.66;
  282. }