index.less 2.03 KB
@tree-line-height: 48px;

.wrap_page {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.scroll_card {
  display: flex;
  height: 90%;
  min-height: 90vh;
}

.pattern_edit {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  visibility: hidden;
}

.pattern_action {
  width: 45px;
  height: 45px;
  cursor: pointer;
}

.tree:hover .pattern_edit {
  visibility: visible;
}

.inside_tree {
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 100%;

  :global {
    .ant-tree {
      flex: 1;
      overflow: auto;
      background: #F7F7F7;
    }

    .ant-tree.ant-tree-directory .ant-tree-treenode::before {
      bottom: 0 !important;
    }

    .ant-tree .ant-tree-treenode {
      height: @tree-line-height;
      padding: 0;
      border-bottom: 1px solid rgba(0, 0, 0, .05);
      //border-bottom: 1px dashed #979797;
    }

    .ant-tree .ant-tree-node-content-wrapper,
    .ant-tree-switcher {
      line-height: @tree-line-height;
    }
  }
}

.tree {
  position: relative;
  display: flex;
  flex: 0 0 350px;
  flex-direction: column;
  height: 100%;
  margin-right: 10px;
}

.tree_action_line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 10px;

  :global {

    .ant-btn-primary[disabled],
    .ant-btn-primary[disabled]:hover,
    .ant-btn-primary[disabled]:focus,
    .ant-btn-primary[disabled]:active {
      color: rgba(255, 255, 255, .55);
      background: rgba(42, 126, 29, .55);
      border-color: #d9d9d9;
      box-shadow: none;
    }
  }
}


.tree_action {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.search {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px
}

.gray_line {
  height: @tree-line-height;
  line-height: @tree-line-height;
  background: #F7F7F7;
}

.dashed_border {
  border-bottom: 1px dashed #979797;
}

.solid_border {
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}