index.module.less 3.1 KB

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