2
0

index.module.less 3.2 KB

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