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

@import "./quicktips.less";
4
@import "./result-saver.less";
5
6
@import "./result.less";
@import "./product.less";
Karl Hasselbring's avatar
Karl Hasselbring committed
7
8
9
//
@resultpage-background-color: #FAFAFA;
//
10
@results-margin-left: @resultpage-leftbox-big-screen-margin-left;
Karl Hasselbring's avatar
Karl Hasselbring committed
11
12
13
14
15
16
17
18
19
20
21
//
@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;
Karl Hasselbring's avatar
Karl Hasselbring committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
@results-width-min: 500px;
@results-width-max: 700px;
@additions-width-min: 400px;
@additions-width-max: 500px;
//
@resultpage-breakpoint-large: (@results-width-max + @additions-width-max + @padding-small-default * 4);
@resultpage-breakpoint-small: (@results-width-min + @additions-width-min + @padding-small-default * 4);
//
@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;
//
@logo-size-breakpoint: (@results-width-min + @padding-small-default * 2);
//
@openSidebar-breakpoint: (@results-width-max + @padding-small-default * 2 + 60px);
//
40
41
42
43
44
45
#header-logo {
    z-index: 0;
    padding-right: 10px;
    h1 {
        .logo;
        margin: 0px;
46
        font-size: 22px;
47
48
        display: inline-block;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
49
50
51
52
53
54
55
56
57
58
59
60
    .screen-small {
        display: none;
    }
    .screen-large {}
    @media (max-width: @logo-size-breakpoint) {
        .screen-large {
            display: none;
        }
        .screen-small {
            display: initial;
        }
    }
61
62
}

63
body {
64
    &#resultpage-body {
65
        background-image: inherit;
Karl Hasselbring's avatar
Karl Hasselbring committed
66
        background-color: @resultpage-background-color;
67
68
69
    }
    &.quicktips {
        background-color: @quicktip-background-color;
70
71
72
    }
}

73
.navbar {
Karl Hasselbring's avatar
Karl Hasselbring committed
74
    border-bottom: 3px solid @metager-orange;
75
76
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    &.navbar-resultpage {
Karl Hasselbring's avatar
Karl Hasselbring committed
77
        border-bottom: 2px solid @metager-orange;
78
79
80
81
82
83
        box-shadow: none;
    }
}

.lSPrev>span,
.lSNext>span {
Karl Hasselbring's avatar
Karl Hasselbring committed
84
    color: @metager-orange;
85
86
}

87
88
89
#map,
#map div {
    display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
90
91
}

92
.nav-tabs>li>a {
93
94
95
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
Phil Höfer's avatar
Phil Höfer committed
96
97
}

Phil Höfer's avatar
Phil Höfer committed
98
99
100
101
.tab-content {
    padding-top: 10px;
}

Phil Höfer's avatar
Phil Höfer committed
102
103
104
105
.hostlabel {
    display: none;
    position: relative;
    margin-top: -14px;
106
107
108
109
110
    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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
}

.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;
}

132
.fa.fa-twitter {
Dominik Hebeler's avatar
Dominik Hebeler committed
133
134
135
    color: #6faedc
}

Phil Höfer's avatar
Phil Höfer committed
136
137
138
139
.dense-col {
    padding: 0px
}

Phil Höfer's avatar
Phil Höfer committed
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
.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;
}

164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
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
181
182
183
}

#spenden {
184
    .overflow-ellipsis;
Phil Höfer's avatar
Phil Höfer committed
185
186
}

187
188
189
190
191
#spruch {
    .author {
        font-size: 80%;
        font-weight: normal;
        font-style: italic;
192
        color: @spruch-author-color;
193
194
195
196
197
198
199
    }
    &>p {
        margin-bottom: 0;
        &+p {
            margin-top: 4px;
        }
    }
Phil Höfer's avatar
Phil Höfer committed
200
201
}

202
203
204
.saver-options {
    display: flex;
    padding-bottom: 15px;
205
    &>input {
206
207
208
209
        min-width: 35%;
        max-width: 80%;
    }
}
210

211
212
213
.ui-effects-transfer {
    border: 1px dotted black;
}
214

215
216
217
218
#header-searchbar {
    flex-grow: 1;
}

Phil Höfer's avatar
Phil Höfer committed
219
.description-container {
220
    margin: 0 !important;
Phil Höfer's avatar
Phil Höfer committed
221
222
}

223
224
.options-list>li {
    &:hover {
225
        background-color: @options-list-li-hover-background-color;
226
227
    }
    &>a {
228
        color: @options-list-li-a-color;
229
230
231
232
233
234
235
236
237
238
        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
239
240
}

241
242
243
244
.js-only {
    display: none;
}

Phil Höfer's avatar
Phil Höfer committed
245
246
247
248
249
250
/* Hier der Style für die Bilder */

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

251
.image-item {
Phil Höfer's avatar
Phil Höfer committed
252
253
254
    width: 150px;
    text-align: center;
    margin-bottom: 10px;
255
256
257
258
    margin: 5px;
    .img {
        box-shadow: 0px 0px 10px 2px @image-item-img-box-shadow-color;
    }
Phil Höfer's avatar
Phil Höfer committed
259
260
}

261
.image-container {
Phil Höfer's avatar
Phil Höfer committed
262
    margin: 10px auto;
263
264
    display: flex;
    flex-wrap: wrap;
Phil Höfer's avatar
Phil Höfer committed
265
266
267
268
269
270
271
}

/* Placeholder für ladende Tabs */

.loader {
    text-align: center;
    margin-top: 20px;
272
273
274
    &>img {
        width: 30px;
    }
Phil Höfer's avatar
Phil Höfer committed
275
276
}

277
278
279
280
281
282
283
284
.mg-pager {
    display: flex;
    justify-content: center;
    &>div {
        border: #aaa solid 1px;
        border-radius: 10px;
        padding: 5px;
        margin-left: 10px;
285
286
        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);
287
288
289
290
291
292
        &:first-child {
            margin-left: 0px;
        }
    }
}

