@import "../../style/mixins/index";

@tree-default-open-icon: @icon-caret-down;
@tree-showline-open-icon: @icon-minus-square-o; // 框框-
@tree-showline-close-icon: @icon-plus-square-o; // 框框+
@tree-doc-icon: @icon-file; // file

// :before for background
.antTreeBeforeForBackground(@height: @tree-title-height) {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: @height;
  transition: all .3s;
}

.treeOptionSelected {
  color: @option-selected-color;
  &:before {
    background-color: @option-selected-bg;
  }
}

.treeOptionHover {
  color: @option-hover-color;
  &:before {
    background-color: @option-hover-bg;
  }
}

// 提升元素 层叠水平
.improveRenderingOrder {
  position: relative;
  z-index: 1;
}

.antTreeSwitcherIcon(@type: "tree-default-open-icon") {
  &:after {
    .iconfont-size-under-12px(12px);
    display: inline-block;
    .iconfont-font(@@type, 'dtdicon');
    font-weight: bold;
    transition: transform .3s;
  }
}

.antTreeShowLineIcon(@type) {
  &:after {
    .iconfont-size-under-12px(12px);
    display: inline-block;
    .iconfont-font(@@type);
    vertical-align: baseline;
    font-weight: normal;
    transition: transform .3s;
  }
}
