Sha256: 2e239e43af33b493eb91acc623895685ee60214856e9affe082e86a2dd36ee61

Contents?: true

Size: 1.76 KB

Versions: 37

Compression:

Stored size: 1.76 KB

Contents

$quick-search-width: 800px;

.Nxd-search {
  @extend .clearfix;
  background: white;
  position: absolute;
  box-shadow: $shadow;
  width: $quick-search-width;
  right: 0;
  margin-top: 115px;
  border-radius: 8px;
  z-index: 5;
  overflow: hidden;

  @include media-query($max-width: $quick-search-width + ($spacing * 2)) {
    width: calc(100vw - #{$spacing * 2});
  }

  @media #{$S-only} {
    position: relative;
  }
}

.Nxd-search--no-results {
  padding-left: $spacing;
}

.Nxd-search__wrapper { 
  display: flex;
  flex-wrap: wrap;
  margin-right: -1px;
}

.Nxd-search__result {
  overflow: hidden;
  border-bottom: 1px solid $grey-light;

  .Nxd-search__result__link {
    display: block;
    padding: $spacing/2 $spacing $spacing/2;

    &:hover {
      background: $grey-lighter;
    }

    &:focus {
      background-color: rgba(0,0,0,0.1);
    }

    h6 {
      font-weight: 900;
    }
  }

  .Nxd-search__result__highlight {
    color: $grey-dark;
    font-size: 0.85em;

    em {
      color: $red;
      font-weight: 700;
    }
  }

  .Nxd-search__result__desc {
    overflow: hidden;
    color: $black;
    font-size: 0.85em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .meta {
    background: lighten($stone-light, 25%);
    padding: 2px 5px;
    display: inline-block;
    border-radius: $radius;
  }
}

.Nxd-search__results {
  flex: 1;
  width: 50%;
  padding: $spacing 0;
  border-right: 1px solid $grey-light;
  min-width: 280px;

  .Nx-search__title {
    padding-left: $spacing;
  }
}

.Nxd-search__clear {
  height: 38px;
  position: absolute;
  right: 4px;
  top: 7px;
  padding: 5px;
  font-size: 17px;
  fill: $grey;
  cursor: pointer;
  width: 25px;

  &:hover {
    fill: $red;
  }
}

.Nxd-search__badge {
  margin-left: 0;
}

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
station-0.4.0 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.3.2 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.3.1 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.3.0 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.6 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.5 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.4 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.3 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.2 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.1 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.2.0 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.8 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.7 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.6 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.5 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.4 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.3 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.2 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.1 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss
station-0.1.0 lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss