result-page.less 10.5 KB
Newer Older
1
2
3
/* Ergebnisseite */

@import "./quicktips.less";
4
@import "./result-saver.less";
5
6
@import "./result.less";
@import "./product.less";
7
@results-margin-left: @resultpage-leftbox-big-screen-margin-left;
Karl Hasselbring's avatar
Karl Hasselbring committed
8
9
10
11
12
13
14
15
16
17
18
//
@result-page-body-background-color: @background-color;
@result-page-a-hover-color: red;
@result-page-a-visited-color: @metager-orange;
@result-page-product-shop-color: green;
//
@body-background-color: @result-page-body-background-color;
@a-visited-color: @result-page-a-visited-color;
@a-hover-color: @result-page-a-hover-color;
@a-donation-hover-color: @result-page-a-hover-color;
@product-shop-color: @result-page-product-shop-color;
19
20
21
22
23
24
#header-logo {
    z-index: 0;
    padding-right: 10px;
    h1 {
        .logo;
        margin: 0px;
25
        font-size: 22px;
26
27
28
29
        display: inline-block;
    }
}

30
body {
31
    &#resultpage-body {
32
        background-image: inherit;
33
        background-color: #FAFAFA;
34
35
36
    }
    &.quicktips {
        background-color: @quicktip-background-color;
37
38
39
    }
}

40
.navbar {
Karl Hasselbring's avatar
Karl Hasselbring committed
41
    border-bottom: 3px solid @metager-orange;
42
43
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    &.navbar-resultpage {
Karl Hasselbring's avatar
Karl Hasselbring committed
44
        border-bottom: 2px solid @metager-orange;
45
46
47
48
49
50
        box-shadow: none;
    }
}

.lSPrev>span,
.lSNext>span {
Karl Hasselbring's avatar
Karl Hasselbring committed
51
    color: @metager-orange;
52
53
}

54
55
56
#map,
#map div {
    display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
57
58
}

59
.nav-tabs>li>a {
60
61
62
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
Phil Höfer's avatar
Phil Höfer committed
63
64
}

Phil Höfer's avatar
Phil Höfer committed
65
66
67
68
.tab-content {
    padding-top: 10px;
}

Phil Höfer's avatar
Phil Höfer committed
69
70
71
72
.hostlabel {
    display: none;
    position: relative;
    margin-top: -14px;
73
74
75
76
77
    background-color: @hostlabel-background-color;
    a:link,
    a:visited {
        color: @hostlabel-a-link-or-visited-color;
    }
Phil Höfer's avatar
Phil Höfer committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
}

.img:hover .hostlabel {
    display: block;
}

.tab-pane.active {
    padding: 10px 0;
    padding-top: 0;
}

.tab-pane .alert {
    margin: 10px 0;
    padding: 5px 15px;
}

.alert ul {
    list-style-type: none;
    padding-left: 49px;
}

99
.fa.fa-twitter {
Dominik Hebeler's avatar
Dominik Hebeler committed
100
101
102
    color: #6faedc
}

Phil Höfer's avatar
Phil Höfer committed
103
104
105
106
.dense-col {
    padding: 0px
}

Phil Höfer's avatar
Phil Höfer committed
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
.input-group-addon {
    padding: 0;
}

input#eingabeTop {
    height: 35px;
}

nav .input-group {
    height: 35px;
    padding: 5px 0;
}

#search {
    background-color: inherit;
    border: 0;
    width: 50px;
    height: 100%;
}

#helpButton {
    color: black;
}

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
a {
    &:visited {
        color: @a-visited-color;
    }
    &:hover {
        text-decoration: none;
        color: @a-hover-color;
    }
    &#donation {
        &,
        &:visited {
            color: @a-donation-normal-or-visited-color;
        }
        &:hover {
            color: @a-donation-hover-color;
        }
    }
Phil Höfer's avatar
Phil Höfer committed
148
149
150
}

#spenden {
151
    .overflow-ellipsis;
Phil Höfer's avatar
Phil Höfer committed
152
153
}

154
155
156
157
158
#spruch {
    .author {
        font-size: 80%;
        font-weight: normal;
        font-style: italic;
159
        color: @spruch-author-color;
160
161
162
163
164
165
166
    }
    &>p {
        margin-bottom: 0;
        &+p {
            margin-top: 4px;
        }
    }
Phil Höfer's avatar
Phil Höfer committed
167
168
}

