Sha256: d8117e40b49ca807d6c7d846f463301f69b714566d56b6ee580928ea2e22deb1

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

//
// Search input and autocomplete
//

.search {
  display: none;

  @include mq(md) {
    position: relative;
    z-index: 99;
    display: block;
    flex-grow: 1;
    padding-top: $sp-1;
    padding-bottom: $gutter-spacing / 2;
  }
}

.search-results-wrap {
  display: none;

  &.active {
    position: absolute;
    top: $sp-1;
    z-index: 100;
    display: block;
    width: 300px;
    margin-top: $gutter-spacing;
    background: $white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(0, 0, 0, 0.05);
  }
}

.search-input-wrap {
  display: flex;
  background-color: $white;
}

.search-input {
  width: 100%;
  padding-top: $sp-1;
  padding-bottom: $sp-1;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  order: 2;

  &:focus {
    outline: 0;
    box-shadow: none;

    + .search-icon {
      fill: $purple-000;
    }
  }
}

.search-icon {
  align-self: center;
  margin-right: $sp-2;
  fill: $grey-dk-000;
  order: 1;
}

.search-results-list {
  padding-left: 0;
  margin-top: $sp-1;
  margin-bottom: $sp-1;
  list-style: none;
  @include fs-3;
}

.search-results-list-item {
  padding: 0;
  margin: 0;
}

.search-results-link {
  display: block;
  padding-top: $sp-1;
  padding-right: $sp-3;
  padding-bottom: $sp-1;
  padding-left: $sp-3;

  &:hover {
    background-color: $grey-lt-000;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
just-the-docs-0.1.0 _sass/search.scss