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

3
.searchbar {
4 5
    display: -webkit-box;
    display: -ms-flexbox;
6
    display: flex;
7
    -webkit-box-align: stretch;
8 9
    -ms-flex-align: stretch;
    align-items: stretch;
10
    -webkit-box-pack: center;
11 12
    -ms-flex-pack: center;
    justify-content: center;
13
    font-size: 16px;
14
    background-color: transparent;
15
    color: #333;
16 17 18
    &>* {
        background-color: white;
    }
19
    .search-input-submit {
20
        -webkit-box-flex: 1;
21 22
        -ms-flex-positive: 1;
        flex-grow: 1;
23 24
        display: -webkit-box;
        display: -ms-flexbox;
25
        display: flex;
26 27 28 29
        max-width: 600px;
        @media (max-width: @screen-xs-max) {
            max-width: initial;
        }
30 31
    }
    .search-input {
32
        -webkit-box-flex: 1;
33 34
        -ms-flex-positive: 1;
        flex-grow: 1;
35 36
        input {
            border: none;
37
            border-bottom: none;
38
            height: 40px;
39
            -webkit-box-shadow: none;
40
            box-shadow: none;
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
            &:focus {
                outline-color: rgb(255, 128, 0);
                -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);
            }
        }
    }
    .search-submit {
        button {
            width: 50px;
            line-height: 100%;
            border: 0;
            background-color: transparent;
            padding: 0;
            height: 100%;
        }
    }
    .search-hidden {
        display: none;
    }
62 63 64
    .search-custom-hidden {
        display: none;
    }
65
    @media (max-width: @screen-xs-max) {
66 67
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
68 69
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
70 71 72
    }
}

73 74
.startpage-searchbar {
    >* {
75
        border: 1px solid #a2a2a2;
76 77 78 79 80
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
81
        border-radius: 5px;
82 83 84 85 86 87 88 89 90 91 92 93 94 95
    }
    .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;
        }
96 97 98 99 100 101 102 103 104
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
    }
105 106 107
}

.resultpage-searchbar {
108
    padding: 5px;
109 110 111
    .search-input-submit .search-input input {
        border-bottom: 1px solid #ccc;
    }
112
    @media (max-width: @screen-xs-max) {
113 114 115 116 117 118 119
        .search-focus-selector {
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border-radius: 5px;
        }
120 121 122 123 124 125 126 127 128 129 130
        >* {
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
        *:not(.search-submit) {
            width: 100%;
        }
    }
131 132
}

Karl Hasselbring's avatar
Karl Hasselbring committed
133 134 135 136
@resultpage-leftbox-max-width: @result-width;
@resultpage-leftbox-min-dist-left-right: 8px;
@resultpage-leftbox-min-dist-top-bottom: 8px;
@resultpage-leftbox-big-screen-margin-left: 50px;
137
header {
Karl Hasselbring's avatar
Karl Hasselbring committed
138
    padding-top: @resultpage-leftbox-min-dist-top-bottom;
139 140
    display: -webkit-box;
    display: -ms-flexbox;
141
    display: flex;
142 143
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
144 145
    -ms-flex-direction: column;
    flex-direction: column;
146
    position: fixed;
147
    z-index: 100; // Makes the header larger, so it correctly covers the non scrolling parts below
Karl Hasselbring's avatar
Karl Hasselbring committed
148 149
    width: @resultpage-leftbox-max-width + @resultpage-leftbox-big-screen-margin-left + 10;
    padding-left: @resultpage-leftbox-big-screen-margin-left;
150
    background-color: inherit;
Karl Hasselbring's avatar
Karl Hasselbring committed
151 152 153 154 155
    @media (max-width: 799px) {
        width: 100%;
        max-width: 799px;
        margin: 0px;
        padding: @resultpage-leftbox-min-dist-top-bottom @resultpage-leftbox-min-dist-left-right 0px @resultpage-leftbox-min-dist-left-right;
156
        -webkit-box-pack: center;
157
        -webkit-box-align: center;
158 159
        -ms-flex-align: center;
        align-items: center;
160
    }
161
    #research-bar {
Karl Hasselbring's avatar
Karl Hasselbring committed
162 163
        width: 100%;
        max-width: @resultpage-leftbox-max-width;
Dominik Hebeler's avatar
Dominik Hebeler committed
164 165 166 167
        padding: 0px 30px 0px 10px;
        background-color: white;
        border: 1px solid #ccc;
        border-bottom: 2px solid rgb(255, 128, 0);
168 169
        display: -webkit-box;
        display: -ms-flexbox;
Dominik Hebeler's avatar
Dominik Hebeler committed
170
        display: flex;
171
        -webkit-box-align: center;
172 173
        -ms-flex-align: center;
        align-items: center;
174
        -webkit-box-pack: center;
175 176
        -ms-flex-pack: center;
        justify-content: center;
177
        -webkit-box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
178
        box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
Dominik Hebeler's avatar
Dominik Hebeler committed
179
        @media (max-width: 799px) {
Karl Hasselbring's avatar
Karl Hasselbring committed
180
            margin: 0px @resultpage-leftbox-min-dist-left-right;
Dominik Hebeler's avatar
Dominik Hebeler committed
181
        }
182
    }
183
}
Dominik Hebeler's avatar
Dominik Hebeler committed
184

