.file-list {
  font-family: poppins_regular;
  width: calc(100% - 10px);
  p {
    border-bottom: 1px solid $grey-mid;
    margin: 0;
    padding: 0 0 3px 10px;
    width: calc(100% - 10px);
  }
  ul {
    padding-bottom: .5em;
  }
  &:first-child > p {
    margin: -5px 0 0 0;
  }
  .file-list-size {
    font-style: italic;
  }
  .section {
    .source-file,
    .source-text {
      cursor: pointer;
      list-style: none;
      padding: 2px 0;
      text-indent: 22px;
    }
    .source-text {
      width: calc(100% - 77px); // 77  being button file- rename right(36) + its width(17) + text-indent(22) + extra padding (2)
      display: inline-block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-indent: 0;
      &:hover {
        @extend .word-breakable;
      }
    }
    .source-file {
      position: relative;
      &:hover {
        background: rgba(255, 255, 0, 0.2);
      }
      &::before {
        content: ">";
        left: -10px;
        position: absolute;
        top: 5px;
      }
    }
    &.is-dir {
      >.sub-file-list{
        padding-left: 12px;
        >li>ul {
          padding-left: 13px;
          padding-bottom: 0;
        }
        >.source-file {
          &:hover {
            background-color: inherit;
          }
          .source-text {
            text-indent: 12px;
            padding:0;
          }
          .source-text {
            width: calc(100% - 55px); // 55  being button file- rename right(36) + its width(17) + extra padding (2)
          }
          > .source-text {
            text-indent: 0px;
            &::before {
              content: "-";
            }
          }
          &::before {
            content: "";
          }
        }
      }
      .source-file {
        position: relative;
        text-indent: 0px;
        padding-left: 0;
        &:hover {
          background: rgba(255, 255, 0, 0.2);
        }
        &::before {
          content: ">";
          left: 0;
          position: absolute;
          top: 3px;
        }
      }
    }
  }
  button {
    border: 0;
    height: 20px;
    position: absolute;
    top: 0;
    width: 15px;
    &.file-{
      background-size: 100% 80%;
      &rename {
        background: transparent url(../images/icons/rename_inactive.svg) no-repeat center;
        right: 36px;
        width: 17px;
        &:hover {
          background: transparent url(../images/icons/rename_active.svg) no-repeat center;
        }
      }
      &new {
        background: transparent url(../images/icons/file_inactive.svg) no-repeat center;
        background-size: contain;
        height: 15px;
        right: 18px;
        top: 3px;
        &:hover {
          background-image: url(../images/icons/file_active.svg);
        }
      }
      &download {
        background: transparent url(../images/icons/download_inactive.svg) no-repeat center;
        height: 18px;
        right: 18px;
        top: 2px;
        &:hover {
          background: transparent url(../images/icons/download_active.svg) no-repeat center;
        }
      }
      &delete {
        background: transparent url(../images/icons/trash_inactive.svg) no-repeat center;
        height: 16px;
        right: 0;
        top: 2px;
        &:hover {
          background: transparent url(../images/icons/trash_active.svg) no-repeat center;
        }
      }
    }
  }
}
