searchbar.less 7.22 KB
Newer Older
1
2
/* Suchleiste */

3
4
5
.searchbar {
    display: flex;
    align-items: stretch;
6
    justify-content: center;
7
8
    font-size: 16px;
    background-color: white;
9
    color: #333;
10
11
    .search-focus-selector {
        border-radius: 5px 0px 0px 5px;
Aria Givi's avatar
Aria Givi committed
12
13
        display: flex;
        align-items: center;
14
        position: relative;
15
16
17
        @media(max-width: @screen-xs-max) {
            display: none;
        }
Aria Givi's avatar
Aria Givi committed
18
19
        &>button {
            border: none;
20
            border-right: 1px solid rgb(170, 170, 170);
Aria Givi's avatar
Aria Givi committed
21
            background-color: white;
Aria Givi's avatar
Aria Givi committed
22
23
            margin: 5px;
        }
24
25
26
27
        .search-settings:only-child {
            padding: 5px;
            border-right: solid 1px #ccc;
        }
28
29
30
31
32
33
        select {
            width: 100%;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-color: transparent;
34
            padding: 0px 35px 0px 5px;
35
36
37
38
39
            font-family: FontAwesome, sans-serif;
            border: none;
            &>option {
                font-family: FontAwesome, sans-serif;
            }
40
        }
41
42
        &:after {
            content: "\f078";
43
            font: 15px "FontAwesome", sans-serif;
44
45
46
47
48
49
50
            line-height: 30px;
            background-color: transparent;
            right: 8px;
            top: 2px;
            padding: 2px 2px 2px 5px;
            position: absolute;
            pointer-events: none;
51
52
        }
    }
Aria Givi's avatar
Aria Givi committed
53
    .search-option-frame {
54
        display: flex;
Aria Givi's avatar
Aria Givi committed
55
        position: absolute;
56
57
        background-color: white;
        top: 50px;
Aria Givi's avatar
Aria Givi committed
58
        padding: 10px;
Aria Givi's avatar
Aria Givi committed
59
        border: 1px solid rgb(175, 175, 175);
Aria Givi's avatar
Aria Givi committed
60
        border-radius: 4px;
Aria Givi's avatar
Aria Givi committed
61
62
63
64
65
66
67
68
69
70
        .searchbar-options-arrow {
            width: 0;
            height: 0;
            top: -5px;
            position: absolute;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid rgb(175, 175, 175);
            margin-left: 3%;
        }
71
72
73
74
75
76
77
78
79
80
        #settings-btn {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 0px;
            i.fa {
                padding: 0px 8px;
            }
        }
Aria Givi's avatar
Aria Givi committed
81
    }
Aria Givi's avatar
Aria Givi committed
82
83
    .search-button-container {
        display: flex;
Aria Givi's avatar
Aria Givi committed
84
        margin-top: 3%;
85
86
87
88
89
90
        @media (max-width: @screen-xs-max) {
            flex-direction: column;
        }
        >* {
            display: flex;
            justify-content: space-between;
91
            align-items: center;
92
93
94
95
            &:hover {
                background-color: #e6e6e6;
            }
        }
96
97
98
99
100
101
102
103
104
105
    }
    .search-add-focus {
        position: relative;
        button {
            background-color: white;
            border: none;
            padding: 0px 8px;
            font-size: 16px;
            &:hover {
                background-color: #e6e6e6;
106
107
            }
        }
108
109
110
111
    }
    .search-edit-focus {
        position: relative;
        button {
112
            background-color: transparent;
113
114
115
116
117
            border: none;
            padding: 0px 8px;
            font-size: 16px;
            &:hover {
                background-color: #e6e6e6;
118
119
            }
        }
120
121
122
123
124
125
126
127
128
    }
    .search-settings {
        position: relative;
        a.btn {
            border: none;
            padding: 0px 8px;
            display: block;
            align-items: center;
            font-size: 16px;
129
130
131
132
133
        }
    }
    .search-input-submit {
        flex-grow: 1;
        display: flex;
134
135
136
137
        max-width: 600px;
        @media (max-width: @screen-xs-max) {
            max-width: initial;
        }
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
    }
    .search-input {
        flex-grow: 1;
        input {
            border: none;
            height: 40px;
            &:focus {
                outline-color: rgb(255, 128, 0);
                -webkit-box-shadow: 0px 0px 2px 2px rgba(255, 128, 0, 1);
                -moz-box-shadow: 0px 0px 2px 2px rgba(255, 128, 0, 1);
                box-shadow: 0px 0px 2px 2px rgba(255, 128, 0, 1);
                border-color: rgba(255, 128, 0, 1);
            }
        }
    }
    .search-submit {
        button {
            width: 50px;
            line-height: 100%;
            border: 0;
            background-color: transparent;
            padding: 0;
            height: 100%;
        }
    }
    .search-hidden {
        display: none;
    }
