Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

6.5 KB
Raw Blame
@use "variables";

/* Categories view */
.recent-layers-mobile-header {
  .recent-tooltip-icon {
    position: absolute;
    left: 18px;
    top: 12px;
    font-size: 24px;
    color: #666;
  }

  button {
    top: 10px;
    right: 10px;
    position: absolute;
    padding: 4px 8px;
  }
}

.categories-dropdown-header {
  margin-top: 2px;
  text-align: center;
}

.selected-category {
  margin-bottom: 10px;
}

.categories-dropdown,
.categories-dropdown.show {
  text-align: center;

  button.dropdown-toggle.btn-secondary {
    text-transform: capitalize;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #666;

    .svg-inline--fa {
      margin-right: 4px;
    }

    &:focus,
    &:active {
      border: none;
      background: transparent;
      box-shadow: none;
      color: #666;
    }
  }

  .categories-dropdown-item {
    text-transform: capitalize;
    font-size: 18px;
    padding: 15px 25px;
    color: #333;
  }
}

.categories-dropdown-menu {
  background: #eee;
  color: #333;
}

.categories-nav {
  margin: 0;
  padding: 5px 5px 0 12px;

  & .nav-item {
    height: 31px;
    line-height: 35px;
    margin: 0 8px 0 0;
    color: #383838;
    background: #fff;
    cursor: pointer;
  }

  & .active {
    background: #00457b;

    .nav-link {
      color: #fff;
    }
  }

  & .nav-link {
    color: #333;
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-transform: capitalize;
    border: 0;
    background: 0;
    height: 30px;
    line-height: 30px;
    padding: 1px 15px;
    vertical-align: middle;
    float: left;

    a:hover {
      color: #000 !important;
    }
  }

  & .nav-link:hover {
    text-decoration: none;
  }

  & .category-breadcrumb {
    height: 30px;
    line-height: 30px;
    font-family: "Public Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000;

    & a,
    & a:link,
    & a:visited {
      color: #00f;
    }
  }
}

.category-background-cover {
  min-height: 230px;
  background: rgb(0 0 0 / 40%);
}

.layer-category {
  cursor: pointer;
  background-color: #333;
  width: 310px;
  height: 230px;
  overflow: hidden;
  margin-bottom: 10px;

  & h3 {
    font-size: 18px;
    line-height: 18px;

    & .layer-category-name {
      display: block;
      width: 100%;
      line-height: 20px;
      padding: 10px;
      color: #fff;
      background: variables.$wv-transparent-black;
      text-decoration: none;
      border: none;
      text-align: left;
    }

    & .layer-category-name:hover {
      background: rgb(255 255 255 / 60%);
    }
  }

  & .layer-category-item {
    list-style: none;

    & .layer-category-name {
      display: block;
      padding: 7px 10px;
      width: 100%;
      color: #fff;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      box-sizing: border-box;
      text-decoration: none;
      border: none;
      text-align: left;
      background-color: inherit;
    }

    & .layer-category-name:hover {
      background: rgb(255 255 255 / 60%);
    }
  }
}

.measurement-row {
  & .measure-row-contents {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0 0;

    & .source-metadata {
      padding: 5px;

      & h1,
      h2,
      h3,
      h4,
      h5 {
        color: #333;
      }

      & p {
        color: #444;
      }
    }
  }

  & .source-tabs {
    width: 35%;
    padding-left: 4px;
  }

  & .tab-content {
    width: 65%;
    background: #eee;
  }

  h3.source-orbits-title {
    color: #444;
    font-weight: 700;
    padding: 10px 5px;
  }
}

.measurement-row .measurement-row-header {
  padding: 5px 8px;
  position: relative;
  cursor: pointer;
  min-height: 44px;
  background-color: inherit;
  text-align: left;
  width: 100%;
  border: none;

  & .arrow-icon {
    color: #d54e21;
    width: 30px;
    height: 30px;
    opacity: 0.8;
    font-size: 26px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
}

.measurement-row .source-nav-item {
  cursor: pointer;
  font-family: "Public Sans", sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 8px 6px;

  &.active {
    padding-left: 4px;
    border-left: 4px solid #d54e21;
    border-right: transparent;
    margin-right: -3px;
    color: #000;
    background: #eee;

    &:hover {
      color: #000;
      background: #eee;
      cursor: default;
    }
  }

  &:hover {
    // color: #eee;
    background: #504d4d;
  }

  & .nav-link {
    padding: 0;
  }
}

.measurement-row .source-metadata.overflow {
  height: 300px;
  overflow: hidden;
}

.source-sub-group .list-group-item {
  background: transparent;
  border-color: transparent;
  padding: 6px 5px 6px 10px;
  cursor: pointer;

  &:hover {
    color: #333;
    background: #ddd;
  }

  & .wv-checkbox {
    color: #fff;
    font: 400 13px/13px "Public Sans", sans-serif;
    font-weight: 400;
    display: flex;

    &::before {
      margin-top: 2px;
    }

    .check {
      top: 3px;
    }

    label {
      color: #333;
      padding-left: 5px;
      font-size: 12px;
      height: 26px;
      line-height: 24px;
    }

    label span {
      display: inline-block;
      vertical-align: middle;
      line-height: 14px;
    }

    .chartable-icon-wrapper {
      margin-left: auto;
      order: 2;
    }

    .chartable-icon {
      display: block;
      background: url("../images/layers/charting/charting_icon_filled.svg");
      width: 18px;
      height: 18px;
      margin: 4px;
    }
  }

  &.unavailable {
    & svg.svg-inline--fa {
      color: #999;
      margin: 0 0 0 2px;
      height: 25px;
      width: 16px;
    }

    & .wv-checkbox label {
      color: #999;
    }
  }
}

.layers-all .metadata-more,
.measurement-row .metadata-more {
  display: block;
  height: 22px;
  background: #333;
  border-top: 2px solid #d54e21;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  padding: 0;
  box-shadow: 0 -2px 16px rgb(0 0 0 / 35%);
}

.layers-all .metadata-more:hover,
.layer-modal-content .measurement-row .metadata-more:hover {
  cursor: pointer;
}

.layers-all .metadata-more .ellipsis,
.measurement-row .ellipsis {
  display: block;
  height: 20px;
  background: #d54e21 none repeat scroll 0 0;
  color: #fff;
  line-height: 7px;
  margin: 0 auto;
  font-size: 22px;
  text-align: center;
  font-weight: 800;
  width: 60px;

  &.up {
    line-height: 23px;
  }
}

.layer-btn-close {
  position: relative;
  border: none;
  font-weight: bold;
  color: #666;
  background: none;
  font-size: 30px;
}

.layer-btn-close:hover {
  color: black;
}