.fileTree {
  &__tree {
    position: relative;
    &:before {
      position: absolute;
      content: "";
      left: 4px;
      top: 0;
      bottom: 13px;
      border-left: 1px dotted #000;
    }
    &.-subTree {
      margin: 0 0 0.5rem 2rem;
    }

    &.-withTitle {
      margin-left: 0.5rem;
    }
  }
  &__title {
    position: relative;
    left: -0.5rem;
    margin-bottom: 0.15rem;
    padding: 0.25rem 0 0.5rem;
    background: #fff;
  }
  &__branch {
    position: relative;
    &:before {
      position: absolute;
      content: "";
      left: 6px;
      top: 14px;
      width: 1rem;
      border-top: 1px dotted #000;
    }
    &.-isTree {
      &:after {
        position: absolute;
        content: "+";
        top: 9px;
        left: 0;
        width: 9px;
        height: 10px;
        padding-left: 1px;
        background-color: #fff;
        border: 1px solid #000;
        text-align: center;
        line-height: 7px;
        pointer-events: none;
        z-index: 2;
      }
    }
    &.-isOpen {
      &:after {
        content: "-";
      }
    }
  }
  // complicated way to hide the dotted border on the last tree
  &__tree > .fileTree__branch:last-child .fileTree__tree.-subTree:after {
    position: absolute;
    content: "";
    top: -10px;
    bottom: 0;
    width: 3px;
    background: #fff;
    left: calc(-2rem + 3px);
  }
  &__button {
    background: none;
    color: inherit;
    border: none;
    padding: 0.35rem 0 0.5rem 1.5rem;
    font: inherit;
    outline: inherit;
    white-space: nowrap;
  }
}
