index.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. :root {
  6. --g-selection-background: #4d53e8;
  7. --g-editor-background: #f2f3f5;
  8. --g-playground-select: var(--g-selection-background);
  9. --g-playground-hover: var(--g-selection-background);
  10. --g-playground-line: var(--g-selection-background);
  11. --g-playground-blur: #999;
  12. --g-playground-selectBox-outline: var(--g-selection-background);
  13. --g-playground-selectBox-background: rgba(141, 144, 231, 0.1);
  14. --g-playground-select-hover-background: rgba(77, 83, 232, 0.1);
  15. --g-playground-select-control-size: 12px;
  16. }
  17. .gedit-playground {
  18. position: absolute;
  19. width: 100%;
  20. height: 100%;
  21. left: 0;
  22. top: 0;
  23. z-index: 10;
  24. overflow: hidden;
  25. user-select: none;
  26. outline: none;
  27. box-sizing: border-box;
  28. background-color: var(--g-editor-background);
  29. }
  30. .gedit-playground-scroll-right {
  31. position: absolute;
  32. right: 2px;
  33. height: 100vh;
  34. width: 7px;
  35. z-index: 10;
  36. }
  37. .gedit-playground-scroll-bottom {
  38. position: absolute;
  39. bottom: 2px;
  40. width: 100vw;
  41. height: 7px;
  42. z-index: 10;
  43. }
  44. .gedit-playground-scroll-right-block {
  45. position: absolute;
  46. opacity: 0.3;
  47. border-radius: 3.5px;
  48. }
  49. .gedit-playground-scroll-right-block:hover {
  50. opacity: 0.6;
  51. }
  52. .gedit-playground-scroll-bottom-block {
  53. position: absolute;
  54. opacity: 0.3;
  55. border-radius: 3.5px;
  56. }
  57. .gedit-playground-scroll-bottom-block:hover {
  58. opacity: 0.6;
  59. }
  60. .gedit-playground-scroll-hidden {
  61. opacity: 0;
  62. }
  63. .gedit-playground * {
  64. box-sizing: border-box;
  65. }
  66. .gedit-playground-loading {
  67. position: absolute;
  68. color: white;
  69. left: 50%;
  70. top: 50%;
  71. z-index: 100;
  72. display: flex;
  73. justify-content: center;
  74. align-items: center;
  75. transition: opacity 0.8s;
  76. flex-direction: column;
  77. text-align: center;
  78. opacity: 0.8;
  79. }
  80. .gedit-hidden {
  81. display: none;
  82. }
  83. .gedit-playground-pipeline {
  84. position: absolute;
  85. overflow: visible;
  86. width: 100%;
  87. height: 100%;
  88. left: 0;
  89. top: 0;
  90. }
  91. .gedit-playground-pipeline::before {
  92. content: '';
  93. position: absolute;
  94. width: 1px;
  95. height: 100%;
  96. left: 0;
  97. top: 0;
  98. }
  99. .gedit-playground-layer {
  100. position: absolute;
  101. overflow: visible;
  102. }
  103. .gedit-selector-box {
  104. position: absolute;
  105. left: 0;
  106. top: 0;
  107. width: 0;
  108. height: 0;
  109. z-index: 33;
  110. outline: 1px solid var(--g-playground-selectBox-outline);
  111. background-color: var(--g-playground-selectBox-background);
  112. }
  113. .gedit-selector-box-block {
  114. position: absolute;
  115. left: 0;
  116. top: 0;
  117. width: 0;
  118. height: 0;
  119. z-index: 9999;
  120. display: none;
  121. background-color: rgba(0, 0, 0, 0);
  122. }
  123. .gedit-selector-bounds-background {
  124. position: absolute;
  125. left: 0;
  126. top: 0;
  127. width: 0;
  128. height: 0;
  129. outline: 1px solid var(--g-playground-selectBox-outline);
  130. background-color: #f0f4ff;
  131. }
  132. .gedit-selector-bounds-foreground {
  133. position: absolute;
  134. left: 0;
  135. top: 0;
  136. width: 0;
  137. height: 0;
  138. z-index: 33;
  139. background: rgba(255, 255, 255, 0);
  140. }
  141. .gedit-flow-activity-node {
  142. position: absolute;
  143. }
  144. .gedit-grid-svg {
  145. display: block;
  146. position: absolute;
  147. left: 20px;
  148. top: 20px;
  149. width: 0;
  150. height: 0;
  151. }