path.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. $main-color:#fff;
  2. .path-box {
  3. width: 100%;
  4. height: 100%;
  5. --color: #0094ff;
  6. --fs: 16px;
  7. --pt: 5px;
  8. --minW: 80px;
  9. .carousel {
  10. height: 100%;
  11. display: flex;
  12. flex-direction: column;
  13. justify-content: center;
  14. align-items: center;
  15. .carousel-inner {
  16. width: 89%;
  17. height: auto;
  18. }
  19. .carousel-control {
  20. width: 4.5%;
  21. &.carousel-control-prev {
  22. background-image: linear-gradient(rgba(0,0,0,.01),rgba(0,0,0,.2));
  23. }
  24. &.carousel-control-next {
  25. background-image: linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.01));
  26. }
  27. }
  28. }
  29. .round-box {
  30. position: relative;
  31. width: 100%;
  32. height: auto;
  33. display: flex;
  34. justify-content: center;
  35. padding-bottom: 20px;
  36. --nodeW: 50px;
  37. .line-v {
  38. height: calc(100% - 15px - var(--nodeW));
  39. width: 10px;
  40. background-color: var(--color);
  41. position: absolute;
  42. top: var(--nodeW);
  43. left: calc(50% - 4px);
  44. z-index: 0;
  45. &:before {
  46. content: "";
  47. position: absolute;
  48. border-left: 10px solid transparent;
  49. border-right: 10px solid transparent;
  50. border-top: 20px solid var(--color);
  51. left: -5px;
  52. bottom: -15px;
  53. }
  54. }
  55. .round-node {
  56. position: relative;
  57. width: var(--nodeW);
  58. height: var(--nodeW);
  59. border-radius: 50%;
  60. color: #fff;
  61. border: 1px solid var(--color);
  62. background: var(--color);
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. z-index: 1;
  67. &.start-node {
  68. width: auto;
  69. height: calc(var(--nodeW) - 10px);
  70. white-space: nowrap;
  71. padding: 5px 20px;
  72. border-radius: 4px;
  73. &:before {
  74. border: none;
  75. }
  76. }
  77. }
  78. .sfb-box {
  79. width: 42%;
  80. min-height: 100px;
  81. border: 2px solid var(--color);
  82. border-radius: 5px;
  83. padding: 0;
  84. margin-top: 10px;
  85. --w: calc(4%);
  86. --sw: 170px;
  87. --margin: calc(var(--w) );
  88. &:before {
  89. content: "";
  90. position: absolute;
  91. background: var(--color);
  92. width: var(--w);
  93. height: 10px;
  94. top: calc(var(--nodeW)/2 - 5px)
  95. }
  96. .sfb-title {
  97. width: 100%;
  98. text-align: center;
  99. font-size: calc(var(--fs) * 1.2);
  100. padding: var(--pt) 0;
  101. font-weight: 600;
  102. border-bottom: 1px solid var(--color);
  103. color: #fff;
  104. background: var(--color);
  105. border-bottom: 1px solid var(--color);
  106. }
  107. .sbf-body {
  108. padding: var(--pt) 5px;
  109. font-size: var(--fs);
  110. .sf-box {
  111. width: 100%;
  112. border: 1px solid var(--color);
  113. border-radius: 3px;
  114. margin: 5px 0;
  115. display: flex;
  116. .sf-name {
  117. width: auto;
  118. max-width: var(--minW);
  119. padding: 3px 5px;
  120. background: var(--color);
  121. color: #eee;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. white-space: nowrap;
  125. /* flex-wrap: wrap;
  126. display: flex;
  127. justify-content: center;
  128. align-items: center;*/
  129. }
  130. .fn-box {
  131. width: calc(100% - var(--minW));
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. flex-wrap: wrap;
  136. .node {
  137. --line: 12px;
  138. position: relative;
  139. width: var(--line);
  140. height: var(--line);
  141. border-radius: 50%;
  142. border: 2px solid var(--color);
  143. margin: 0 1px;
  144. &.end {
  145. background: var(--color);
  146. }
  147. }
  148. .arrow {
  149. display: flex;
  150. justify-content: center;
  151. align-items: center;
  152. position: relative;
  153. width: 10px;
  154. height: 4px;
  155. background: var(--color);
  156. margin-right: 3px;
  157. &:before {
  158. content: "";
  159. position: absolute;
  160. border-top: 4px solid transparent;
  161. border-bottom: 4px solid transparent;
  162. border-left: 7px solid var(--color);
  163. right: -3px;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. &.left {
  170. margin-right: calc(var(--margin) - 5px);
  171. &:before {
  172. right: calc(50% + var(--nodeW)/2 - 2px);
  173. }
  174. }
  175. &.right {
  176. margin-left: calc(var(--margin) - 5px);
  177. &:before {
  178. left: calc(50% + var(--nodeW)/2 - 2px);
  179. }
  180. }
  181. }
  182. &:first-child {
  183. padding-bottom: 40px;
  184. .line-v {
  185. height: calc(100% - 15px - var(--nodeW) + 10px);
  186. top: calc(var(--nodeW) - 10px);
  187. }
  188. }
  189. &.start {
  190. --color: #049e9a
  191. }
  192. &.end {
  193. --color: #FF3366
  194. }
  195. }
  196. }