169
170
171
.saver-options {
    display: flex;
    padding-bottom: 15px;
172
    &>input {
173
174
175
176
        min-width: 35%;
        max-width: 80%;
    }
}
177

178
179
180
.ui-effects-transfer {
    border: 1px dotted black;
}
181

182
183
184
185
#header-searchbar {
    flex-grow: 1;
}

Phil Höfer's avatar
Phil Höfer committed
186
.description-container {
187
    margin: 0 !important;
Phil Höfer's avatar
Phil Höfer committed
188
189
}

190
191
.options-list>li {
    &:hover {
192
        background-color: @options-list-li-hover-background-color;
193
194
    }
    &>a {
195
        color: @options-list-li-a-color;
196
197
198
199
200
201
202
203
204
205
        white-space: nowrap;
        display: block;
        padding: 5px 14px;
    }
    input[type=submit] {
        width: 100%;
        background-color: transparent;
        border: 0;
        margin: 5px 0;
    }
Phil Höfer's avatar
Phil Höfer committed
206
207
}

208
209
210
211
.js-only {
    display: none;
}

Phil Höfer's avatar
Phil Höfer committed
212
213
214
215
216
217
/* Hier der Style für die Bilder */

#fit-width .masonry {
    margin: 0 auto;
}

218
.image-item {
Phil Höfer's avatar
Phil Höfer committed
219
220
221
    width: 150px;
    text-align: center;
    margin-bottom: 10px;
222
223
224
225
    margin: 5px;
    .img {
        box-shadow: 0px 0px 10px 2px @image-item-img-box-shadow-color;
    }
Phil Höfer's avatar
Phil Höfer committed
226
227
}

228
.image-container {
Phil Höfer's avatar
Phil Höfer committed
229
    margin: 10px auto;
230
231
    display: flex;
    flex-wrap: wrap;
Phil Höfer's avatar
Phil Höfer committed
232
233
234
235
236
237
238
}

/* Placeholder für ladende Tabs */

.loader {
    text-align: center;
    margin-top: 20px;
239
240
241
    &>img {
        width: 30px;
    }
Phil Höfer's avatar
Phil Höfer committed
242
243
}

244
245
246
247
248
249
250
251
.mg-pager {
    display: flex;
    justify-content: center;
    &>div {
        border: #aaa solid 1px;
        border-radius: 10px;
        padding: 5px;
        margin-left: 10px;
252
253
        background-color: white;
        box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
254
255
256
257
258
259
        &:first-child {
            margin-left: 0px;
        }
    }
}

Phil Höfer's avatar
Phil Höfer committed
260
261
262
263
264
265
266
#searchplugin {
    display: none;
    position: fixed;
    top: 50px;
    right: 10px;
    z-index: 501;
    width: 25%;
267
268
269
270
271
    &>div {
        text-align: center;
        padding-top: 5px;
    }
    &>a {
272
        color: @searchplugin-a-color;
273
    }
Phil Höfer's avatar
Phil Höfer committed
274
275
276
277
278
279
280
281
282
}

@media(min-width: 768px) {
    #searchplugin {
        display: initial;
    }
}

.lightslider {
283
    overflow: visible !important;
Phil Höfer's avatar
Phil Höfer committed
284
285
}

286
287
288
289
#products {
    width: 100%;
    height: 210px;
    padding-bottom: 0;
290
    transform: translate3d(0px, 0px, 0px);
291
292
293
294
295
    margin-bottom: 10px;
}

.lSPrev>i,
.lSNext>i {
296
    background-color: @lsprev-or-lsnext-i-background-color;
Phil Höfer's avatar
Phil Höfer committed
297
298
299
300
301
    padding: 5px;
}

#mark {
    font-size: 13px;
302
303
304
    a {
        margin-left: 3px;
    }
305
306
}

307
308
309
310
311
312
313
314
315
@keyframes quicktip-extender-turn {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

316
317
318
319
320
321
322
/* New result style */

.content-wrapper {
    display: flex;
    flex-direction: column;
}

323
@results-width-min: 500px;
324
325
326
@results-width-max: 700px;
@additions-width-min: 400px;
@additions-width-max: 500px;
327
#resultpage-container {
328
329
330
331
332
333
334
335
336
337
    width: 100%;
    margin: @padding-small-default;
    display: grid;
    grid-template-columns: @results-width-max @additions-width-max;
    grid-template-areas: "searchbar ." "foki ." "results additions";
    grid-column-gap: @padding-small-default * 2;
    grid-row-gap: @padding-small-default;
    justify-items: stretch;
    align-items: stretch;
    /**/
338
    background-color: #FAFAFA;
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
    #research-bar {
        grid-area: searchbar;
        /**/
        min-width: @results-width-min;
        max-width: @results-width-max;
    }
    #research-bar-placeholder {
        grid-area: searchbar;
        /**/
        min-width: @results-width-min;
        max-width: @results-width-max;
    }
    #foki {
        grid-area: foki;
        /**/
        min-width: @results-width-min;
        max-width: @results-width-max;
    }