Phil Höfer's avatar
Phil Höfer committed
293
294
295
296
297
298
299
#searchplugin {
    display: none;
    position: fixed;
    top: 50px;
    right: 10px;
    z-index: 501;
    width: 25%;
300
301
302
303
304
    &>div {
        text-align: center;
        padding-top: 5px;
    }
    &>a {
305
        color: @searchplugin-a-color;
306
    }
Phil Höfer's avatar
Phil Höfer committed
307
308
309
310
311
312
313
314
315
}

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

.lightslider {
316
    overflow: visible !important;
Phil Höfer's avatar
Phil Höfer committed
317
318
}

319
320
321
322
#products {
    width: 100%;
    height: 210px;
    padding-bottom: 0;
323
    transform: translate3d(0px, 0px, 0px);
324
325
326
327
328
    margin-bottom: 10px;
}

.lSPrev>i,
.lSNext>i {
329
    background-color: @lsprev-or-lsnext-i-background-color;
Phil Höfer's avatar
Phil Höfer committed
330
331
332
333
334
    padding: 5px;
}

#mark {
    font-size: 13px;
335
336
337
    a {
        margin-left: 3px;
    }
338
339
}

340
341
342
343
344
345
346
347
348
@keyframes quicktip-extender-turn {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

349
350
351
352
353
354
355
/* New result style */

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

356
#resultpage-container {
357
358
359
360
361
362
363
364
365
    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;
    /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
366
367
    background-color: @resultpage-background-color;
    #research-bar-container {
368
369
        grid-area: searchbar;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
370
371
        width: @results-width-max + @padding-small-default * 2;
        max-width: @results-width-max + @padding-small-default * 2;
372
    }
373
374
375
376
377
378
379
380
381
382
    #research-bar-placeholder {
        grid-area: searchbar;
        /**/
        max-width: @results-width-max;
    }
    #foki {
        grid-area: foki;
        /**/
        max-width: @results-width-max;
    }
383
    #results-container {
384
385
386
        grid-area: results;
        /**/
        max-width: @results-width-max;
387
        .alert {
388
            margin: @padding-small-default 0px;
389
        }
390
    }
391
    #additions-container {
392
393
        grid-area: additions;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
394
        //min-width: @additions-width-min;
395
        max-width: @additions-width-max;
396
397
398
        #search-settings {
            display: none;
        }
399
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
400
401
402
403
404
    @media (max-width: @resultpage-breakpoint-large) {
        #research-bar-container {
            width: ~"calc(60% - 1px)";
        }
        grid-template-columns:~"calc(60% - 8px)"~"calc(40% - 8px)";
405
406
        grid-template-areas: "searchbar ." "foki ." "results additions";
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
407
408
409
410
411
    @media (max-width: @resultpage-breakpoint-small) {
        #research-bar-container {
            width: 100%;
        }
        grid-template-columns: 100%;
412
413
414
415
416
        grid-template-areas: "searchbar" "foki" "results";
        #additions-container {
            display: none;
        }
    }
417
418
}

Karl Hasselbring's avatar
Karl Hasselbring committed
419
#research-bar-container {
420
421
    position: fixed;
    z-index: 100;
Karl Hasselbring's avatar
Karl Hasselbring committed
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
    top: 0;
    left: 0;
    background-color: @resultpage-background-color;
    padding: 8px 8px 0px 8px;
    #research-bar {
        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;
437
            }
Karl Hasselbring's avatar
Karl Hasselbring committed
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
            @media (max-width: @openSidebar-breakpoint) {
                .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%;
455
456
                }
            }
457
458
        }
    }
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
}

#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;
            }
477
        }
478
479
480
481
482
    }
    @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)) {
483
        width: 100%;
484
        max-width: 700px;
485
        margin: 0px;
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
        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 */
        }
531
    }
532
}
Karl Hasselbring's avatar
Karl Hasselbring committed
533
534
535
536
537
538
539
540

#spendenaufruf {
    margin-bottom: 10px;
    a {
        background-color: white;
        display: inline-block;
        width: 100%;
    }
541
542
543
544
545
546
}

footer.resultPageFooter {
    max-width: 700px;
    margin-left: 50px;
    margin-top: 20px;
547
    @media (max-width: (2 * @results-margin-left + @results-width-max - 1px)) {
548
549
        margin: 20px 0 0 0;
    }
550
551
552
553
554
555
556
557
558
559
}

/* Searchbar Opener */

#research-bar>.openSidebar {
    display: none;
    margin-right: 10px;
    margin-left: 20px;
}

Karl Hasselbring's avatar
Karl Hasselbring committed
560
@media(max-width: @openSidebar-breakpoint) {
561
562
563
564
565
566
    #resultpage-container>.openSidebar {
        display: none;
    }
    #research-bar>.openSidebar {
        display: initial;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
567
}