shadereditor.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. /* Shaders pane */
  16. #shaders-pane {
  17. min-width: 150px;
  18. }
  19. .program-item {
  20. padding: 2px 0px;
  21. }
  22. .side-menu-widget-item-checkbox {
  23. -moz-appearance: none;
  24. opacity: 0;
  25. transition: opacity .15s ease-out 0s;
  26. }
  27. /* Only show the checkbox when the source is hovered over, is selected, or if it
  28. * is not checked. */
  29. .side-menu-widget-item:hover > .side-menu-widget-item-checkbox,
  30. .side-menu-widget-item.selected > .side-menu-widget-item-checkbox,
  31. .side-menu-widget-item-checkbox:not([checked]) {
  32. opacity: 1;
  33. transition: opacity .15s ease-out 0s;
  34. }
  35. .side-menu-widget-item-checkbox .checkbox-check {
  36. -moz-appearance: none;
  37. background-image: url(images/item-toggle.svg);
  38. background-color: transparent;
  39. width: 16px;
  40. height: 16px;
  41. border: 0;
  42. }
  43. .side-menu-widget-item-checkbox:not([checked]) .checkbox-check,
  44. .side-menu-widget-item-checkbox:not([checked]) + vbox {
  45. opacity: 0.3;
  46. }
  47. .side-menu-widget-item:not(.selected) .checkbox-check {
  48. filter: var(--icon-filter);
  49. }
  50. /* Make sure icon is white when the item is selected */
  51. .side-menu-widget-item.selected .checkbox-check {
  52. filter: invert(1);
  53. }
  54. /* Shader source editors */
  55. .editor-label {
  56. padding: 1px 12px;
  57. border-top: 1px solid;
  58. }
  59. .editor-label {
  60. background: var(--theme-toolbar-background);
  61. border-color: var(--theme-splitter-color);
  62. color: var(--theme-body-color-alt);
  63. }
  64. .editor-label[selected] {
  65. background-color: var(--theme-selection-background);
  66. color: var(--theme-selection-color);
  67. }
  68. /* Responsive sidebar */
  69. @media (max-width: 700px) {
  70. #shaders-pane {
  71. max-height: 60vh;
  72. }
  73. #editors-splitter {
  74. border-color: transparent;
  75. }
  76. .side-menu-widget-container {
  77. box-shadow: none !important;
  78. }
  79. .side-menu-widget-item-arrow {
  80. background-image: none !important;
  81. }
  82. .editor-label {
  83. -moz-box-ordinal-group: 0;
  84. border-bottom: 1px solid;
  85. }
  86. }