cit-model-analysis.less 2.61 KB
Newer Older
Ken you's avatar
Ken you committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
.cit-model-analysis {
  height: 100%;
  padding: 0 5px 5px;

  .func-elem {
    cursor: pointer;

    &:hover {
      background-color: #f2f2f2;
    }
  }

  > div[class*='-container'] {
    border-radius: 5px;
    border: 1px solid #e4e4e4;
  }

  .left-container {
    width: 250px;
    margin-right: 5px;

    [ui-tree] {
      > .angular-ui-tree-nodes {
        padding: 5px;

        .angular-ui-tree-nodes {
          padding-left: 20px;
        }
      }

      li {
        position: relative;
        margin: 0;
        padding: 10px 0 0 0;
        /* 竖线:高度小1像素,可以是连线不交叉重叠,使用虚线时重叠效果会很明显 */
        &:before {
          content: "";
          position: absolute;
          top: -11px;
          left: -17px;
          width: 1px;
          height: calc(~"100% - 1px");
          border-left: 1px dotted gray;
          z-index: -1;
        }
        /* 横线 */
        &:after {
          content: "";
          position: absolute;
          top: 19px;
          left: -16px;
          width: 16px;
          height: 1px;
          border-bottom: 1px dotted gray;
        }

        > ol > li:last-child > ol:not(.ng-hide):before {
          content: "";
          position: absolute;
          top: -11px;
          left: -17px;
          width: 1px;
          height: calc(~"100% - 1px");
          background-color: white;
        }

        .angular-ui-tree-handle {
          margin-bottom: 0;
        }
      }
      /* 第一层根节点不需要虚线 */
      > ol > li {
        &:before, &:after {
          display: none;
        }
      }
    }

    .tree-node {
      &.tree-item-select {
        background-color: #f16100 !important;
      }
    }

    .angular-ui-tree-empty {
      min-height: 0;
      border: none;
    }
  }

  .right-container {
    width: calc(~"100% - 250px");

    .menu {
      padding: 5px 10px;
      min-height: 54px;
      max-height: 54px;

      strong {
        font-size: 1.15em;
        margin: 0 30px 0 5px;
      }

      .model-type {
        margin-right: 30px;

        span {
          background-color: #f2f2f2;
          cursor: pointer;
          padding: 5px 10px;
        }

        .active {
          background-color: #e0301e;
        }
      }

      .operation-wrapper {
        margin: 0;
        > * {
          cursor: pointer;
          margin-left: 20px;
          outline: none;
        }
      }
    }
  }
}

.cit-model-analysis-dirty-data-process-bar {
  .modal-content {
    margin-top: 50%;
  }
}