185 186 187 188
header:nth-child(1) {
    @media (max-width: 1400px) {
        position: relative;
    }
189 190
}

Dominik Hebeler's avatar
Dominik Hebeler committed
191
#foki {
192 193
    display: -webkit-box;
    display: -ms-flexbox;
194
    display: flex;
195
    -webkit-box-pack: left;
196 197
    -ms-flex-pack: left;
    justify-content: left;
Karl Hasselbring's avatar
Karl Hasselbring committed
198 199 200
    margin-left: @resultpage-leftbox-big-screen-margin-left;
    padding-top: 8px;
    width: @resultpage-leftbox-max-width;
201
    @media (max-width: 799px) {
Karl Hasselbring's avatar
Karl Hasselbring committed
202 203
        width: 100%;
        margin: 0px;
204 205
        display: -webkit-box;
        display: -ms-flexbox;
Karl Hasselbring's avatar
Karl Hasselbring committed
206
        display: flex;
207
        -webkit-box-pack: center;
208 209
        -ms-flex-pack: center;
        justify-content: center;
Karl Hasselbring's avatar
Karl Hasselbring committed
210
        padding: @resultpage-leftbox-min-dist-top-bottom @resultpage-leftbox-min-dist-left-right 0px @resultpage-leftbox-min-dist-left-right;
211
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
212
    #foki-box {
213 214
        display: -webkit-box;
        display: -ms-flexbox;
Karl Hasselbring's avatar
Karl Hasselbring committed
215 216 217
        display: flex;
        width: 100%;
        max-width: @resultpage-leftbox-max-width;
218 219
        background-color: white;
        border: 1px solid #ccc;
220
        -webkit-box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
221
        box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
222
        overflow-x: visible;
223
        padding: 10px;
224 225
        @media (max-width: 700px) {
            overflow-x: auto;
Dominik Hebeler's avatar
Dominik Hebeler committed
226
        }
227 228 229 230 231
        &>div {
            padding: 0px 10px;
            &>a {
                color: black;
            }
Karl Hasselbring's avatar
Karl Hasselbring committed
232 233 234
            &.active>a {
                border-bottom: 1px solid rgb(255, 128, 0);
                color: rgb(255, 128, 0);
235
            }
236 237 238
            &:last-child {
                padding-right: 20px
            }
Karl Hasselbring's avatar
Karl Hasselbring committed
239 240
        }
        .edit-focus {
241 242
            margin-left: 7px;
        }
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
        /* Scrollbar Style */
        &::-webkit-scrollbar {
            height: 0px;
            /* remove scrollbar space */
            background: transparent;
            /* optional: just make scrollbar invisible */
        }
    }
}


/* Scrollbar Style */

@scrollfade-color: white;
.scrollbox {
    position: relative;
    width: 100%;
    .foki-scrollfade {
        &-left,
        &-right {
            position: absolute;
            width: 20px;
265
            height: 40px;
266
            top: 1px;
Aria Givi's avatar
Aria Givi committed
267
            pointer-events: none;
268 269
        }
        &-left {
270
            background: -webkit-gradient(linear, left top, right top, from(@scrollfade-color), color-stop(fade(@scrollfade-color, 80%)), to(fade(@scrollfade-color, 0%)));
271
            background: linear-gradient(to right, @scrollfade-color, fade(@scrollfade-color, 80%), fade(@scrollfade-color, 0%));
272
            left: 1px;
273 274
        }
        &-right {
275
            background: -webkit-gradient(linear, right top, left top, from(@scrollfade-color), color-stop(fade(@scrollfade-color, 80%)), to(fade(@scrollfade-color, 0%)));
276
            background: linear-gradient(to left, @scrollfade-color, fade(@scrollfade-color, 80%), fade(@scrollfade-color, 0%));
277
            right: 1px;
278
        }
279
    }
Aria Givi's avatar
Aria Givi committed
280 281 282
    .search-option-frame {
        position: relative;
    }
283
}
Dominik Hebeler's avatar
Dominik Hebeler committed
284

285
#research-bar-placeholder {
286
    padding: @resultpage-leftbox-min-dist-top-bottom 0px 0px 50px;
287
    width: 100%;
288
    max-width: 760px;
289
    height: 61px;
290
}