index.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. }
  130. .node.StartNode {
  131. //border: solid 5px #000;
  132. //box-sizing: border-box;
  133. background: #005b0b;
  134. }
  135. .node .label {
  136. font-weight: bold;
  137. }
  138. .node .label.StartNode{
  139. color: #9bffa7;
  140. font-weight: bold;
  141. }
  142. .node.Choice {
  143. background: #00293f;
  144. }
  145. .node .label.Choice {
  146. color: #5bc6ff;
  147. font-weight: bold;
  148. }
  149. .node.Node {
  150. border: solid 1px #93008a;
  151. box-shadow:
  152. inset 0 0 50px #fff, /* inner white */
  153. inset 20px 0 80px #f0f, /* inner left magenta short */
  154. inset -20px 0 80px #0ff, /* inner right cyan short */
  155. inset 20px 0 300px #f0f, /* inner left magenta broad */
  156. inset -20px 0 300px #0ff, /* inner right cyan broad */
  157. 0 0 50px #fff, /* outer white */
  158. -10px 0 80px #f0f, /* outer left magenta */
  159. 10px 0 80px #0ff; /* outer right cyan */
  160. }
  161. .node.Node input {background: linear-gradient(to right, #FFF, #c8c8c8); color: #000}
  162. .node .label.Node {color: #3d003a}
  163. .node.Choice {background: #00293f}
  164. .node .label.Choice {color: #5bc6ff}
  165. .node.Text {background: #e5e5e5; height: auto !important;}
  166. .node.Text input {background-color: #FFF; color: #000}
  167. .node .label.Text {color: #383838}
  168. .node.Function {background: #6b0000}
  169. .node.Function input {background-color: #ffbfbf; color: #000}
  170. .node .label.Function {color: #ff4747}
  171. .node.Set {background: #594a00}
  172. .node.Set input {background-color: #ffe97f; color: #000}
  173. .node .label.Set {color: #ffe463}
  174. .node.Branch {background: #700065}
  175. .node.Branch input {background-color: #ff8ef3; color: #000}
  176. .node .label.Branch {color: #ffbcf7}
  177. .node.Tree {background: #445900}
  178. .node.Tree input {background-color: #e5ff91; color: #000}
  179. .node .label.Tree {color: #d0f94a}
  180. .node.GoToLabel {
  181. border: solid 1px #4b0000;
  182. box-shadow:
  183. inset 0 0 50px #fff, /* inner white */
  184. inset 20px 0 80px #c80000, /* inner left magenta short */
  185. inset -20px 0 80px #ec7a00, /* inner right cyan short */
  186. inset 20px 0 300px #c80000, /* inner left magenta broad */
  187. inset -20px 0 300px #ec7a00, /* inner right cyan broad */
  188. 0 0 50px #fff, /* outer white */
  189. -10px 0 80px #c80000, /* outer left magenta */
  190. 10px 0 80px #ec7a00; /* outer right cyan */
  191. }
  192. .node.GoToLabel input {background-color: #ffcdaa; color: #000}
  193. .node .GoToLabel.Tree {color: #ec7f85}
  194. .node input, button, select, textarea
  195. {
  196. /* Enable interacting with inputs only. */
  197. pointer-events: auto;
  198. border: none;
  199. box-sizing: border-box;
  200. background-color: #456;
  201. color: #fff;
  202. }
  203. textarea {
  204. display: block;
  205. resize: none;
  206. width: 100%;
  207. overflow: hidden;
  208. text-align: justify;
  209. padding: 3px;
  210. }
  211. .node .label
  212. {
  213. color: #ddd;
  214. }
  215. button
  216. {
  217. float: right;
  218. border: none;
  219. border-radius: 8px;
  220. font-weight: bold;
  221. width: 16px;
  222. height: 16px;
  223. line-height: 0px;
  224. text-align: middle;
  225. padding: 0;
  226. margin: 0;
  227. cursor: pointer;
  228. }
  229. button.delete:hover
  230. {
  231. background-color: #c0392b;
  232. }
  233. .node button.add:hover
  234. {
  235. background-color: #8c6;
  236. }
  237. .node button.remove:hover
  238. {
  239. background-color: #dc5;
  240. }
  241. .node input, select
  242. {
  243. width: 100%;
  244. padding: 4px;
  245. margin-top: 8px;
  246. display: block;
  247. }
  248. .node
  249. {
  250. color: #fff;
  251. }
  252. /*
  253. Context menu
  254. */
  255. .b-m-mpanel, #menu, #flash
  256. {
  257. background-color: #444;
  258. position: absolute;
  259. z-index: 99997;
  260. -moz-box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
  261. -webkit-box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
  262. box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.5);
  263. }
  264. .b-m-split
  265. {
  266. font-size: 0px;
  267. margin: 2px;
  268. border-bottom: 1px solid #777;
  269. }
  270. .b-m-item, .b-m-ifocus
  271. {
  272. padding: 8px;
  273. line-height: 100%;
  274. }
  275. span
  276. {
  277. -moz-user-select: none;
  278. -webkit-user-select: none;
  279. -ms-user-select: none;
  280. user-select: none;
  281. cursor: default;
  282. }
  283. .b-m-ibody
  284. {
  285. overflow: hidden;
  286. text-overflow: ellipsis;
  287. }
  288. .b-m-ifocus
  289. {
  290. background-color: #000;
  291. }
  292. .editableName {
  293. word-wrap: break-word;
  294. }