<commit_before>$search-icon-width: 35px;


// 
// Search form
// ----------------------

// Search form
.search-form {
  @extend .form-inline;
  border: none;
  padding: 0;

  .input-group {
    width: 100%;

    .search-site & {
      width: auto;
    }
  }

  .form-control-search-icon {
    display: none;
  }

  .form-group {
    margin-bottom: 0;
  }
}

.search-form label {
  font-weight: normal;
  @extend .form-group;
}
.search-form .search-field {
  @extend .form-control;
}
.search-form button[type="submit"] {
  line-height: 1.45em;
}

// Search page form styles

body.search-active-lite {
  #wrapper-search {
    position: relative;
  }

  ul.search-autosuggest {
    background: $white;
    padding-bottom: 20px;
    padding-right: 20px;
    position: absolute;
    width: 100%;
    z-index: 1;
  }
}

//
// Proud autocomplete search
// -------------------------

.search-autosuggest-wrap {
  display: none;
  @include webkit-scrollbar($gray-dark, $white, 5px);
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: 80%;

  .csscalc & {
    max-height: calc(100% - 40px);
  }

  body.search-active &, body.search-active-lite & {
    display: block;
  } 
}

ul.search-autosuggest {
  padding: 10px 0 0 0;
  color: $gray-base;

  li {
    list-style: none;
    clear: left;
  }

  a.result-link {
    color: $gray-base;
    display: block;
    text-decoration: none;
    min-height: 2em;
    line-height: 1.5em;
    // float: left;
    padding: 10px 0 10px $search-icon-width;
    position: relative!important;

    &:hover {
      color: $brand-primary;
    }

    i {
      font-size: 1.5em;
      display: block;
      text-align: center;
      position: absolute!important;
      left: 0;
      top: 10px;
      width: $search-icon-width;
    }
  }

  .search-autosuggest-content {
    margin-left: 3em;
  }
}



// 
// Results
// ----------------------

.search-teaser {
  // Seeing some bad results overflowing. @TODO fix text processing
  overflow: hidden;

  &:first-child {
    padding-top: 10px;
  }

  .search-title {
    position: relative;
    padding-left: $search-icon-width;
    padding-bottom: 10px;

    i {
      font-size: 1.5em;
      left: 0;
      position: absolute;
      text-align: center;
      top: -2px;
      width: $search-icon-width;
    }
  }
}

//
// Elastic Multi-site
// -------------------------

.entry-title, .search-teaser, ul.search-autosuggest {
  .title-span {
    display: block;
  }
}

.external-post .entry-title a {
  &:hover {
    text-decoration: none;

    .title-span {
      text-decoration: underline;<commit_msg>elasticpress search teaser work<commit_after>$search-icon-width: 35px;


// 
// Search form
// ----------------------

// Search form
.search-form {
  @extend .form-inline;
  border: none;
  padding: 0;

  .input-group {
    width: 100%;

    .search-site & {
      width: auto;
    }
  }

  .form-control-search-icon {
    display: none;
  }

  .form-group {
    margin-bottom: 0;
  }
}

.search-form label {
  font-weight: normal;
  @extend .form-group;
}
.search-form .search-field {
  @extend .form-control;
}
.search-form button[type="submit"] {
  line-height: 1.45em;
}

// Search page form styles

body.search-active-lite {
  #wrapper-search {
    position: relative;
  }

  ul.search-autosuggest {
    background: $white;
    padding-bottom: 20px;
    padding-right: 20px;
    position: absolute;
    width: 100%;
    z-index: 1;
  }
}

//
// Proud autocomplete search
// -------------------------

.search-autosuggest-wrap {
  display: none;
  @include webkit-scrollbar($gray-dark, $white, 5px);
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: 80%;

  .csscalc & {
    max-height: calc(100% - 40px);
  }

  body.search-active &, body.search-active-lite & {
    display: block;
  } 
}

ul.search-autosuggest {
  padding: 10px 0 0 0;
  color: $gray-base;

  li {
    list-style: none;
    clear: left;
  }

  a.result-link {
    color: $gray-base;
    display: block;
    text-decoration: none;
    min-height: 2em;
    line-height: 1.5em;
    // float: left;
    padding: 10px 0 10px $search-icon-width;
    position: relative!important;

    &:hover {
      color: $brand-primary;
    }

    i {
      font-size: 1.5em;
      display: block;
      text-align: center;
      position: absolute!important;
      left: 0;
      top: 10px;
      width: $search-icon-width;
    }
  }

  .search-autosuggest-content {
    margin-left: 3em;
  }
}



// 
// Results
// ----------------------

.search-teaser {
  // Seeing some bad results overflowing. @TODO fix text processing
  overflow: hidden;

  &:first-child {
    padding-top: 10px;
  }

  .search-title {
    position: relative;
    padding-left: $search-icon-width;
    padding-bottom: 10px;

    i {
      font-size: 1.5em;
      left: 0;
      position: absolute;
      text-align: center;
      top: -2px;
      width: $search-icon-width;
    }
  }
}

//
// Matcing text
// -------------------------

.matching {

  .match-label {
    opacity: 0.9;
  }

  // The highlited text
  em {
    font-weight: bold;
  }
}

//
// Elastic Multi-site
// -------------------------

.entry-title, .search-teaser, ul.search-autosuggest {
  .title-span {
    display: block;
  }
}

.external-post .entry-title a {
  &:hover {
    text-decoration: none;

    .title-span {
      text-decoration: underline;
{'fraction_non_alphanumeric': 0.1822263797942002, 'fraction_numerical': 0.02020579981290926, 'mean_word_length': 1.897560975609756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1182203', 'n_tokens_mistral': 2058, 'n_tokens_neox': 1903, 'n_words': 396}