index.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. html, body
  2. {
  3. padding: 0px;
  4. color: #fff;
  5. margin: 0px;
  6. font-family: sans-serif;
  7. font-size: small;
  8. background: #7d8ea2; /* Old browsers */
  9. background: -moz-linear-gradient(top, #7d8ea2 0%, #121413 100%); /* FF3.6+ */
  10. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7d8ea2), color-stop(100%,#121413)); /* Chrome,Safari4+ */
  11. background: -webkit-linear-gradient(top, #7d8ea2 0%,#121413 100%); /* Chrome10+,Safari5.1+ */
  12. background: -o-linear-gradient(top, #7d8ea2 0%,#121413 100%); /* Opera 11.10+ */
  13. background: -ms-linear-gradient(top, #7d8ea2 0%,#121413 100%); /* IE10+ */
  14. background: linear-gradient(to bottom, #7d8ea2 0%,#121413 100%); /* W3C */
  15. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7d8ea2', endColorstr='#121413',GradientType=0 ); /* IE6-9 */
  16. overflow: hidden;
  17. }
  18. #container
  19. {
  20. overflow: scroll;
  21. }
  22. #paper
  23. {
  24. position: relative;
  25. display: inline-block;
  26. background: transparent;
  27. background-image: url(g/grid.png);
  28. }
  29. #paper svg
  30. {
  31. background: transparent;
  32. }
  33. #paper svg .link
  34. {
  35. z-index: 2;
  36. }
  37. #menu
  38. {
  39. position: absolute;
  40. display: none;
  41. width: 40%;
  42. z-index: 10000;
  43. padding: 8px;
  44. cursor: pointer;
  45. }
  46. #menu div
  47. {
  48. clear: right;
  49. padding: 4px;
  50. margin-left: 20px;
  51. margin-right: 20px;
  52. border-bottom: 1px solid #ccc;
  53. }
  54. #menu div:hover
  55. {
  56. background-color: black;
  57. }
  58. #flash
  59. {
  60. position: absolute;
  61. top: 10px;
  62. left: 10px;
  63. padding: 8px;
  64. font-weight: bold;
  65. display: none;
  66. }
  67. /*
  68. Editor tools
  69. */
  70. .marker-target
  71. {
  72. fill: #fff;
  73. stroke-width: 0;
  74. }
  75. .marker-vertex
  76. {
  77. fill: #fff;
  78. }
  79. .marker-vertex:hover
  80. {
  81. fill: #000;
  82. stroke: none;
  83. }
  84. .marker-arrowhead
  85. {
  86. fill: #fff;
  87. stroke: none;
  88. }
  89. .marker-arrowhead:hover
  90. {
  91. fill: #000;
  92. }
  93. .link-tools .tool-remove circle
  94. {
  95. fill: #c0392b;
  96. }
  97. .connection
  98. {
  99. stroke: #fff;
  100. }
  101. .inPorts circle
  102. {
  103. fill: #c0392b;
  104. stroke-width: 0;
  105. }
  106. .outPorts circle
  107. {
  108. fill: #8c6;
  109. stroke-width: 0;
  110. }
  111. .port-label
  112. {
  113. display: none;
  114. }
  115. /*
  116. Node styles
  117. */
  118. .node
  119. {
  120. position: absolute;
  121. background: #666;
  122. /* Make sure events are propagated to the JointJS element so, e.g. dragging works.*/
  123. pointer-events: none;
  124. -webkit-user-select: none;
  125. padding: 8px;
  126. box-sizing: border-box;
  127. z-index: 2;
  128. height: auto !important;
  129. border: solid 1px #000;
  130. }
  131. .node.StartNode {
  132. //border: solid 5px #000;
  133. //box-sizing: border-box;
  134. background: #005b0b;
  135. }
  136. .node .label {
  137. font-weight: bold;
  138. }
  139. .node .label.StartNode{
  140. color: #9bffa7;
  141. font-weight: bold;
  142. }
  143. .node.Choice {
  144. background: #00293f;
  145. }
  146. .node .label.Choice {
  147. color: #5bc6ff;
  148. font-weight: bold;
  149. }
  150. .node.Node {
  151. border: solid 1px #93008a;
  152. box-shadow:
  153. inset 0 0 50px #fff, /* inner white */
  154. inset 20px 0 80px #f0f, /* inner left magenta short */
  155. inset -20px 0 80px #0ff, /* inner right cyan short */
  156. inset 20px 0 300px #f0f, /* inner left magenta broad */
  157. inset -20px 0 300px #0ff, /* inner right cyan broad */
  158. 0 0 50px #fff, /* outer white */
  159. -10px 0 80px #f0f, /* outer left magenta */
  160. 10px 0 80px #0ff; /* outer right cyan */
  161. }
  162. .node.Node input {background: linear-gradient(to right, #FFF, #c8c8c8); color: #000}
  163. .node .label.Node {color: #3d003a}
  164. .node.Choice {background: #00293f}
  165. .node .label.Choice {color: #5bc6ff}
  166. .node.Text {background: #e5e5e5; height: auto !important;}
  167. .node.Text input {background-color: #FFF; color: #000}
  168. .node .label.Text {color: #383838}
  169. .node.Function {background: #6b0000}
  170. .node.Function input {background-color: #ffbfbf; color: #000}
  171. .node .label.Function {color: #ff4747}
  172. .node.Set {background: #594a00}
  173. .node.Set input {background-color: #ffe97f; color: #000}
  174. .node .label.Set {color: #ffe463}
  175. .node.Branch {background: #700065}
  176. .node.Branch input {background-color: #ff8ef3; color: #000}
  177. .node .label.Branch {color: #ffbcf7}
  178. .node.Tree {background: #445900}
  179. .node.Tree input {background-color: #e5ff91; color: #000}
  180. .node .label.Tree {color: #d0f94a}
  181. .node.GoToLabel {
  182. border: solid 1px #4b0000;
  183. box-shadow:
  184. inset 0 0 50px #fff, /* inner white */
  185. inset 20px 0 80px #c80000, /* inner left magenta short */
  186. inset -20px 0 80px #ec7a00, /* inner right cyan short */
  187. inset 20px 0 300px #c80000, /* inner left magenta broad */
  188. inset -20px 0 300px #ec7a00, /* inner right cyan broad */
  189. 0 0 50px #fff, /* outer white */
  190. -10px 0 80px #c80000, /* outer left magenta */
  191. 10px 0 80px #ec7a00; /* outer right cyan */
  192. }
  193. .node.GoToLabel input {background-color: #ffcdaa; color: #000}
  194. .node .GoToLabel.Tree {color: #ec7f85}
  195. .node input, button, select, textarea
  196. {
  197. /* Enable interacting with inputs only. */
  198. pointer-events: auto;
  199. border: none;
  200. box-sizing: border-box;
  201. background-color: #456;
  202. color: #fff;
  203. }
  204. textarea {
  205. display: block;
  206. resize: none;
  207. width: 100%;
  208. overflow: hidden;
  209. text-align: justify;
  210. padding: 3px;
  211. }
  212. .node .label
  213. {
  214. color: #ddd;
  215. }
  216. button
  217. {
  218. float: right;
  219. border: none;
  220. border-radius: 8px;
  221. font-weight: bold;
  222. width: 16px;
  223. height: 16px;
  224. line-height: 0px;
  225. text-align: middle;
  226. padding: 0;
  227. margin: 0;
  228. cursor: pointer;
  229. }
  230. button.delete:hover
  231. {
  232. background-color: #c0392b;
  233. }
  234. .node button.add:hover
  235. {
  236. background-color: #8c6;
  237. }
  238. .node button.remove:hover
  239. {
  240. background-color: #dc5;
  241. }
  242. .node input, select
  243. {
  244. width: 100%;
  245. padding: 4px;
  246. margin-top: 8px;
  247. display: block;
  248. }
  249. .node
  250. {
  251. color: #fff;
  252. }
  253. /*
  254. Context menu
  255. */
  256. .b-m-mpanel, #menu, #flash
  257. {
  258. background-color: #444;
  259. position: absolute;
  260. z-index: 99997;
  261. -moz-box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
  262. -webkit-box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
  263. box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
  264. }
  265. .b-m-split
  266. {
  267. font-size: 0px;
  268. margin: 2px;
  269. border-bottom: 1px solid #777;
  270. }
  271. .b-m-item, .b-m-ifocus
  272. {
  273. padding: 8px;
  274. line-height: 100%;
  275. }
  276. span
  277. {
  278. -moz-user-select: none;
  279. -webkit-user-select: none;
  280. -ms-user-select: none;
  281. user-select: none;
  282. cursor: default;
  283. }
  284. .b-m-ibody
  285. {
  286. overflow: hidden;
  287. text-overflow: ellipsis;
  288. }
  289. .b-m-ifocus
  290. {
  291. background-color: #000;
  292. }
  293. .editableName {
  294. word-wrap: break-word;
  295. }