@import '/src/assets/styles/responsive-base.scss';

:host {
  display: contents;
}

@include screen('desktop') {
  .mobile-view {
    display: none;
  }

  :host > tr {
    td {
      padding: 2px 4px;
      white-space: nowrap;
      vertical-align: middle;

      span {
        display: flex;
        height: 100%;
        vertical-align: middle;
        align-items: center;
        justify-content: center;
      }
    }

    td:first-of-type {
      padding-left: 8px;
    }

    td:last-of-type {
      padding-right: 8px;
    }

    cursor: context-menu;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
  }

  :host .mdi {
    font-size: 20px;
    width: 20px;
    height: 20px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    cursor: pointer;
  }

  .file-name {
    text-align: left;
    overflow: hidden;
    position: relative;
    width: 100%;

    span {
      position: absolute;
      top: 0;
      white-space: nowrap;
    }
  }

  .file-image {
    min-width: 20px;
  }
}
@include screen('phone') {
  .desktop-view {
    display: none;
  }

  :host > tr {
    td {
      padding: 6px;
      white-space: nowrap;
      vertical-align: middle;
      height: 40px;

      span {
        display: flex;
        vertical-align: middle;
        align-items: center;
        justify-content: center;
      }
    }

    td:first-of-type {
      padding-left: 8px;
    }

    td:last-of-type {
      padding-right: 8px;
    }

    cursor: context-menu;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
  }

  :host .mdi {
    font-size: 48px;
    width: 48px;
    height: 48px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    cursor: pointer;
  }

  .file-name {
    width: 100%;

    .file-name-content {
      width: 100%;
      display: flex;
      flex-direction: column;

      div {
        height: 20px;
        flex: 1 1 auto;
        overflow: hidden;
        position: relative;
        text-align: left;
        width: 100%;

        span {
          position: absolute;
          top: 0;
          white-space: nowrap;
        }
      }
    }
  }

  .file-image {
    min-width: 48px;
  }
}
