/* Swiftype Search CSS overrides - https://swiftype.com/documentation/tutorials/custom_styles
   =========================================================================================== */

/* Change color of search dropdown text */
.swiftype-widget .autocomplete ul li {
  p.title {
    color: $ember-orange;
  }

  &.active {
    background: none;
    background-color: $ember-orange;
    border-top: 1px solid darken($ember-orange, 20%);
    border-bottom: 1px solid darken($ember-orange, 20%);
    box-shadow: 0 1px 0 #C0242D inset;

    .sections {
      color: white;

      em {
        color: black;
        text-shadow: lighten($ember-orange, 10%) 0px -1px 0px;
      }
    }
  }
}

/* Changing the search result link colors */
.st-result-listing a {
  color: $ember-orange;

  &:visited {
    color: darken($ember-orange, 20%);
  }

  &:hover {
    color: lighten($ember-orange, 20%);
  }
}

/* Select2 */
.version-select {
  // Hide from users without javascript enabled
  // select2 will override this for users with javascript
  display: none;
}

.select2-container .select2-search--inline .select2-search__field {
  outline: none; }

.select2-container--default .select2-selection--single {
  outline: none; }

@media screen and (max-width : $large-screen) {
  .select2-container.select2-container--default {
    margin-top: 10px; 
  }
}

