@import 'colors';

#nav {
  position: relative;
}

#docs-widget {

  &.active {
    .docs-search-results {
      display: block;
    }

    a.close-widget {
      display: block;
    }
  }

  input.docs-search-input {
    background-color: transparent;
    border: 0;
    font-size: 14px;
    outline: none;
    padding: 12px 5%;
    text-indent: 2px;
    width: 90%;

    &:focus {
      outline: none;
    }
  }

  a.close-widget {
    display: none;
    position: absolute;
    right: 12px;
    top: 12px;
  }

  .docs-search {
    padding: 0;
    text-align: left;
    z-index: 100;
  }

  .docs-search-results {
    display: none;

    li {
      border-top: 1px solid $border-color;
    }

    a {
      color: $link-color;
      display: block;
      padding: 12px;
    }
  }
}
