summaryrefslogtreecommitdiffstats
path: root/src/rocksdb/docs/_sass/_search.scss
blob: eadfa11d1e58d12dcf5c74d9d4570db442b20bee (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
input[type="search"] {
    -moz-appearance:    none;
    -webkit-appearance: none;
}

.navSearchWrapper {
  align-self: center;
  position: relative;

  &::before {
    border: 3px solid $primary-overlay-special;
    border-radius: 50%;
    content: " ";
    display: block;
    height: 6px;
    left: 15px;
    width: 6px;
    position: absolute;
    top: 4px;
    z-index: 1;
  }

  &::after {
    background: $primary-overlay-special;
    content: " ";
    height: 7px;
    left: 24px;
    position: absolute;
    transform: rotate(-45deg);
    top: 12px;
    width: 3px;
    z-index: 1;
  }

  .aa-dropdown-menu {
    background: $secondary-bg;
    border: 3px solid rgba($text, 0.25);
    color: $text;
    font-size: 14px;
    left: auto !important;
    line-height: 1.2em;
    right: 0 !important;

    .algolia-docsearch-suggestion--category-header {
      background: $primary-overlay-special;
      color: $primary-bg;

      .algolia-docsearch-suggestion--highlight {
        background-color: $primary-bg;
        color: $primary-overlay;
      }
    }

    .algolia-docsearch-suggestion--title .algolia-docsearch-suggestion--highlight,
    .algolia-docsearch-suggestion--subcategory-column .algolia-docsearch-suggestion--highlight {
        color: $primary-bg;
    }

    .algolia-docsearch-suggestion__secondary,
    .algolia-docsearch-suggestion--subcategory-column {
      border-color: rgba($text, 0.3);
    }
  }
}

input#search_input {
  padding-left: 25px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 20px;
  background-color: rgba($primary-overlay-special, 0.25);
  border: none;
  color: rgba($primary-overlay-special, 0);
  outline: none;
  position: relative;
  transition: background-color .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), width .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), color .2s ease;
  width: 60px;

  &:focus, &:active {
    background-color: $secondary-bg;
    color: $text;
    width: 240px;
  }
}

.navigationSlider {
  .navSearchWrapper {
    &::before {
      left: 6px;
      top: 6px;
    }

    &::after {
      left: 15px;
      top: 14px;
    }
  }

  input#search_input_react {
    box-sizing: border-box;
    padding-left: 25px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 20px;
    background-color: rgba($primary-overlay-special, 0.25);
    border: none;
    color: $text;
    outline: none;
    position: relative;
    transition: background-color .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), width .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), color .2s ease;
    width: 100%;

    &:focus, &:active {
      background-color: $primary-bg;
      color: $primary-overlay;
    }
  }

  .algolia-docsearch-suggestion--subcategory-inline {
    display: none;
  }

  & > span {
    width: 100%;
  }

  .aa-dropdown-menu {
    background: $secondary-bg;
    border: 0px solid $secondary-bg;
    color: $text;
    font-size: 12px;
    line-height: 2em;
    max-height: 140px;
    min-width: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    border-radius: 0;
    position: relative !important;
    width: 100%;
  }
}