webaudioeditor.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. /* Reload and waiting notices */
  5. .notice-container {
  6. margin-top: -50vh;
  7. color: var(--theme-body-color-alt);
  8. }
  9. #reload-notice {
  10. font-size: 120%;
  11. }
  12. #waiting-notice {
  13. font-size: 110%;
  14. }
  15. /* Context Graph */
  16. svg {
  17. overflow: hidden;
  18. -moz-box-flex: 1;
  19. --arrow-color: var(--theme-splitter-color);
  20. --text-color: var(--theme-body-color-alt);
  21. }
  22. .theme-dark svg {
  23. --arrow-color: var(--theme-body-color-alt);
  24. }
  25. /* Edges in graph */
  26. .edgePath path {
  27. stroke-width: 1px;
  28. stroke: var(--arrow-color);
  29. }
  30. svg #arrowhead {
  31. /* !important is needed to override inline style */
  32. fill: var(--arrow-color) !important;
  33. }
  34. /* AudioParam connection edges */
  35. g.edgePath.param-connection path {
  36. stroke-dasharray: 5,5;
  37. stroke: var(--arrow-colo);
  38. }
  39. /* Labels in AudioParam connection should have background that match
  40. * the main background so there's whitespace around the label, on top of the
  41. * dotted lines. */
  42. g.edgeLabel rect {
  43. fill: var(--theme-body-background);
  44. }
  45. g.edgeLabel tspan {
  46. fill: var(--text-color);
  47. }
  48. /* Audio Nodes */
  49. .nodes rect {
  50. stroke-width: 1px;
  51. cursor: pointer;
  52. stroke: var(--theme-splitter-color);
  53. fill: var(--theme-toolbar-background);
  54. }
  55. /**
  56. * Bypassed Nodes
  57. */
  58. .theme-light .nodes g.bypassed rect {
  59. fill: url(chrome://devtools/skin/images/filters.svg#bypass-light);
  60. }
  61. .theme-dark .nodes g.bypassed rect {
  62. fill: url(chrome://devtools/skin/images/filters.svg#bypass-dark);
  63. }
  64. .nodes g.bypassed.selected rect {
  65. stroke: var(--theme-selection-background);
  66. }
  67. .nodes g.bypassed text {
  68. opacity: 0.6;
  69. }
  70. /**
  71. * Selected Nodes
  72. */
  73. .nodes g.selected rect {
  74. fill: var(--theme-selection-background);
  75. }
  76. /* Don't style bypassed nodes text differently because it'd be illegible in light-theme */
  77. g.selected:not(.bypassed) text {
  78. fill: var(--theme-selection-color);
  79. }
  80. /* Text in nodes and edges */
  81. text {
  82. cursor: default; /* override the "text" cursor */
  83. fill: var(--text-color);
  84. font-size: 1.25em;
  85. /* Make sure text stays inside its container in RTL locales */
  86. direction: ltr;
  87. }
  88. .nodes text {
  89. cursor: pointer;
  90. }
  91. /**
  92. * Inspector Styles
  93. */
  94. /* hide the variables view scope title as its redundant,
  95. * because there's only one scope displayed. */
  96. .variables-view-scope > .title {
  97. display: none;
  98. }
  99. #web-audio-inspector-title {
  100. margin: 6px;
  101. }
  102. .web-audio-inspector .error {
  103. background-image: url(images/alerticon-warning.png);
  104. background-size: 13px 12px;
  105. -moz-appearance: none;
  106. opacity: 0;
  107. transition: opacity .5s ease-out 0s;
  108. }
  109. #inspector-pane-toggle {
  110. background: none;
  111. box-shadow: none;
  112. border: none;
  113. list-style-image: var(--theme-pane-collapse-image);
  114. }
  115. #inspector-pane-toggle > .toolbarbutton-icon {
  116. width: 16px;
  117. height: 16px;
  118. }
  119. #inspector-pane-toggle.pane-collapsed {
  120. list-style-image: var(--theme-pane-expand-image);
  121. }
  122. /**
  123. * Automation Styles
  124. */
  125. #automation-param-toolbar .automation-param-button[selected] {
  126. color: var(--theme-selection-color);
  127. background-color: var(--theme-selection-background);
  128. }
  129. #automation-graph {
  130. overflow: hidden;
  131. -moz-box-flex: 1;
  132. }
  133. @media (min-resolution: 1.1dppx) {
  134. .web-audio-inspector .error {
  135. background-image: url(images/alerticon-warning@2x.png);
  136. }
  137. }
  138. /**
  139. * Inspector toolbar
  140. */
  141. #audio-node-toolbar .bypass {
  142. list-style-image: url(images/power.svg);
  143. }
  144. /**
  145. * Responsive Styles
  146. * `.devtools-responsive-container` takes care of most of
  147. * the changing of host types.
  148. */
  149. @media (max-width: 700px) {
  150. /**
  151. * Override the inspector toggle so it's always open
  152. * in the portrait view, with the toggle button hidden.
  153. */
  154. #inspector-pane-toggle {
  155. display: none;
  156. }
  157. #web-audio-inspector {
  158. margin-left: 0px !important;
  159. margin-right: 0px !important;
  160. }
  161. }