2
0

index.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 .flow-lines-container {
  31. overflow: visible;
  32. }
  33. .gedit-transition-ease {
  34. transition: left, top 0.3s ease;
  35. }
  36. .gedit-playground-scroll-right {
  37. position: absolute;
  38. right: 2px;
  39. height: 100vh;
  40. width: 7px;
  41. z-index: 10;
  42. }
  43. .gedit-playground-scroll-bottom {
  44. position: absolute;
  45. bottom: 2px;
  46. width: 100vw;
  47. height: 7px;
  48. z-index: 10;
  49. }
  50. .gedit-playground-scroll-right-block {
  51. position: absolute;
  52. opacity: 0.3;
  53. border-radius: 3.5px;
  54. }
  55. .gedit-playground-scroll-right-block:hover {
  56. opacity: 0.6;
  57. }
  58. .gedit-playground-scroll-bottom-block {
  59. position: absolute;
  60. opacity: 0.3;
  61. border-radius: 3.5px;
  62. }
  63. .gedit-playground-scroll-bottom-block:hover {
  64. opacity: 0.6;
  65. }
  66. .gedit-playground-scroll-hidden {
  67. opacity: 0;
  68. }
  69. .gedit-playground-loading {
  70. position: absolute;
  71. color: white;
  72. left: 50%;
  73. top: 50%;
  74. z-index: 100;
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. transition: opacity 0.8s;
  79. flex-direction: column;
  80. text-align: center;
  81. opacity: 0.8;
  82. }
  83. .gedit-hidden {
  84. display: none;
  85. }
  86. .gedit-playground-pipeline {
  87. position: absolute;
  88. overflow: visible;
  89. width: 100%;
  90. height: 100%;
  91. left: 0;
  92. top: 0;
  93. }
  94. .gedit-playground-pipeline::before {
  95. content: '';
  96. position: absolute;
  97. width: 1px;
  98. height: 100%;
  99. left: 0;
  100. top: 0;
  101. }
  102. .gedit-playground-layer {
  103. position: absolute;
  104. overflow: visible;
  105. }
  106. .gedit-selector-box {
  107. position: absolute;
  108. left: 0;
  109. top: 0;
  110. width: 0;
  111. height: 0;
  112. z-index: 33;
  113. outline: 1px solid var(--g-playground-selectBox-outline);
  114. background-color: var(--g-playground-selectBox-background);
  115. }
  116. .gedit-selector-box-block {
  117. position: absolute;
  118. left: 0;
  119. top: 0;
  120. width: 0;
  121. height: 0;
  122. z-index: 9999;
  123. display: none;
  124. background-color: rgba(0, 0, 0, 0);
  125. }
  126. .gedit-selector-bounds-background {
  127. position: absolute;
  128. left: 0;
  129. top: 0;
  130. width: 0;
  131. height: 0;
  132. outline: 1px solid var(--g-playground-selectBox-outline);
  133. background-color: #f0f4ff;
  134. }
  135. .gedit-selector-bounds-foreground {
  136. position: absolute;
  137. left: 0;
  138. top: 0;
  139. width: 0;
  140. height: 0;
  141. z-index: 33;
  142. background: rgba(255, 255, 255, 0);
  143. }
  144. .gedit-flow-activity-node {
  145. position: absolute;
  146. }
  147. .gedit-grid-svg {
  148. display: block;
  149. position: absolute;
  150. left: 20px;
  151. top: 20px;
  152. width: 0;
  153. height: 0;
  154. }