$nodeBgColor: #34b29d; $nodeColor: #f5f5f5; $lineC: #34b29d; @mixin flex_center { display: flex; flex-direction: row; justify-content: center; } @mixin flex_center_v { display: flex; justify-content: center; align-items:center } @mixin block_center { display: block; margin: 0 auto; float: left; } @mixin menu { .dropdown-menu { border-color: #049e9a !important; padding: 5px 15px !important; min-width: 100px !important; .dropdown-item { border: none !important; border-bottom: 1px solid #049e9a !important; color: #049e9a !important; padding: 5px 15px !important; &:last-child ,&.last-child{ border: none !important; } &:focus, &:hover { color: #fff !important; background-color: #049e9a !important; } } } } .main-box { position: relative; display: inline-block; top: 10px; left: 12px; width: calc(100% - 24px); height: auto; border: 3px solid #049e9a; border-radius: 5px; overflow: hidden; text-align: center; padding-top: 10px; background: #f0faf9; &.main-flow-box { height: 700px; } &.main-package-box { height: 590px; } } .iwb-flow-tree { $lineW: 8px; $lineH: 6px; margin: 0 auto; .floor-box { width: 100%; @include flex_center; .floor-node { width: 100%; @include block_center; .node-box { position: relative; margin: 0 auto; width: 200px; border-radius: 0; border: none; background: transparent; .title { /*padding: 3px 0;*/ background: transparent; color: $nodeColor; width: 0; height: 0; background: transparent; border: 100px solid transparent; border-top: none; border-bottom: 60px solid $nodeBgColor; cursor: pointer; } .title-text { position: absolute; width: 100%; text-align: center; top: 0; color: $nodeColor; height: 60px; font-size: 12px; font-weight: bold; cursor: none; line-height: 70px; } .content { margin: 0px 12px; flex-direction: column; padding: 5px; border: 1px solid $nodeBgColor; border-top: none; } } } .line-box { width: 100%; @include block_center; .line-group { width: 100%; @include flex_center; .line { @include flex_center; .line-u, .line-d { height: 30px; width: $lineW * 1.5; background: $lineC; } .line-d { position: relative; margin-bottom: $lineH; width: $lineW; &:after { content: ''; position: absolute; border: 8px solid transparent; border-top: 15px solid $lineC; left: calc(50% - 8px); bottom: -15px; } &.line-d-l:before, &.line-d-r:before { content: ''; position: absolute; top: -$lineH; width: $lineW; height: $lineH; background: $lineC; } &.line-d-l:before { left: 0; } &.line-d-r:before { right: 0; } } } .line-m { height: $lineH; background: $lineC; } .line-single { .line-d { height: 72px; } } } } } .setting { margin: 3px 5px; padding: 4px 0 !important; text-align: center; color: #fff; font-size: 100%; border-radius: 3px; cursor: pointer; background: #34b29d; &.path { /*background: #34b29d; text-align: left; padding-left: 15px !important;*/ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px !important; } /* &.scene { background: #70ad47; } &.guide { background: #00b050; } &.pre { background: #54e29d; } &.run { background: #00a7e2; } &.post { background: #5b9bd5; }*/ &.no-setting { background: #a6a6a6; } } @include menu; } .iwb-package-tree { display: flex; flex-direction: column; justify-content: start; width: 100%; .round-box { @include flex_center; height: auto; position: relative; padding-bottom: 20px; &:first-child { padding-bottom: 40px; } .round-node { @include flex_center_v; position: relative; background: $nodeBgColor; color: $nodeColor; width: 50px; height: 50px; border-radius: 50px; z-index: 1; font-weight: 600; &:before { content: ""; position: absolute; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 25px solid $nodeBgColor; left: 10px; top: -25px; } &.start-node { width: auto; height: 40px; white-space: nowrap; padding: 5px 20px; border-radius: 20px; font-size: 1.125rem; &:before { border: none; } } } .block-node { width: 42%; height: auto; display: flex; /*min-height: 150px;*/ border: 2px solid $nodeBgColor; border-radius: 5px; position: relative; margin-top: 10px; --w: 60px; --sw: 170px; --margin: calc(var(--w) - 20px); .title { width: 100%; text-align: center; padding: 2px; font-size: 15px; font-weight: bold; color: $nodeBgColor; /*background-image: linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.18));*/ background: #f2f2f2; border-bottom: 1px solid $nodeBgColor; border-radius: 10px 10px 0 0; .icon { float: right; margin-top: 4px; margin: 4px 5px 4px; color: #00b050; cursor: pointer; } } .content { width: 100%; display: flex; height: 100%; } > .round-setting { width: var(--sw); border-right: 1px solid $nodeBgColor; .content { padding: 5px; flex-direction: column; .setting { .value { padding-left: 5px; } span:last-of-type { float: right; } } } } .tab-box { width: var(--sw); border-left: 1px solid $nodeBgColor; height: 100%; padding: 0; .nav-tabs { padding: 5px; padding-left: 0; height: 198px; flex-wrap: nowrap; overflow-y: auto; border: none; .nav-item { border-bottom: none; .nav-link { color: $nodeBgColor; border: 1px solid $nodeBgColor; border-left: none; height: 35px; border-radius: 0 35px 35px 0; margin: 1px 0; padding-left: 5px; padding-right: 5px; &.active, &:hover, &:focus { background: $nodeBgColor; color: $nodeColor } &:hover { color: #eee; font-weight: bold; } } } } } .tab-content-box { width: calc(100% - var(--sw)) } .block-box { width: 100%; .block-content { width: 100%; display: flex; flex-direction: column; .setting-box { width: 100%; display: flex; padding: 5px; border-bottom: 1px solid $nodeBgColor; .setting { text-align: center; width: 50%; padding: 2px 5px; } } .flow-box { width: 100%; display: flex; flex-direction: column; padding: 5px; height: 142px; .flow-info { margin: 2px 5px; color: $nodeBgColor; display: flex; .flow-name { padding: 3px 15px; border-radius: 35px 0 0 35px; border: 1px solid; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .flow-setting { width: 50px; color: #fff; background: $nodeBgColor; padding: 3px 15px; border-radius: 0 35px 35px 0; cursor: pointer; } } } } } .obj-block-box { width: 100%; } .evolution-block-box { width: 100%; } &:before { content: ""; position: absolute; background: $nodeBgColor; width: var(--w); height: 10px; top: 10px; } &.left { margin-right: var(--margin); .block-box { width: calc(100% - var(--sw)) } &:before { right: calc(0% - var(--w)); } } &.right { margin-left: var(--margin); &:before { left: calc(0% - var(--w)); } } } &:not(:nth-last-of-type(1)) { .line-v { height: calc(100% - 20px); width: 15px; background-color: $nodeBgColor; position: absolute; top: 5px; /*left: calc(50% - 5px);*/ z-index: 0; } } /*&:nth-of-type(1) { .round-node:before { border: none; } }*/ .setting { margin: 2px 5px; padding: 2px 10px; text-align: left; color: #fff; font-size: 90%; border-radius: 3px; cursor: pointer; background: $nodeBgColor; /*&.score { background: #34b29d; } &.rate { background: #70ad47; } &.count { background: #00b050; } &.guide { background: #00c392; } &.pre { background: #00d7e2; } &.run { background: #00a7e2; } &.post { background: #5b9bd5; }*/ &.no-setting { /*color: #ddd;*/ background: #a6a6a6; } } } @include menu; } .flow-detail { a.table-action { color: $nodeBgColor; padding: 2px 0; cursor: pointer; } a.table-action:hover { color: $nodeBgColor; padding: 2px 0; font-weight: bold; border-bottom: 2px solid $nodeBgColor; } .table-striped tbody tr:nth-of-type(odd) { background-color: #f0faf9; } } .package-detail { margin: 0 15px; dl { display: flex; } dl, dt, dd { margin-bottom: 0; cursor:pointer; } dt { white-space: nowrap; } dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }