search.scss 2.33 KB
Newer Older
1 2
.search-results {
  .search-result-row {
3 4 5 6 7 8 9
    border-bottom: 1px solid $border-color;
    padding-bottom: $gl-padding;
    margin-bottom: $gl-padding;

    &:last-child {
      border-bottom: none;
    }
10 11
  }
}
12 13 14 15 16 17 18

.search-holder {
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 20px;

  input {
19
    border-color: #bbb;
20 21 22 23
    font-weight: bold;
  }
}

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
.search {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: ($header-height - 35) / 2;

  form {
    @extend .form-control;
    margin: 0;
    padding: 4px;
    width: 350px;
    line-height:  24px;
  }

  .location-text {
    font-style: normal;
  }

  .search-input {
    border: none;
    font-size: 14px;
    outline: none;
    padding: 0;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
46
    margin-left: 5px;
47
    line-height: 25px;
48
    width: 98%;
49 50 51 52 53
  }

  .location-badge {
    line-height: 25px;
    padding: 0 5px;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
54
    border-radius: $border-radius-default;
55 56
    font-size: 14px;
    font-style: normal;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
57
    color: $location-badge-color;
58
    display: inline-block;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
59
    background-color: $location-badge-bg;
60 61 62 63
    vertical-align: top;
  }

  .search-input-container {
Alfredo Sumaran's avatar
Alfredo Sumaran committed
64
    display: -webkit-flex;
65 66 67 68
    display: flex;
  }

  .search-location-badge, .search-input-wrap {
69
    // Fallback if flexbox is not supported
70 71 72 73 74
    display: inline-block;
  }

  .search-input-wrap {
    width: 100%;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
75 76
    position: relative;

77
    .search-icon, .clear-icon {
Alfredo Sumaran's avatar
Alfredo Sumaran committed
78 79
      position: absolute;
      right: 5px;
80
      top: 0;
81
      color: $location-icon-color;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
82 83 84 85 86 87 88 89

      &:before {
        font-family: FontAwesome;
        font-weight: normal;
        font-style: normal;
      }
    }

90 91 92 93 94 95 96 97 98 99 100 101 102
    .search-icon {
      @extend .fa-search;
      @include transition(color .15s);
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }

    .clear-icon {
      @extend .fa-times;
      display: none;
    }

103 104 105
    .dropdown-header {
      text-transform: uppercase;
      font-size: 11px;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
106
    }
107
  }
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

  &.search-active {
    form {
      @extend .form-control:focus;
    }

    .location-badge {
      @include transition(all .15s);
      background-color: $location-active-bg;
      color: $white-light;
    }

    .search-input-wrap {
      i {
        color: $location-active-color;
      }
    }

    &.has-location-badge {
      .search-icon {
        display: none;
      }

      .clear-icon {
        cursor: pointer;
        display: block;
      }
    }
  }


139
}