diagram.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. .srd-node {
  2. width: 200px;
  3. }
  4. .srd-node--selected > * {
  5. border: 4px solid rgb(0, 192, 255) !important;
  6. border-radius: 20px;
  7. }
  8. .srd-port {
  9. background: rgb(0, 192, 255);
  10. border-radius: 10px;
  11. border: black 4px solid;
  12. &.connected {
  13. background: #CAB422;
  14. }
  15. }
  16. .diagramBlock {
  17. background: white;
  18. width: 100%;
  19. border: 4px solid black;
  20. border-radius: 20px;
  21. display: grid;
  22. grid-template-rows: 30px auto;
  23. grid-template-columns: 50% 50%;
  24. &.input {
  25. background: #40866E;
  26. color:white;
  27. .value {
  28. grid-row: 2;
  29. }
  30. .outputs {
  31. transform: translateY(5px);
  32. }
  33. }
  34. &.attribute {
  35. background: #40866E;
  36. }
  37. &.output {
  38. background: blue;
  39. color:white;
  40. .inputs {
  41. color:white;
  42. }
  43. }
  44. .header {
  45. grid-row: 1;
  46. grid-column: 1 / span 2;
  47. border: 4px solid black;
  48. border-top-right-radius: 16px;
  49. border-top-left-radius: 16px;
  50. font-size: 16px;
  51. text-align: center;
  52. margin: -1px;
  53. white-space: nowrap;
  54. text-overflow: ellipsis;
  55. overflow: hidden;
  56. background: black;
  57. color: white;
  58. }
  59. .value {
  60. grid-row: 3;
  61. grid-column: 1 / span 2;
  62. height: 34px;
  63. text-align: center;
  64. font-size: 18px;
  65. font-weight: bold;
  66. margin: 0 10px;
  67. .value-text {
  68. white-space: nowrap;
  69. text-overflow: ellipsis;
  70. overflow: hidden;
  71. }
  72. }
  73. .preview {
  74. border-bottom-left-radius: 16px;
  75. border-bottom-right-radius: 16px;
  76. padding-top: 2px;
  77. }
  78. .inputs {
  79. grid-row: 2;
  80. grid-column: 1;
  81. .input-port {
  82. display: grid;
  83. grid-template-columns: 10px calc(100% - 10px);
  84. grid-template-rows: 100%;
  85. .input-port-plug {
  86. grid-column: 1;
  87. grid-row: 1;
  88. display: grid;
  89. align-content: center;
  90. margin-left: -11px;
  91. }
  92. .input-port-label {
  93. margin-left: 10px;
  94. grid-column: 2;
  95. grid-row: 1;
  96. margin-bottom: 2px;
  97. overflow: hidden;
  98. white-space: nowrap;
  99. text-overflow: ellipsis;
  100. }
  101. }
  102. }
  103. .outputs {
  104. grid-row: 2;
  105. grid-column: 2;
  106. .output-port {
  107. display: grid;
  108. grid-template-columns: calc(100% - 10px) 10px;
  109. grid-template-rows: 100%;
  110. .output-port-plug {
  111. grid-column: 2;
  112. grid-row: 1;
  113. display: grid;
  114. align-content: center;
  115. }
  116. .output-port-label {
  117. text-align: right;
  118. margin-right: 10px;
  119. grid-column: 1;
  120. grid-row: 1;
  121. margin-bottom: 2px;
  122. overflow: hidden;
  123. white-space: nowrap;
  124. text-overflow: ellipsis;
  125. }
  126. }
  127. }
  128. }