166
167
168
    .search-custom-hidden {
        display: none;
    }
169
170
171
172
173
    @media (max-width: @screen-xs-max) {
        flex-direction: column-reverse;
    }
}

Aria Givi's avatar
Aria Givi committed
174
175
176
177
div:hover>.searchbar-tooltip {
    display: inline-block;
    @media (max-width: @screen-xs-max) {
        display: none;
178
179
180
    }
}

181
182
183
184
185
186
.search-option-descriptor {
    @media (min-width: @screen-sm-min) {
        display: none;
    }
}

187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
.startpage-searchbar {
    >* {
        border: 1px solid #aaa;
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
        border-radius: 0px 5px 5px 0px;
    }
    .search-submit {
        border-left: 1px solid #aaa;
    }
    @media (max-width: @screen-xs-max) {
        .search-focus-selector {
            border: 1px solid #aaa;
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border: 1px solid #aaa;
            border-radius: 5px;
        }
210
211
212
213
214
215
216
217
218
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
    }
219
220
221
}

.resultpage-searchbar {
222
    padding: 5px;
223
     :first-child {
224
225
        border-left: none;
    }
226
    @media (max-width: @screen-xs-max) {
227
228
229
230
231
232
233
234
235
        .search-focus-selector {
            border: 1px solid #aaa;
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border: 1px solid #aaa;
            border-radius: 5px;
        }
236
237
238
239
240
241
242
243
244
245
246
247
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
        *:not(.search-submit) {
            width: 100%;
        }
    }
248
249
250
}

.searchbar-tooltip {
251
252
    display: none;
    position: absolute;
Aria Givi's avatar
Aria Givi committed
253
254
    top: 45px;
    left: -10px;
255
    &>.searchbar-tooltip-arrow {
256
        position: absolute;
Aria Givi's avatar
Aria Givi committed
257
258
        top: -4px;
        left: 20px;
259
260
        width: 0;
        height: 0;
261
262
263
264
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #ff8000;
    }
265
    &>.searchbar-tooltip-content {
266
        position: relative;
267
        &>p {
268
269
270
271
272
273
            display: inline-block;
            background: #ff8000;
            border-radius: .25em;
            font-size: 16px;
            color: white;
            padding: 5px 10px;
Aria Givi's avatar
Aria Givi committed
274
            white-space: nowrap;
275
276
277
278
        }
    }
}

279
#research-bar {
280
    position: fixed;
281
    z-index: 100;
282
    width: 100%;
283
    padding: 10px 60px 0px 10px;
284
    background-color: white;
285
286
287
    border-bottom: 2px solid rgb(255, 128, 0);
    display: flex;
    justify-content: center;
288
    @media (max-width: @screen-xs-max) {
289
290
        flex-direction: column;
        padding-right: 10px;
291
    }
292
293
294
295
296
297
}

#research-bar-placeholder {
    width: 100%;
    height: 60px;
    @media (max-width: @screen-xs-max) {
298
        height: 100px;
299
    }
300
}