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: 87bbfe46d0f5d2ad794fa59131d8ef6902062f59 (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
---
version: 2
---

// 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, .2);
$color1: rgba(180, 162, 231, .4);
$color2: rgba(180, 162, 231, .1);
$color3: rgba(79, 171, 225, .2);
$color4: #eee;
$color5: #ed5565;
$color6: #999;
$color7: #868686;
$color8: #fff;
$color9: #383838;

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

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

.hit-content {
  display: block;
  border: 1px solid;
  border-color: $color0;
  padding: 1px 20px;
  padding-top: 10px;
  margin: 5px;
  margin-left: 0 !important;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 300;
  width: 100%; // was 81%

  &:hover {
    border-color: $color1;
    box-shadow: 1px 1px 3px $color2;
  }

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

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

  p {
    font-size: 13px;
  }

  .hit-description {
    color: $color7;
    margin: 1px 0 10px;
    font-size: 14px;
  }
}
//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;
  }
}
//scss-lint:enable IdSelector

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

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

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

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

    &:focus {
      outline: none;
    }
  }
}

.stats {
  display: block;
  text-align: right;
  font-style: italic;
}