BaseNodeView.uss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. #node {
  2. background-color: rgba(0, 63, 63, 0.8);
  3. }
  4. #controls {
  5. background-color: rgba(63, 63, 63, 0.8);
  6. }
  7. #settings-button {
  8. border-width: 0px;
  9. width: 28px;
  10. height: 28px;
  11. background-color: rgba(63, 63, 63, 0);
  12. border-radius: 0px;
  13. }
  14. #settings-button > #icon {
  15. -unity-background-scale-mode: scale-to-fit;
  16. background-image: resource("Icons/SettingsIcons");
  17. flex-grow: 1;
  18. }
  19. #settings-button:hover {
  20. background-color: rgba(127, 127, 127 0.2);
  21. }
  22. #contents #top .executed #connector, #contents #top .executed #connector #cap,
  23. #contents #top .executes #connector, #contents #top .executes #connector #cap,
  24. #contents #top .executeAfter #connector, #contents #top .executeAfter #connector #cap,
  25. #contents #top .true #connector, #contents #top .true #connector #cap,
  26. #contents #top .false #connector, #contents #top .false #connector #cap,
  27. #contents #top .loopBody #connector, #contents #top .loopBody #connector #cap,
  28. #contents #top .loopCompleted #connector, #contents #top .loopCompleted #connector #cap {
  29. border-radius: 0px;
  30. }
  31. .Highlight {
  32. background-color: rgba(0, 63, 63, 0.8);
  33. }
  34. ParameterNodeView #title {
  35. height: 16px;
  36. }
  37. ParameterNodeView #title.input {
  38. flex-direction: row-reverse;
  39. }
  40. ParameterNodeView #node-border {
  41. border-radius: 10px;
  42. }
  43. ParameterNodeView #selection-border {
  44. border-radius: 12px;
  45. }
  46. ParameterNodeView #title > Label {
  47. margin-left: 2px;
  48. font-size: 11px;
  49. }
  50. ParameterNodeView #title #top PortView {
  51. padding-right: 0;
  52. padding-left: 0;
  53. margin-top: 2px;
  54. }
  55. ParameterNodeView PortView > Label {
  56. visibility: hidden;
  57. width: 0;
  58. }
  59. ParameterNodeView #controls EnumField {
  60. margin: 0;
  61. }
  62. ParameterNodeView #controls EnumField > VisualElement {
  63. border-width: 0;
  64. margin-top: 0;
  65. margin-bottom: 0;
  66. padding-left: 4px;
  67. padding-right: 4px;
  68. height: 14px;
  69. }
  70. ParameterNodeView #controls EnumField > VisualElement > TextElement {
  71. font-size: 10px;
  72. margin-top: 0;
  73. }
  74. ParameterNodeView #controls EnumField > VisualElement > VisualElement {
  75. margin-right: -2px;
  76. }
  77. #RightTitleContainer {
  78. justify-content: flex-end;
  79. flex-grow: 1;
  80. flex-direction: row;
  81. }
  82. #input-container {
  83. position: absolute;
  84. right: 100%;
  85. top: 45px;
  86. align-items: flex-end;
  87. --layer: -50;
  88. }
  89. #input-container > .port-input-element > * {
  90. min-width: 30px;
  91. max-width: 200px;
  92. }
  93. #input-container > .port-input-element > PropertyField > ColorField,
  94. #input-container > .port-input-element > PropertyField > ObjectField,
  95. #input-container > .port-input-element > PropertyField > CurveField {
  96. margin-top: 0;
  97. margin-bottom: 0;
  98. }
  99. #input-container > .port-input-element > PropertyField > TextField {
  100. min-width: 50px;
  101. }
  102. #input-container > .port-input-element > PropertyField > CurveField {
  103. width: 100px;
  104. }
  105. #input-container > .port-input-element > PropertyField > Vector4Field Label,
  106. #input-container > .port-input-element > PropertyField > Vector3Field Label,
  107. #input-container > .port-input-element > PropertyField > Vector2Field Label,
  108. #input-container > .port-input-element > PropertyField > Vector3IntField Label,
  109. #input-container > .port-input-element > PropertyField > Vector2IntField Label {
  110. font-size: 8px;
  111. min-width: 8px;
  112. flex-basis: 8px;
  113. padding-top: 2px;
  114. margin-right: 1px;
  115. max-height: 150px;
  116. }
  117. #input-container > .port-input-element > PropertyField > Vector4Field FloatInput,
  118. #input-container > .port-input-element > PropertyField > Vector3Field FloatInput,
  119. #input-container > .port-input-element > PropertyField > Vector2Field FloatInput,
  120. #input-container > .port-input-element > PropertyField > Vector3IntField IntegerInput,
  121. #input-container > .port-input-element > PropertyField > Vector2IntField IntegerInput {
  122. min-width: 28px;
  123. }
  124. #input-container > .port-input-element > PropertyField > * .unity-composite-field__field-spacer {
  125. flex-grow: 0.01;
  126. }
  127. #input-container ObjectFieldSelector {
  128. width: 17px;
  129. height: 15px;
  130. border-top-right-radius: 2px;
  131. border-bottom-right-radius: 2px;
  132. }
  133. #input-container ObjectFieldDisplay > Label {
  134. margin-top: 2px;
  135. }
  136. #input-container ObjectFieldDisplay > Image {
  137. margin: 0;
  138. }
  139. #input-container > .port-input-element > PropertyField > ColorField {
  140. width: 60px;
  141. }
  142. #input-container > .port-input-element > * {
  143. margin-left: 2px;
  144. }
  145. #input-container > .port-input-element * {
  146. font-size: 8px;
  147. }
  148. #input-container > .port-input-element {
  149. max-width: 180px;
  150. background-color: rgba(72, 72, 72, 0.6);
  151. margin-top: 3px;
  152. margin-bottom: 2px;
  153. padding-top: 1px;
  154. padding-bottom: 1px;
  155. border-top-left-radius: 4px;
  156. border-bottom-left-radius: 4px;
  157. height: 19px;
  158. overflow: hidden;
  159. padding-right: 1px;
  160. }
  161. #input-container > .port-input-element.empty {
  162. width: 0;
  163. padding: 0;
  164. }
  165. .collapsed #input-container {
  166. visibility: hidden;
  167. }
  168. #input-container {
  169. opacity: 0.6;
  170. }
  171. .node:checked > #input-container {
  172. opacity: 1;
  173. }
  174. #input-container > .port-input-element IntegerInput,
  175. #input-container > .port-input-element FloatInput,
  176. #input-container > .port-input-element TextInput {
  177. border-top-left-radius: 1px;
  178. border-bottom-left-radius: 1px;
  179. border-top-right-radius: 1px;
  180. border-bottom-right-radius: 1px;
  181. padding-bottom: 1px;
  182. height: 15px;
  183. }
  184. #TopPortContainer, #BottomPortContainer
  185. {
  186. align-self: center;
  187. flex-direction: row;
  188. }
  189. #TopPortContainer
  190. {
  191. margin-bottom: -1px;
  192. }
  193. #BottomPortContainer
  194. {
  195. margin-top: -1px;
  196. }
  197. #title-button-container
  198. {
  199. align-items: center;
  200. align-content: center;
  201. }
  202. #collapse-button:
  203. {
  204. width: 16px;
  205. height: 16px;
  206. margin: 4px;
  207. }
  208. /* In Unity 2020.3, we need to manually hide labels of property fields with empty label */
  209. .DrawerField_2020_3 > * > Label
  210. {
  211. display: none;
  212. }