progress.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. .cell{
  2. overflow: hidden;
  3. position: relative;
  4. }
  5. .cell .main-header {margin-bottom: 0;}
  6. #graph {
  7. position: relative;
  8. height: 100%;
  9. overflow: overlay;
  10. }
  11. #editor {
  12. position: relative;
  13. display: inline-flex;
  14. flex-direction: column;
  15. align-items: center;
  16. padding: 10px 10px;
  17. min-height: 100%;
  18. min-width: 100%;
  19. }
  20. .editor-node.start .editor-node-container {
  21. background: #43a047;
  22. }
  23. .editor-node.end .editor-node-container {
  24. background: #a9b4cd;
  25. }
  26. .editor-node.doing .editor-node-container {
  27. background: #c94040!important;
  28. }
  29. .editor-node-container {
  30. position: relative;
  31. display: flex;
  32. flex-direction: column;
  33. width: 200px;
  34. border-radius: 8px;
  35. overflow: hidden;
  36. z-index: 100;
  37. }
  38. .editor-node.branch>.nodes {
  39. display: flex;
  40. color: #aaa;
  41. flex-direction: column;
  42. align-items: center;
  43. }
  44. .editor-node.approval, .editor-node.cc, .editor-node.condition, .editor-node.end, .editor-node.start {
  45. position: relative;
  46. width: 150px;
  47. height: 72px;
  48. }
  49. .editor-node.end .editor-node-container, .editor-node.start .editor-node-container {
  50. background: #a9b4cd;
  51. }
  52. .editor-node-container .node-title {
  53. display: flex;
  54. justify-content: space-between;
  55. font-size: 12px;
  56. padding: 3px 13px;
  57. }
  58. .editor-node-container .node-content {
  59. margin: 2px;
  60. padding: 7px 6px 7px 7px;
  61. border-radius: 4px;
  62. font-size: 14px;
  63. color: #fff;
  64. cursor: pointer;
  65. }
  66. .editor-node.approval .bottom-v-line, .editor-node.cc .bottom-v-line, .editor-node.condition .bottom-v-line, .editor-node.end .bottom-v-line, .editor-node.start .bottom-v-line {
  67. position: absolute;
  68. bottom: 0;
  69. left: 75px;
  70. height: 50px;
  71. width: 2px;
  72. background-color: #c2c5cc;
  73. }
  74. .editor-node.route {
  75. display: flex;
  76. flex-direction: column;
  77. }
  78. .editor-node.route .editor-node.branch>.bottom-v-line {
  79. display: block;
  80. width: 2px;
  81. background-color: #c2c5cc;
  82. flex-grow: 1;
  83. }
  84. .editor-node.route .editor-node.branch:first-child>.bottom-line-mask {
  85. bottom: -2px;
  86. left: 0;
  87. }
  88. .editor-node.route .editor-node.branch:last-child>.bottom-line-mask {
  89. bottom: -2px;
  90. right: 0;
  91. }
  92. .editor-node.route>.branches {
  93. display: flex;
  94. justify-content: center;
  95. }
  96. .editor-node.branch {
  97. position: relative;
  98. display: inline-flex;
  99. flex-direction: column;
  100. align-items: center;
  101. padding: 0 50px;
  102. min-height: 100%;
  103. }
  104. .editor-node.route>.top-h-line {
  105. height: 2px;
  106. background-color: #c2c5cc;
  107. margin-bottom: -15px;
  108. }
  109. .editor-node.route .editor-node.branch:first-child>.bottom-line-mask, .editor-node.route .editor-node.branch:first-child>.top-line-mask, .editor-node.route .editor-node.branch:last-child>.bottom-line-mask, .editor-node.route .editor-node.branch:last-child>.top-line-mask {
  110. display: block;
  111. position: absolute;
  112. width: 50%;
  113. height: 2px;
  114. background-color: #fff;
  115. }
  116. .editor-node.route .editor-node.branch:first-child>.top-line-mask {
  117. top: 13px;
  118. left: 0;
  119. }
  120. #root .branch .condition
  121. {
  122. position: relative;
  123. width: 150px;
  124. height: 50px;
  125. }
  126. #root .branch .condition.short
  127. {
  128. height: 0;
  129. }
  130. #root .branch .condition .bottom-v-line
  131. {
  132. position: absolute;
  133. bottom: 0;
  134. left: 74px;
  135. height: 37px;
  136. width: 2px;
  137. background-color: #c2c5cc;
  138. }
  139. .editor-node.route .editor-node.branch:last-child>.top-line-mask {
  140. top: 13px;
  141. right: 0;
  142. }
  143. .editor-node.approval {
  144. position: relative;
  145. width: 150px;
  146. height: 75px;
  147. }
  148. .editor-node.approval .editor-node-container {
  149. background-color: #407ef4;
  150. }
  151. .editor-node.cc .editor-node-container {
  152. background-color: #66b696;
  153. }
  154. .editor-node.condition .node-title {
  155. color: #2eb795;
  156. line-height: 20px;
  157. padding-right: 4px;
  158. border-bottom: 1px solid #f6f6f7;
  159. }
  160. .editor-node .node-title {
  161. display: flex;
  162. justify-content: space-between;
  163. font-size: 12px;
  164. padding: 3px 13px;
  165. color: #ffffff;
  166. }
  167. .editor-node.condition .node-title-priority {
  168. padding-right: 4px;
  169. flex-shrink: 0;
  170. flex-grow: 1;
  171. text-align: right;
  172. margin-left: 5px;
  173. }
  174. .editor-node.approval .editor-node-container, .editor-node.cc .editor-node-container, .editor-node.condition .editor-node-container, .editor-node.end .editor-node-container, .editor-node.start .editor-node-container {
  175. position: absolute;
  176. top: 0;
  177. left: 0;
  178. width: 150px;
  179. max-height: 92px;
  180. z-index: 2;
  181. }
  182. .editor-node.has-error .editor-node-container {
  183. border: 1px solid #ff5b4c;
  184. box-shadow: 0 0 3px 0 #ff5b4c;
  185. }
  186. .editor-node.condition .editor-node-container {
  187. background: #fff;
  188. }
  189. .node-btns button {
  190. border: transparent;
  191. background: #fff;
  192. }
  193. .editor-node.route>.bottom-h-line {
  194. height: 2px;
  195. background-color: #c2c5cc;
  196. }
  197. .editor-node.route>.bottom-v-line {
  198. height: 36px;
  199. width: 2px;
  200. background-color: #c2c5cc;
  201. align-self: center;
  202. }
  203. .node-detail-item {
  204. white-space: nowrap;
  205. }
  206. .start .node-detail-item, .end .node-detail-item {
  207. text-align: center;
  208. }
  209. .file {padding-top: 2px;}
  210. ul.files-list {margin-bottom: unset}
  211. .files-list>li>a {display: inline; word-wrap: break-word;}
  212. .files-list>li>.right-icon {opacity: 1;}
  213. .fileAction {color: #0c64eb !important;}
  214. .renameFile {display: flex;}
  215. .renameFile .input-group {margin-left: 10px;}
  216. .renameFile .icon {margin-top: 8px;}
  217. .renameFile .input-group-addon {width: 60px;}
  218. .backgroundColor {background: #eff5ff; }
  219. .icon.icon-file-text {padding-left: 7px}
  220. .right-icon .btn {padding: 0 6px;}