357
    #results-container {
358
359
360
361
        grid-area: results;
        /**/
        min-width: @results-width-min;
        max-width: @results-width-max;
362
        .alert {
363
            margin: @padding-small-default 0px;
364
        }
365
    }
366
    #additions-container {
367
368
369
370
        grid-area: additions;
        /**/
        min-width: @additions-width-min;
        max-width: @additions-width-max;
371
372
373
        #search-settings {
            display: none;
        }
374
    }
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
    @media (max-width: (@results-width-max + @additions-width-max + @padding-small-default * 4)) {
        grid-template-columns: 60fr 40fr;
        grid-template-areas: "searchbar ." "foki ." "results additions";
    }
}

@resultpage-leftbox-max-width: @results-width-max;
@resultpage-leftbox-min-dist-left-right: @padding-small-default;
@resultpage-leftbox-min-dist-top-bottom: @padding-small-default;
@resultpage-leftbox-big-screen-margin-left: 50px;
#research-bar {
    position: fixed;
    z-index: 100;
    width: @resultpage-leftbox-max-width;
    background-color: white;
    border: 1px solid #ccc;
    border-bottom: 2px solid @metager-orange;
    box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    padding: 4px;
    .resultpage-searchbar {
        .search-input-submit .search-input input {
            border-bottom: 1px solid #ccc;
399
        }
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
        @media (max-width: @screen-xs-max) {
            .search-focus-selector {
                border-top: none;
                border-radius: 5px;
            }
            .search-input-submit {
                border-radius: 5px;
            }
            >* {
                border-radius: 5px;
                min-height: 40px;
                &:not(:first-child) {
                    border-left: 1px solid #aaa;
                }
            }
            *:not(.search-submit) {
                width: 100%;
            }
418
419
        }
    }
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
}

#foki {
    display: flex;
    justify-content: left;
    /*
    @media (max-width: (@results-width-min + @additions-width-min - 1px)) {
        width: 100%;
        max-width: none;
        margin: 0px;
        padding: @padding-small-default;
        .scrollbox {
            max-width: none;
            margin: 0px;
            #foki-box {
                max-width: none;
                margin: 0px;
            }
438
        }
439
440
441
442
443
    }
    @media (max-width: (4 * @padding-small-default + @results-width-max + @additions-width-max - 1px)) {
        padding-left: @padding-small-default;
    }
    @media (max-width: (@results-width-min + @additions-width-min - 1px)) {
444
        width: 100%;
445
        max-width: 700px;
446
        margin: 0px;
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
        padding: @padding-small-default;
        #research-bar {
            max-width: none;
            margin: 0px;
        }
    }
    */
    #foki-box {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        max-width: @resultpage-leftbox-max-width;
        background-color: white;
        border: 1px solid #ccc;
        -webkit-box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
        box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
        overflow-x: visible;
        padding: 10px;
        @media (max-width: 700px) {
            overflow-x: auto;
        }
        &>div {
            padding: 0px 10px;
            &>a {
                color: black;
            }
            &.active>a {
                border-bottom: 1px solid @metager-orange;
                color: @metager-orange;
            }
            &:last-child {
                padding-right: 20px
            }
        }
        .edit-focus {
            margin-left: 7px;
        }
        /* Scrollbar Style */
        &::-webkit-scrollbar {
            height: 0px;
            /* remove scrollbar space */
            background: transparent;
            /* optional: just make scrollbar invisible */
        }
492
    }
493
}
Karl Hasselbring's avatar
Karl Hasselbring committed
494
495
496
497
498
499
500
501

#spendenaufruf {
    margin-bottom: 10px;
    a {
        background-color: white;
        display: inline-block;
        width: 100%;
    }
502
503
504
505
506
507
}

footer.resultPageFooter {
    max-width: 700px;
    margin-left: 50px;
    margin-top: 20px;
508
    @media (max-width: (2 * @results-margin-left + @results-width-max - 1px)) {
509
510
        margin: 20px 0 0 0;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
511
}