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

Karl Hasselbring's avatar
Karl Hasselbring committed
3
@startpage-border-color: #a2a2a2;
4
5
/**/

6
.searchbar {
7
8
    display: -webkit-box;
    display: -ms-flexbox;
9
    display: flex;
10
    -webkit-box-align: stretch;
11
12
    -ms-flex-align: stretch;
    align-items: stretch;
13
    -webkit-box-pack: center;
14
15
    -ms-flex-pack: center;
    justify-content: center;
16
    font-size: 16px;
17
    background-color: transparent;
18
    color: #333;
19
    .search-input-submit {
20
        background-color: @searchbar-background-color;
21
        -webkit-box-flex: 1;
22
23
        -ms-flex-positive: 1;
        flex-grow: 1;
24
25
        display: -webkit-box;
        display: -ms-flexbox;
26
        display: flex;
27
        max-width: 600px;
28
29
30
31
32
33
34
35
        #search-lang {
            #input-lang {
                background-color: transparent;
                border: none;
            }
        }
        #search-lang,
        #search-key {
Karl Hasselbring's avatar
Karl Hasselbring committed
36
37
            display: -webkit-box;
            display: -ms-flexbox;
38
            display: flex;
39
            z-index: 1;
40
            #input-lang,
41
42
43
44
            #input-key {
                margin: 0;
                padding: 0px;
                border: none;
Karl Hasselbring's avatar
Karl Hasselbring committed
45
                -webkit-box-shadow: none;
46
47
48
                box-shadow: none;
                height: 40px;
                width: 0px;
49
                outline-color: green;
Karl Hasselbring's avatar
Karl Hasselbring committed
50
51
                -webkit-transition: width 0.5s, padding 0.5s, outline-color 0s, border-color 0s, -webkit-box-shadow 0s;
                transition: width 0.5s, padding 0.5s, outline-color 0s, border-color 0s, -webkit-box-shadow 0s;
52
                transition: width 0.5s, padding 0.5s, outline-color 0s, border-color 0s, box-shadow 0s;
Karl Hasselbring's avatar
Karl Hasselbring committed
53
54
                transition: width 0.5s, padding 0.5s, outline-color 0s, border-color 0s, box-shadow 0s, -webkit-box-shadow 0s;
                -webkit-transition-delay: 0.3s;
55
                transition-delay: 0.3s;
56
57
58
59
60
61
62
63
                &:focus {
                    width: 200px;
                    padding: 6px 10px 6px 10px;
                    outline-color: @metager-orange;
                    -webkit-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);
                    border-radius: 4px;
64
                    +#lang-label,
65
                    +#key-label {
66
67
                        visibility: hidden;
                        width: 0px;
68
69
70
                    }
                }
            }
71
            #lang-label,
72
73
74
75
76
            #key-label {
                cursor: pointer;
                height: 40px;
                width: 40px;
                margin: 0;
Karl Hasselbring's avatar
Karl Hasselbring committed
77
78
                display: -webkit-box;
                display: -ms-flexbox;
79
                display: flex;
Karl Hasselbring's avatar
Karl Hasselbring committed
80
81
                -webkit-box-align: center;
                -ms-flex-align: center;
82
                align-items: center;
Karl Hasselbring's avatar
Karl Hasselbring committed
83
84
                -webkit-box-pack: center;
                -ms-flex-pack: center;
85
                justify-content: center;
Karl Hasselbring's avatar
Karl Hasselbring committed
86
                -webkit-transition: width 0s, visibility 0s;
87
                transition: width 0s, visibility 0s;
Karl Hasselbring's avatar
Karl Hasselbring committed
88
                -webkit-transition-delay: 0.3s;
89
                transition-delay: 0.3s;
Karl Hasselbring's avatar
Karl Hasselbring committed
90
91
92
                #lang-label-code {
                    margin-left: 5px;
                }
93
94
            }
        }
