Welcome to mirror list, hosted at ThFree Co, Russian Federation.

instantsearch.scss « stylesheets « assets « content - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbbbde7ab4ff61fe19d14587e5b0e18390006a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
---
version: 10
---

@import "variables";

// original CSS: https://github.com/algolia/examples/blob/master/instant-search/instantsearch.js/assets/style.css
// original CSS customized and converted to SCSS with http://sebastianpontow.de/css2compass/

//colors
$color0: rgba(180, 162, 231, .1);
$color1: rgba(180, 162, 231, .2);
$color2: rgba(180, 162, 231, .1);
$color3: rgba(79, 171, 225, .2);
$color4: #eee;
$color5: #ed5565;
$color6: #999;
$color7: #868686;
$color8: #fff;
$color9: #383838;
$color10: rgb(117, 117, 117);
$color11: transparent;
// link-color: rgb(32, 139, 196);
$color12: rgba(32, 139, 196, .2); //link color lighter


//scss-lint:disable ImportantRule
.ais-search-box {
  width: 100%;
  max-width: 100% !important; // was 300px
}

.search-input {
  border-radius: 2px;
}

.instantsearch-input {
  padding-bottom: 7px;
}

.ais-stats {
  display: block;
  float: left;
  margin-top: -26px !important;

  @media all and (max-width: $mobile-width) {
    margin-top: -25px !important;
  }
}

.ais-search-box--powered-by {
  font-family: $sans-font-family;
  font-size: $body-font-size;
}

.ais-search-box--magnifier,
.ais-search-box--reset {
  display: block;
  top: 35% !important;
  bottom: auto;
  right: 10px !important;
  width: 14px;
}

.hit-content {
  display: block;
  border-top: 2px solid $color0;
  padding: 30px 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  width: 100%; // was 81%
  position: relative;
  color: $color10;
  transition: .3s ease;
  word-wrap: break-word;

  &:hover {
    border-top: 2px solid $color12;
    box-shadow: 0 10px 6px -6px $color12;

    .hit-tag {
      color: $link-color;
      border-color: $color3;
    }
  }

  @media all and (max-width: $mobile-width) {
    padding: 25px 5px;
  }

  .lvl0 {
    color: $black;
  }

  .lvl1 {
    font-size: 18px !important;
  }

  .lvl2 {
    font-size: 14px;
    color: $color7;
  }

  .hit-name {
    font-weight: normal;
    margin-top: 0;
  }

  em {
    font-style: normal;
    background-color: $color3;
  }

  p {
    font-size: 13px;
  }

  .hit-description {
    margin: 1px 0 5px;
  }

  .hit-tag {
    display: block;
    position: absolute;
    padding: 3px;
    border: 1px solid $color0;
    border-top: 0;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    right: 0;
    top: 0;
    width: 70px;
    height: 25px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    color: $color6;
  }

  .hit-text {
    font-size: inherit;
    color: $link-color;
  }

  @media all and (max-width: $mobile-width) {
    .hit-tag {
      width: 60px;
      height: 23px;
      font-size: 10px;
    }

    .lvl0 {
      padding-top: 5px;
    }
  }
}
//scss-lint:enable ImportantRule

//scss-lint:disable IdSelector
#hits {
  border-top: 0;
  margin: 4px 0;
  padding: 10px 0;

  > h1, h2, h3, h4, h5, h6 {
    border: 0;
  }
}

#refinement-list {
  margin-top: 15px;
}
//scss-lint:enable IdSelector

//overrides padding for the searchbox
.main.class {
  padding-top: 90px;

  @media (max-width: $mobile-width) {
    padding-top: 20px;
  }
}

.algolia-docsearch-suggestion--highlight {
  background-color: $color3;
}

.ais-infinite-hits--showmore {
  display: block;
  margin: 10px auto auto;

  button {
    padding: 20px 10px;
    cursor: pointer;
    width: 100%;
    background-color: $color8;
    border-color: $color3;
    border-right: 0;
    border-left: 0;

    &:hover {
      background-color: $color3;
    }

    &:focus {
      outline: none;
    }
  }
}

.stats {
  display: block;
  text-align: right;
  font-size: 11px;
  color: $body-color;

  @media all and (max-width: $mobile-width) {
    font-size: 10px;
  }
}

.ais-refinement-list--item {
  display: inline-block;
  padding-right: 10px;
}

.ais-refinement-list--label {
  text-transform: uppercase;
  color: $link-color;
}