@import (reference) '../extend.less';
@import (reference) './text-color.less';
.yo-tree-layout {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  .ant-layout-sider {
    background-color: @component-background;
    .ant-layout-header {
      height: @layout-header-height - 20px;

      background-color: @component-background;
      .header-actions {
        .ant-input-search {
          margin: (@layout-header-height - 20px - 32px) / 2 @padding-md;
        }
      }
    }
  }
  &--collapsed {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 4;

    transform: translateX(-100%);
    &.open {
      transform: translateX(0);

      box-shadow: 2px 0 8px fade(@black , 20%);
    }
  }
  &--bar {
    line-height: 20px;

    height: 20px;
    padding: 0 @padding-md;

    text-align: right;
    >.anticon {
      margin-left: @padding-xs;

      cursor: pointer;

      color: fade(@white, 50%);
      &:hover {
        color: fade(@white, 80%);
      }
    }
  }
  &--content {
    position: absolute;
    top: @layout-header-height;
    left: 0;
    bottom: 0;

    overflow-y: auto;

    width: 100%;
    &::-webkit-scrollbar {
      width: 5px;
      height: 5px;

      background-color: @component-background;
    }
    &::-webkit-scrollbar-thumb {
      background-color: transparent;
    }
    &:hover::-webkit-scrollbar-thumb {
      background-color: fade(@white, 30%);
    }
    &::-webkit-scrollbar-thumb:active {
      background-color: fade(@white, 45%);
    }
  }
  .ant-tree {
    .text-gray();
  }
}
