@import "./siteDetails.less";

#appContainer > div {
  height: auto;
}

.siteDetailsPage {
  display: flex;
  padding: 0;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;

  .siteDetailsPageHeader {
    display: flex;
    padding: 24px;
    justify-content: space-between;

    .headerActions {
      float: none;
      align-items: center;

      input.searchInput {
        margin-right: 0 !important;
      }
    }
  }

  .siteDetailsPageContent {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    margin: 0;
    flex: 1;

    .folderView {
      min-width: 220px;
      flex-grow: 1;

      .columnHeader {
        background: linear-gradient(to bottom, @lightGray, @veryLightGray);
        border-top: 1px solid @gray;
        text-align: left;
        font-weight: 300;
        padding: 8px;
        box-sizing: border-box;
        padding-left: 10px;
        -webkit-user-select: none;
        cursor: default;

        .importBrowserData {
          color: @buttonColor;
          float: right;
          font-size: 20px;
          margin: 0;

          &:hover {
            color: #000;
          }
        }
      }

      > .bookmarkFolderList {
        display: block;

        .listItem >* {
          color: @buttonColor;
        }
      }

      .bookmarkFolderList {
        .listItem {
          height: 1rem;
          &.selected >*,
          &.isDragOver >* {
            font-weight: 600;
          }
          &.isDragOver {
            background-color: lighten(@braveOrange, 20%);
          }
        }
        .bookmarkFolderIcon {
          margin-right: 5px;
        }
      }
    }
    .organizeView {
      flex-grow: 5;
      border-left: 1px solid @braveOrange;

      .sortableTable {
        -webkit-user-select: none;
        // Custom title column (has add bookmark icon)
        th:first-of-type > div { display: block; }
        // Bookmark last visited column
        th:nth-of-type(2), td.date { width: 250px; }
        td {
          font-size: 11pt;
          padding-left: 10px;
          white-space: nowrap;
          max-width: 0;
          .bookmarkFavicon {
            display: inline-block;
            margin-right: 5px;
          }
          .bookmarkLocation {
            color: @gray;
            margin-left: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: none;
          }
        }
        .title {
          overflow: hidden;
          text-overflow: ellipsis;
          span {
            vertical-align: middle;
          }

          .bookmarkFavicon {
            width: 16px;
          }

        }
        tr:hover {
          .bookmarkLocation {
            display: inline-block;
          }
        }
        tr.selected:hover {
          .bookmarkLocation {
            color: #fff;
          }
        }
      }
    }
  }

  @media (min-width: @breakpointNarrowViewport) {
    .folderView {
      max-width: 50%;
    }
  }
}

.bookmarkFolderList list >* {
  padding-left: 12px;
}

.addBookmarkFolder {
  background-color: @buttonColor;
  -webkit-mask-image: url('../../img/toolbar/add_BM_folder_btn.svg');
  -webkit-mask-repeat: no-repeat;
  margin-right: 7px;
  width: 24px;
  height: 26px;
  float: right;
}
.addBookmarkFolder:hover {
  background-color: #000;
}
.addBookmark {
  background-color: @buttonColor;
  -webkit-mask-image: url('../../img/toolbar/add_bookmark_btn.svg');
  -webkit-mask-repeat: no-repeat;
  margin-right: 7px;
  width: 20px;
  height: 20px;
  float: right;
}
.addBookmark:hover {
  background-color: #000;
}