95
96
97
98
99
100
101
102
103
        .search-input {
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            input {
                border: none;
                height: 40px;
                -webkit-box-shadow: none;
                box-shadow: none;
104
                background-color: transparent;
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
                &:focus {
                    outline-color: @metager-orange;
                    -webkit-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);
                    border-radius: 4px;
                }
            }
        }
        .search-submit {
            button {
                width: 50px;
                line-height: 100%;
                border: 0;
                background-color: transparent;
                padding: 0;
                height: 100%;
            }
123
124
125
126
127
        }
    }
    .search-hidden {
        display: none;
    }
128
129
130
    .search-custom-hidden {
        display: none;
    }
131
    @media (max-width: @screen-xs-max) {
132
133
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
134
135
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
136
137
138
    }
}

139
140
.startpage-searchbar {
    >* {
141
        border: 1px solid @startpage-border-color;
142
143
144
145
146
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
147
        border-radius: 5px;
Karl Hasselbring's avatar
Karl Hasselbring committed
148
149
150
        @media (max-width: @screen-xs-max) {
            max-width: initial;
        }
151
152
        >:not(:first-child) {
            border-left: 1px solid @startpage-border-color;
153
        }
154
155
156
157
158
159
160
161
162
163
164
    }
    @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;
        }
165
166
167
168
169
170
171
172
173
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
    }
174
175
}

176
177
178
179
180
181
182
183
.resultpage-searchbar {
    .search-input-submit {
        #search-lang,
        #search-key {
            @media (max-width: @screen-xs-max) {
                display: none;
            }
        }
184
185
186
        .search-input input {
            padding-right: 35px; // Makes it so the overlayed delete button does not hide the text belowF
        }
187
188
189
    }
}

190
191
192
193
header:nth-child(1) {
    @media (max-width: 1400px) {
        position: relative;
    }
194
195
}

196
197
198
199
200
201
/* Scrollbar Style */

@scrollfade-color: white;
.scrollbox {
    position: relative;
    width: 100%;
202
    max-width: @results-width-max;
203
204
205
206
207
    .foki-scrollfade {
        &-left,
        &-right {
            position: absolute;
            width: 20px;
208
            height: 40px;
209
            top: 1px;
Aria Givi's avatar
Aria Givi committed
210
            pointer-events: none;
211
212
        }
        &-left {
213
            background: -webkit-gradient(linear, left top, right top, from(@scrollfade-color), color-stop(fade(@scrollfade-color, 80%)), to(fade(@scrollfade-color, 0%)));
214
            background: linear-gradient(to right, @scrollfade-color, fade(@scrollfade-color, 80%), fade(@scrollfade-color, 0%));
215
            left: 1px;
216
217
        }
        &-right {
218
            background: -webkit-gradient(linear, right top, left top, from(@scrollfade-color), color-stop(fade(@scrollfade-color, 80%)), to(fade(@scrollfade-color, 0%)));
219
            background: linear-gradient(to left, @scrollfade-color, fade(@scrollfade-color, 80%), fade(@scrollfade-color, 0%));
220
            right: 1px;
221
        }
222
    }
Aria Givi's avatar
Aria Givi committed
223
224
225
    .search-option-frame {
        position: relative;
    }
226
}
Dominik Hebeler's avatar
Dominik Hebeler committed
227

228
229
#research-bar-placeholder {
    width: 100%;
230
    max-width: 760px;
231
    height: 51px;
Karl Hasselbring's avatar
Karl Hasselbring committed
232
233
234
235
236
237
238
239
}

.search-input {
    position: relative;
}

#search-delete-btn {
    position: absolute;
240
241
242
    right: 2px;
    bottom: 1px;
    width: auto;
Karl Hasselbring's avatar
Karl Hasselbring committed
243
    border: none;
244
    background-color: white;
245
246
    font-size: 25px;
    font-weight: normal;
247
}