File: _docsearch.scss

package info (click to toggle)
jekyll 3.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,604 kB
  • sloc: ruby: 15,325; javascript: 1,455; sh: 214; xml: 29; makefile: 7
file content (60 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (2)
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
.searchbox {
  padding-top: 1px;
  .searchbox__input {
    padding: 6px 5px 5px 29px;
    font-size: 0.75em;
    border: none;
    border-radius: 5px;
    color: #555;
    background-color: #333 !important;
    box-shadow: 0 0 1px 0 #555;

    &::-webkit-input-placeholder {
      color: #aaa;
    }
    &:-ms-input-placeholder {
      color: #aaa;
    }
    &::placeholder {
      color: #aaa;
    }

    &:focus, &:active {
      color: #eaeaea;
      background-color: #252525 !important;
    }
  }
}

.searchbox__submit svg { fill: #fc0 }
.searchbox__reset svg { fill: #999 }

.algolia-autocomplete {
  .ds-dropdown-menu {
    font-size: 1rem;
    text-shadow: none;

    .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content {
      background-color: rgba(221, 221, 221, 0.5);
    }
  }

  .algolia-docsearch-suggestion--category-header {
    background-color: #444;
    color: #ddd;
    padding: 0.35em;
  }

  .algolia-docsearch-suggestion--subcategory-column {
    color: #444;
  }

  .algolia-docsearch-suggestion--highlight {
    background-color: #fc0;
    color: #222;
  }

  .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
    box-shadow: inset 0 -2px 0 0 #fc0;
  }
}