123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- $main-color:#fff;
- .path-box {
- width: 100%;
- height: 100%;
- --color: #0094ff;
- --fs: 16px;
- --pt: 5px;
- --minW: 80px;
- .carousel {
- height: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .carousel-inner {
- width: 89%;
- height: auto;
- }
- .carousel-control {
- width: 4.5%;
- &.carousel-control-prev {
- background-image: linear-gradient(rgba(0,0,0,.01),rgba(0,0,0,.2));
- }
- &.carousel-control-next {
- background-image: linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.01));
- }
- }
- }
- .round-box {
- position: relative;
- width: 100%;
- height: auto;
- display: flex;
- justify-content: center;
- padding-bottom: 20px;
- --nodeW: 50px;
- .line-v {
- height: calc(100% - 15px - var(--nodeW));
- width: 10px;
- background-color: var(--color);
- position: absolute;
- top: var(--nodeW);
- left: calc(50% - 4px);
- z-index: 0;
- &:before {
- content: "";
- position: absolute;
- border-left: 10px solid transparent;
- border-right: 10px solid transparent;
- border-top: 20px solid var(--color);
- left: -5px;
- bottom: -15px;
- }
- }
- .round-node {
- position: relative;
- width: var(--nodeW);
- height: var(--nodeW);
- border-radius: 50%;
- color: #fff;
- border: 1px solid var(--color);
- background: var(--color);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1;
- &.start-node {
- width: auto;
- height: calc(var(--nodeW) - 10px);
- white-space: nowrap;
- padding: 5px 20px;
- border-radius: 4px;
- &:before {
- border: none;
- }
- }
- }
- .sfb-box {
- width: 42%;
- min-height: 100px;
- border: 2px solid var(--color);
- border-radius: 5px;
- padding: 0;
- margin-top: 10px;
- --w: calc(4%);
- --sw: 170px;
- --margin: calc(var(--w) );
- &:before {
- content: "";
- position: absolute;
- background: var(--color);
- width: var(--w);
- height: 10px;
- top: calc(var(--nodeW)/2 - 5px)
- }
- .sfb-title {
- width: 100%;
- text-align: center;
- font-size: calc(var(--fs) * 1.2);
- padding: var(--pt) 0;
- font-weight: 600;
- border-bottom: 1px solid var(--color);
- color: #fff;
- background: var(--color);
- border-bottom: 1px solid var(--color);
- }
- .sbf-body {
- padding: var(--pt) 5px;
- font-size: var(--fs);
- .sf-box {
- width: 100%;
- border: 1px solid var(--color);
- border-radius: 3px;
- margin: 5px 0;
- display: flex;
- .sf-name {
- width: auto;
- max-width: var(--minW);
- padding: 3px 5px;
- background: var(--color);
- color: #eee;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- /* flex-wrap: wrap;
- display: flex;
- justify-content: center;
- align-items: center;*/
- }
- .fn-box {
- width: calc(100% - var(--minW));
- display: flex;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- .node {
- --line: 12px;
- position: relative;
- width: var(--line);
- height: var(--line);
- border-radius: 50%;
- border: 2px solid var(--color);
- margin: 0 1px;
- &.end {
- background: var(--color);
- }
- }
- .arrow {
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- width: 10px;
- height: 4px;
- background: var(--color);
- margin-right: 3px;
- &:before {
- content: "";
- position: absolute;
- border-top: 4px solid transparent;
- border-bottom: 4px solid transparent;
- border-left: 7px solid var(--color);
- right: -3px;
- }
- }
- }
- }
- }
- &.left {
- margin-right: calc(var(--margin) - 5px);
- &:before {
- right: calc(50% + var(--nodeW)/2 - 2px);
- }
- }
- &.right {
- margin-left: calc(var(--margin) - 5px);
- &:before {
- left: calc(50% + var(--nodeW)/2 - 2px);
- }
- }
- }
- &:first-child {
- padding-bottom: 40px;
- .line-v {
- height: calc(100% - 15px - var(--nodeW) + 10px);
- top: calc(var(--nodeW) - 10px);
- }
- }
- &.start {
- --color: #049e9a
- }
- &.end {
- --color: #FF3366
- }
- }
- }
|