diagram.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. .srd-node {
  2. width: 200px;
  3. }
  4. .srd-node--selected {
  5. .input-port-border {
  6. border-color: rgb(0, 192, 255) !important;
  7. }
  8. .output-port-border {
  9. border-color: rgb(0, 192, 255) !important;
  10. }
  11. }
  12. .srd-default-link--path-selected {
  13. animation: 0s !important;
  14. }
  15. .srd-port {
  16. grid-column: 1;
  17. grid-row: 1;
  18. background: #2796B2;
  19. border-radius: 10px;
  20. transform: scale(1);
  21. &.connected {
  22. background: #CAB422;
  23. }
  24. &:hover {
  25. background: greenyellow !important;
  26. }
  27. }
  28. .diagramBlock {
  29. background: white;
  30. width: 100%;
  31. border: 4px solid black;
  32. border-radius: 20px;
  33. display: grid;
  34. grid-template-rows: 30px auto;
  35. grid-template-columns: 50% 50%;
  36. &.input {
  37. background: #40866E;
  38. color:white;
  39. .value {
  40. grid-row: 2;
  41. }
  42. .outputs {
  43. transform: translateY(5px);
  44. }
  45. }
  46. &.attribute {
  47. background: #40866E;
  48. }
  49. &.output {
  50. background: blue;
  51. color:white;
  52. .inputs {
  53. color:white;
  54. }
  55. }
  56. .header {
  57. grid-row: 1;
  58. grid-column: 1 / span 2;
  59. border: 4px solid black;
  60. border-top-right-radius: 16px;
  61. border-top-left-radius: 16px;
  62. font-size: 16px;
  63. text-align: center;
  64. margin: -1px;
  65. white-space: nowrap;
  66. text-overflow: ellipsis;
  67. overflow: hidden;
  68. background: black;
  69. color: white;
  70. }
  71. .value {
  72. grid-row: 3;
  73. grid-column: 1 / span 2;
  74. height: 34px;
  75. text-align: center;
  76. font-size: 18px;
  77. font-weight: bold;
  78. margin: 0 10px;
  79. .value-text {
  80. white-space: nowrap;
  81. text-overflow: ellipsis;
  82. overflow: hidden;
  83. }
  84. }
  85. .inputs {
  86. grid-row: 2;
  87. grid-column: 1;
  88. padding-bottom: 8px;
  89. .input-port {
  90. display: grid;
  91. grid-template-columns: 10px calc(100% - 10px);
  92. grid-template-rows: 100%;
  93. .input-port-plug {
  94. grid-column: 1;
  95. grid-row: 1;
  96. display: grid;
  97. align-content: center;
  98. margin-left: -8px;
  99. position: relative;
  100. &:hover {
  101. .input-port-connection {
  102. background: greenyellow !important;
  103. }
  104. }
  105. .input-port-connection {
  106. pointer-events: none;
  107. grid-column: 1;
  108. grid-row: 1;
  109. background: #2796B2;
  110. border-radius: 10px;
  111. }
  112. .input-port-type {
  113. width: 15px;
  114. pointer-events: none;
  115. grid-column: 1;
  116. grid-row: 1;
  117. display: grid;
  118. align-items: center;
  119. justify-items: center;
  120. transform: scale(1);
  121. img {
  122. width: 12px;
  123. }
  124. }
  125. .input-port-border {
  126. pointer-events: none;
  127. grid-column: 1;
  128. grid-row: 1;
  129. border: 4px solid black;
  130. width: 4px;
  131. height: 7px;
  132. border-right: 0;
  133. position: absolute;
  134. border-bottom-left-radius: 10px;
  135. border-top-left-radius: 10px;
  136. transform: translateX(-2px) scale(1.2);
  137. }
  138. }
  139. .input-port-label {
  140. grid-column: 2;
  141. grid-row: 1;
  142. margin-bottom: 2px;
  143. overflow: hidden;
  144. white-space: nowrap;
  145. text-overflow: ellipsis;
  146. }
  147. }
  148. }
  149. .outputs {
  150. grid-row: 2;
  151. grid-column: 2;
  152. padding-bottom: 8px;
  153. .output-port {
  154. display: grid;
  155. grid-template-columns: calc(100% - 10px) 10px;
  156. grid-template-rows: 100%;
  157. .output-port-plug {
  158. grid-column: 2;
  159. grid-row: 1;
  160. display: grid;
  161. align-content: center;
  162. position: relative;
  163. margin-left: 3px;
  164. &:hover {
  165. .output-port-connection {
  166. background: greenyellow !important;
  167. }
  168. }
  169. .output-port-connection {
  170. pointer-events: none;
  171. grid-column: 1;
  172. grid-row: 1;
  173. background: #2796B2;
  174. border-radius: 10px;
  175. }
  176. .output-port-type {
  177. pointer-events: none;
  178. grid-column: 1;
  179. grid-row: 1;
  180. display: grid;
  181. align-items: center;
  182. justify-items: center;
  183. transform: scale(1);
  184. img {
  185. width: 12px;
  186. }
  187. }
  188. .output-port-border {
  189. pointer-events: none;
  190. grid-column: 1;
  191. grid-row: 1;
  192. border: 4px solid black;
  193. width: 4px;
  194. border-left: 0;
  195. border-left: 0;
  196. transform: translateX(9px) scale(1.2);
  197. border-bottom-right-radius: 10px;
  198. border-top-right-radius: 10px;
  199. }
  200. }
  201. .output-port-label {
  202. text-align: right;
  203. grid-column: 1;
  204. grid-row: 1;
  205. margin-bottom: 2px;
  206. overflow: hidden;
  207. white-space: nowrap;
  208. text-overflow: ellipsis;
  209. }
  210. }
  211. }
  212. &.texture-block {
  213. display: grid;
  214. grid-template-rows: 30px auto 1fr;
  215. grid-template-columns: calc(100% - 60px) 60px;
  216. .inputs {
  217. grid-column: 1;
  218. grid-row: 2;
  219. }
  220. .outputs {
  221. grid-column: 2;
  222. grid-row: 2 / span 2;
  223. }
  224. .textureLine {
  225. height: 140px;
  226. grid-column: 1;
  227. grid-row: 3;
  228. overflow: hidden;
  229. border-bottom-left-radius: 16px;
  230. border: black 4px solid;
  231. border-left: 0px;
  232. border-bottom: 0px;
  233. canvas {
  234. width: 100%;
  235. height: 100%;
  236. }
  237. }
  238. }
  239. }