index.css 5.7 KB

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