nodetree.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. $nodeBgColor: #34b29d;
  2. $nodeColor: #f5f5f5;
  3. $lineC: #34b29d;
  4. @mixin flex_center {
  5. display: flex;
  6. flex-direction: row;
  7. justify-content: center;
  8. }
  9. @mixin flex_center_v {
  10. display: flex;
  11. justify-content: center;
  12. align-items:center
  13. }
  14. @mixin block_center {
  15. display: block;
  16. margin: 0 auto;
  17. float: left;
  18. }
  19. @mixin menu {
  20. .dropdown-menu {
  21. border-color: #049e9a !important;
  22. padding: 5px 15px !important;
  23. min-width: 100px !important;
  24. .dropdown-item {
  25. border: none !important;
  26. border-bottom: 1px solid #049e9a !important;
  27. color: #049e9a !important;
  28. padding: 5px 15px !important;
  29. &:last-child ,&.last-child{
  30. border: none !important;
  31. }
  32. &:focus, &:hover {
  33. color: #fff !important;
  34. background-color: #049e9a !important;
  35. }
  36. }
  37. }
  38. }
  39. .main-box {
  40. position: relative;
  41. display: inline-block;
  42. top: 10px;
  43. left: 12px;
  44. width: calc(100% - 24px);
  45. height: auto;
  46. border: 3px solid #049e9a;
  47. border-radius: 5px;
  48. overflow: hidden;
  49. text-align: center;
  50. padding-top: 10px;
  51. background: #f0faf9;
  52. &.main-flow-box {
  53. height: 700px;
  54. }
  55. &.main-package-box {
  56. height: 590px;
  57. }
  58. }
  59. .iwb-flow-tree {
  60. $lineW: 8px;
  61. $lineH: 6px;
  62. margin: 0 auto;
  63. .floor-box {
  64. width: 100%;
  65. @include flex_center;
  66. .floor-node {
  67. width: 100%;
  68. @include block_center;
  69. .node-box {
  70. position: relative;
  71. margin: 0 auto;
  72. width: 200px;
  73. border-radius: 0;
  74. border: none;
  75. background: transparent;
  76. .title {
  77. /*padding: 3px 0;*/
  78. background: transparent;
  79. color: $nodeColor;
  80. width: 0;
  81. height: 0;
  82. background: transparent;
  83. border: 100px solid transparent;
  84. border-top: none;
  85. border-bottom: 60px solid $nodeBgColor;
  86. cursor: pointer;
  87. }
  88. .title-text {
  89. position: absolute;
  90. width: 100%;
  91. text-align: center;
  92. top: 0;
  93. color: $nodeColor;
  94. height: 60px;
  95. font-size: 12px;
  96. font-weight: bold;
  97. cursor: none;
  98. line-height: 70px;
  99. }
  100. .content {
  101. margin: 0px 12px;
  102. flex-direction: column;
  103. padding: 5px;
  104. border: 1px solid $nodeBgColor;
  105. border-top: none;
  106. }
  107. }
  108. }
  109. .line-box {
  110. width: 100%;
  111. @include block_center;
  112. .line-group {
  113. width: 100%;
  114. @include flex_center;
  115. .line {
  116. @include flex_center;
  117. .line-u, .line-d {
  118. height: 30px;
  119. width: $lineW * 1.5;
  120. background: $lineC;
  121. }
  122. .line-d {
  123. position: relative;
  124. margin-bottom: $lineH;
  125. width: $lineW;
  126. &:after {
  127. content: '';
  128. position: absolute;
  129. border: 8px solid transparent;
  130. border-top: 15px solid $lineC;
  131. left: calc(50% - 8px);
  132. bottom: -15px;
  133. }
  134. &.line-d-l:before, &.line-d-r:before {
  135. content: '';
  136. position: absolute;
  137. top: -$lineH;
  138. width: $lineW;
  139. height: $lineH;
  140. background: $lineC;
  141. }
  142. &.line-d-l:before {
  143. left: 0;
  144. }
  145. &.line-d-r:before {
  146. right: 0;
  147. }
  148. }
  149. }
  150. .line-m {
  151. height: $lineH;
  152. background: $lineC;
  153. }
  154. .line-single {
  155. .line-d {
  156. height: 72px;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. .setting {
  163. margin: 3px 5px;
  164. padding: 4px 0 !important;
  165. text-align: center;
  166. color: #fff;
  167. font-size: 100%;
  168. border-radius: 3px;
  169. cursor: pointer;
  170. background: #34b29d;
  171. &.path {
  172. /*background: #34b29d;
  173. text-align: left;
  174. padding-left: 15px !important;*/
  175. overflow: hidden;
  176. text-overflow: ellipsis;
  177. white-space: nowrap;
  178. padding: 4px 10px !important;
  179. }
  180. /*
  181. &.scene {
  182. background: #70ad47;
  183. }
  184. &.guide {
  185. background: #00b050;
  186. }
  187. &.pre {
  188. background: #54e29d;
  189. }
  190. &.run {
  191. background: #00a7e2;
  192. }
  193. &.post {
  194. background: #5b9bd5;
  195. }*/
  196. &.no-setting {
  197. background: #a6a6a6;
  198. }
  199. }
  200. @include menu;
  201. }
  202. .iwb-package-tree {
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: start;
  206. width: 100%;
  207. .round-box {
  208. @include flex_center;
  209. height: auto;
  210. position: relative;
  211. padding-bottom: 20px;
  212. &:first-child {
  213. padding-bottom: 40px;
  214. }
  215. .round-node {
  216. @include flex_center_v;
  217. position: relative;
  218. background: $nodeBgColor;
  219. color: $nodeColor;
  220. width: 50px;
  221. height: 50px;
  222. border-radius: 50px;
  223. z-index: 1;
  224. font-weight: 600;
  225. &:before {
  226. content: "";
  227. position: absolute;
  228. border-left: 15px solid transparent;
  229. border-right: 15px solid transparent;
  230. border-top: 25px solid $nodeBgColor;
  231. left: 10px;
  232. top: -25px;
  233. }
  234. &.start-node {
  235. width: auto;
  236. height: 40px;
  237. white-space: nowrap;
  238. padding: 5px 20px;
  239. border-radius: 20px;
  240. font-size: 1.125rem;
  241. &:before {
  242. border: none;
  243. }
  244. }
  245. }
  246. .block-node {
  247. width: 42%;
  248. height: auto;
  249. display: flex;
  250. /*min-height: 150px;*/
  251. border: 2px solid $nodeBgColor;
  252. border-radius: 5px;
  253. position: relative;
  254. margin-top: 10px;
  255. --w: 60px;
  256. --sw: 170px;
  257. --margin: calc(var(--w) - 20px);
  258. .title {
  259. width: 100%;
  260. text-align: center;
  261. padding: 2px;
  262. font-size: 15px;
  263. font-weight: bold;
  264. color: $nodeBgColor;
  265. /*background-image: linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.18));*/
  266. background: #f2f2f2;
  267. border-bottom: 1px solid $nodeBgColor;
  268. border-radius: 10px 10px 0 0;
  269. .icon {
  270. float: right;
  271. margin-top: 4px;
  272. margin: 4px 5px 4px;
  273. color: #00b050;
  274. cursor: pointer;
  275. }
  276. }
  277. .content {
  278. width: 100%;
  279. display: flex;
  280. height: 100%;
  281. }
  282. > .round-setting {
  283. width: var(--sw);
  284. border-right: 1px solid $nodeBgColor;
  285. .content {
  286. padding: 5px;
  287. flex-direction: column;
  288. .setting {
  289. .value {
  290. padding-left: 5px;
  291. }
  292. span:last-of-type {
  293. float: right;
  294. }
  295. }
  296. }
  297. }
  298. .tab-box {
  299. width: var(--sw);
  300. border-left: 1px solid $nodeBgColor;
  301. height: 100%;
  302. padding: 0;
  303. .nav-tabs {
  304. padding: 5px;
  305. padding-left: 0;
  306. height: 198px;
  307. flex-wrap: nowrap;
  308. overflow-y: auto;
  309. border: none;
  310. .nav-item {
  311. border-bottom: none;
  312. .nav-link {
  313. color: $nodeBgColor;
  314. border: 1px solid $nodeBgColor;
  315. border-left: none;
  316. height: 35px;
  317. border-radius: 0 35px 35px 0;
  318. margin: 1px 0;
  319. padding-left: 5px;
  320. padding-right: 5px;
  321. &.active, &:hover, &:focus {
  322. background: $nodeBgColor;
  323. color: $nodeColor
  324. }
  325. &:hover {
  326. color: #eee;
  327. font-weight: bold;
  328. }
  329. }
  330. }
  331. }
  332. }
  333. .tab-content-box {
  334. width: calc(100% - var(--sw))
  335. }
  336. .block-box {
  337. width: 100%;
  338. .block-content {
  339. width: 100%;
  340. display: flex;
  341. flex-direction: column;
  342. .setting-box {
  343. width: 100%;
  344. display: flex;
  345. padding: 5px;
  346. border-bottom: 1px solid $nodeBgColor;
  347. .setting {
  348. text-align: center;
  349. width: 50%;
  350. padding: 2px 5px;
  351. }
  352. }
  353. .flow-box {
  354. width: 100%;
  355. display: flex;
  356. flex-direction: column;
  357. padding: 5px;
  358. height: 142px;
  359. .flow-info {
  360. margin: 2px 5px;
  361. color: $nodeBgColor;
  362. display: flex;
  363. .flow-name {
  364. padding: 3px 15px;
  365. border-radius: 35px 0 0 35px;
  366. border: 1px solid;
  367. width: 100%;
  368. text-align: center;
  369. white-space: nowrap;
  370. overflow: hidden;
  371. text-overflow: ellipsis;
  372. }
  373. .flow-setting {
  374. width: 50px;
  375. color: #fff;
  376. background: $nodeBgColor;
  377. padding: 3px 15px;
  378. border-radius: 0 35px 35px 0;
  379. cursor: pointer;
  380. }
  381. }
  382. }
  383. }
  384. }
  385. .obj-block-box {
  386. width: 100%;
  387. }
  388. .evolution-block-box {
  389. width: 100%;
  390. }
  391. &:before {
  392. content: "";
  393. position: absolute;
  394. background: $nodeBgColor;
  395. width: var(--w);
  396. height: 10px;
  397. top: 10px;
  398. }
  399. &.left {
  400. margin-right: var(--margin);
  401. .block-box {
  402. width: calc(100% - var(--sw))
  403. }
  404. &:before {
  405. right: calc(0% - var(--w));
  406. }
  407. }
  408. &.right {
  409. margin-left: var(--margin);
  410. &:before {
  411. left: calc(0% - var(--w));
  412. }
  413. }
  414. }
  415. &:not(:nth-last-of-type(1)) {
  416. .line-v {
  417. height: calc(100% - 20px);
  418. width: 15px;
  419. background-color: $nodeBgColor;
  420. position: absolute;
  421. top: 5px;
  422. /*left: calc(50% - 5px);*/
  423. z-index: 0;
  424. }
  425. }
  426. /*&:nth-of-type(1) {
  427. .round-node:before {
  428. border: none;
  429. }
  430. }*/
  431. .setting {
  432. margin: 2px 5px;
  433. padding: 2px 10px;
  434. text-align: left;
  435. color: #fff;
  436. font-size: 90%;
  437. border-radius: 3px;
  438. cursor: pointer;
  439. background: $nodeBgColor;
  440. /*&.score {
  441. background: #34b29d;
  442. }
  443. &.rate {
  444. background: #70ad47;
  445. }
  446. &.count {
  447. background: #00b050;
  448. }
  449. &.guide {
  450. background: #00c392;
  451. }
  452. &.pre {
  453. background: #00d7e2;
  454. }
  455. &.run {
  456. background: #00a7e2;
  457. }
  458. &.post {
  459. background: #5b9bd5;
  460. }*/
  461. &.no-setting {
  462. /*color: #ddd;*/
  463. background: #a6a6a6;
  464. }
  465. }
  466. }
  467. @include menu;
  468. }
  469. .flow-detail {
  470. a.table-action {
  471. color: $nodeBgColor;
  472. padding: 2px 0;
  473. cursor: pointer;
  474. }
  475. a.table-action:hover {
  476. color: $nodeBgColor;
  477. padding: 2px 0;
  478. font-weight: bold;
  479. border-bottom: 2px solid $nodeBgColor;
  480. }
  481. .table-striped tbody tr:nth-of-type(odd) {
  482. background-color: #f0faf9;
  483. }
  484. }
  485. .package-detail {
  486. margin: 0 15px;
  487. dl {
  488. display: flex;
  489. }
  490. dl, dt, dd {
  491. margin-bottom: 0;
  492. cursor:pointer;
  493. }
  494. dt {
  495. white-space: nowrap;
  496. }
  497. dd {
  498. white-space: nowrap;
  499. overflow: hidden;
  500. text-overflow: ellipsis;
  501. }
  502. }