result-page.less 13.5 KB
Newer Older
1
2
3
/* Variables */

// Background color
Karl Hasselbring's avatar
Karl Hasselbring committed
4
@resultpage-background-color: @background-color;
5
// Margin to the left of the results
6
@results-margin-left: 16px;
7
// Min and max widths of the 2 resultpage columns
Karl Hasselbring's avatar
Karl Hasselbring committed
8
@results-width-min: 500px;
9
@results-width-max: 800px;
10
@additions-width-min: 500px;
Karl Hasselbring's avatar
Karl Hasselbring committed
11
@additions-width-max: 500px;
12
// Breakpoints for the 2 resultpage columns
Dominik Hebeler's avatar
Dominik Hebeler committed
13
@resultpage-breakpoint-max: (@results-width-max + @additions-width-max + @padding-small-default * 2 + @padding-small-default * 4 + 6);
14
15
16
@resultpage-breakpoint-min: (@results-width-min + @additions-width-min + @padding-small-default * 4);
@product-shop-color: green;
// The point upon which a .screen-large logo is displayed
Karl Hasselbring's avatar
Karl Hasselbring committed
17
@logo-size-breakpoint: (@results-width-min + @padding-small-default * 2);
18
// The point upon which the sidebar opener switches place
19
@sidebar-opener-breakpoint: (@results-width-max + @padding-small-default * 2 + 60px);
20
// Quicktip background color
Karl Hasselbring's avatar
Karl Hasselbring committed
21
@quicktip-background-color: @color-white;
22
// Color of the Spruch author
Karl Hasselbring's avatar
Karl Hasselbring committed
23
@spruch-author-color: @color-strong-grey;
24
25
/* Styles */

26
27
#header-logo {
    z-index: 0;
28
29
    padding-right: 8px;
    padding-left: 8px;
30
31
32
    h1 {
        .logo;
        margin: 0px;
33
        font-size: 22px;
34
35
        display: inline-block;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
36
37
38
39
40
41
42
43
44
45
46
    .screen-small {
        display: none;
    }
    @media (max-width: @logo-size-breakpoint) {
        .screen-large {
            display: none;
        }
        .screen-small {
            display: initial;
        }
    }
47
48
}

49
body {
50
    &#resultpage-body {
51
        background-image: inherit;
Karl Hasselbring's avatar
Karl Hasselbring committed
52
        background-color: @resultpage-background-color;
53
54
55
    }
    &.quicktips {
        background-color: @quicktip-background-color;
56
57
58
    }
}

59
.navbar {
Karl Hasselbring's avatar
Karl Hasselbring committed
60
    border-bottom: 3px solid @metager-orange;
61
62
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    &.navbar-resultpage {
Karl Hasselbring's avatar
Karl Hasselbring committed
63
        border-bottom: 2px solid @metager-orange;
64
65
66
67
68
69
        box-shadow: none;
    }
}

.lSPrev>span,
.lSNext>span {
Karl Hasselbring's avatar
Karl Hasselbring committed
70
    color: @metager-orange;
71
72
}

73
74
75
#map,
#map div {
    display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
76
77
}

78
.nav-tabs>li>a {
79
80
81
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
Phil Höfer's avatar
Phil Höfer committed
82
83
}

Phil Höfer's avatar
Phil Höfer committed
84
85
86
87
.tab-content {
    padding-top: 10px;
}

Phil Höfer's avatar
Phil Höfer committed
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
.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;
105
    @media (max-width: @screen-mobile) {
106
107
        padding-left: 0px;
    }
Phil Höfer's avatar
Phil Höfer committed
108
109
}

110
.fa.fa-twitter {
Dominik Hebeler's avatar
Dominik Hebeler committed
111
112
113
    color: #6faedc
}

Phil Höfer's avatar
Phil Höfer committed
114
115
116
117
.dense-col {
    padding: 0px
}

Phil Höfer's avatar
Phil Höfer committed
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.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;
}

142
143
144
145
a {
    &#donation {
        &,
        &:visited {
146
            color: inherit;
147
148
        }
    }
Phil Höfer's avatar
Phil Höfer committed
149
150
151
}

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

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

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

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

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

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

191
192
193
194
.js-only {
    display: none;
}

Phil Höfer's avatar
Phil Höfer committed
195
196
197
198
199
200
/* Hier der Style für die Bilder */

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

201
.image-item {
Phil Höfer's avatar
Phil Höfer committed
202
203
204
    width: 150px;
    text-align: center;
    margin-bottom: 10px;
205
206
    margin: 5px;
    .img {
207
        box-shadow: 0px 0px 10px 2px fade(@color-black, 30%);
208
    }
Phil Höfer's avatar
Phil Höfer committed
209
210
}

211
212
.image-container {
    display: flex;
213
214
215
216
217
218
219
220
221
    flex-flow: row wrap;
    > div.image {
        flex: auto;
        margin: 8px;
        text-align: center;
        > a > div {
            display: inline-block;
            background-color: white;
            text-align: center;
222
223
            .card;
            padding: 4px;
224
225
226
227
228
229
230
231
232
233
234
            > img {
                max-width: 150px;
            }
            @media(max-width: 370px){
                > img {
                    max-width: 100%;
                }
            }
            > div {
                font-size: 12px;
                color: #777;
235
                margin-top: 4px;
236
237
238
239
240
241
242
            }
        }

        > a > div:hover {
            box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
        }
    }
Phil Höfer's avatar
Phil Höfer committed
243
244
245
246
247
248
249
}

/* Placeholder für ladende Tabs */

.loader {
    text-align: center;
    margin-top: 20px;
250
251
252
    &>img {
        width: 30px;
    }
Phil Höfer's avatar
Phil Höfer committed
253
254
}

255
256
257
258
259
260
261
262
.mg-pager {
    display: flex;
    justify-content: center;
    &>div {
        border: #aaa solid 1px;
        border-radius: 10px;
        padding: 5px;
        margin-left: 10px;
263
264
        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);
265
266
267
268
269
270
        &:first-child {
            margin-left: 0px;
        }
    }
}

271
272
/*
@searchplugin-a-color: @color-white;
Phil Höfer's avatar
Phil Höfer committed
273
274
275
276
277
278
279
#searchplugin {
    display: none;
    position: fixed;
    top: 50px;
    right: 10px;
    z-index: 501;
    width: 25%;
280
281
282
283
284
    &>div {
        text-align: center;
        padding-top: 5px;
    }
    &>a {
285
        color: @searchplugin-a-color;
286
    }
Phil Höfer's avatar
Phil Höfer committed
287
288
289
290
291
292
293
}

@media(min-width: 768px) {
    #searchplugin {
        display: initial;
    }
}
294
*/
Phil Höfer's avatar
Phil Höfer committed
295

296
297
298
299
#products {
    width: 100%;
    height: 210px;
    padding-bottom: 0;
300
    transform: translate3d(0px, 0px, 0px);
301
302
303
304
305
    margin-bottom: 10px;
}

.lSPrev>i,
.lSNext>i {
306
    background-color: @color-black;
Phil Höfer's avatar
Phil Höfer committed
307
308
309
310
311
    padding: 5px;
}

#mark {
    font-size: 13px;
312
313
314
    a {
        margin-left: 3px;
    }
315
316
}

317
318
319
320
321
322
323
324
325
@keyframes quicktip-extender-turn {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

326
327
328
329
330
331
332
/* New result style */

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

333
#resultpage-container {
334
335
    margin: @padding-small-default;
    display: grid;
336
337
    grid-template-columns: minmax(0px, 150px) @results-width-max @additions-width-max;
    grid-template-areas: "whitespace searchbar ." "whitespace foki ." "whitespace options ." "whitespace results additions" "whitespace footer .";
338
    grid-column-gap: (@padding-small-default * 2);
339
340
341
342
    grid-row-gap: @padding-small-default;
    justify-items: stretch;
    align-items: stretch;
    /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
343
    background-color: @resultpage-background-color;
344
345
    #whitespace {
        grid-area: whitespace;
346
    }
347
    #research-bar-container {
348
        grid-area: searchbar;
349
        position: sticky;
350
351
352
353
354
355
    }
    #foki {
        grid-area: foki;
        /**/
        max-width: @results-width-max;
    }
356
    #results-container {
357
358
359
        grid-area: results;
        /**/
        max-width: @results-width-max;
360
        .alert {
361
            margin-bottom: @padding-small-default;
362
        }
363
    }
364
    #additions-container {
365
366
        grid-area: additions;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
367
        //min-width: @additions-width-min;
368
        max-width: @additions-width-max;
369
370
371
        #search-settings {
            display: none;
        }
372
    }
373
374
375
    footer {
        grid-area: footer;
    }
376
    @media (max-width: @resultpage-breakpoint-max) {
377
378
        @supports (display: grid) {
            grid-template-columns:~"calc(60% - 8px)"~"calc(40% - 8px)";
379
            grid-template-areas: "searchbar ." "foki ." "options ." "results additions" "footer .";
Karl Hasselbring's avatar
Karl Hasselbring committed
380
        }
381
    }
382
    @media (max-width: @resultpage-breakpoint-min) {
383
        margin-left: @padding-small-default;
Karl Hasselbring's avatar
Karl Hasselbring committed
384
        grid-template-columns: 100%;
385
        grid-template-areas: "searchbar" "foki" "options" "results" "footer";
386
387
388
389
        #additions-container {
            display: none;
        }
    }
390
391
}

Karl Hasselbring's avatar
Karl Hasselbring committed
392
#research-bar-container {
393
    position: sticky;
394
    z-index: 5;
Karl Hasselbring's avatar
Karl Hasselbring committed
395
396
397
    top: 0;
    left: 0;
    background-color: @resultpage-background-color;
398
    max-width: @results-width-max;
Karl Hasselbring's avatar
Karl Hasselbring committed
399
400
401
    #research-bar {
        background-color: white;
        border: 1px solid #ccc;
402
        border-bottom: 1px solid @metager-orange;
Karl Hasselbring's avatar
Karl Hasselbring committed
403
404
405
406
407
408
409
        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;
410
            }
411
            @media (max-width: @sidebar-opener-breakpoint) {
Karl Hasselbring's avatar
Karl Hasselbring committed
412
413
414
415
416
417
418
419
420
421
422
423
424
425
                .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;
                    }
                }
426
            }
427
428
        }
    }
429
430
431
432
433
434
435
436
437
438
}

#foki {
    display: flex;
    justify-content: left;
    #foki-box {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
439
        max-width: @results-width-max;
440
        background-color: white;
441
        overflow-x: auto;
Dominik Hebeler's avatar
Dominik Hebeler committed
442
        padding: 8px;
443
444
445
        border-bottom: 1px solid #ccc;
        @media (max-width: @screen-mobile) {
            .card;
446
447
        }
        &>div {
Dominik Hebeler's avatar
Dominik Hebeler committed
448
            padding-right: 16px;
449
450
451
452
            &>a {
                color: black;
            }
            &.active>a {
453
454
                border-bottom: 1px solid black;
                color: black;
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
            }
            &: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 */
        }
470
    }
471
}
Karl Hasselbring's avatar
Karl Hasselbring committed
472

Dominik Hebeler's avatar
Dominik Hebeler committed
473
474
#options {
    grid-area: options;
475
476
477
478
479
480
    background-color: white;
    max-width: @results-width-max;
    padding: 0 8px;
    @media(max-width: @screen-mobile){
        .card;
    }
Dominik Hebeler's avatar
Dominik Hebeler committed
481
482
483
484
485
486
487
488
489
490
491
492
493
    input[type=checkbox]{
        display: none;
    }
    .scrollbox {
        max-height: 0;
        transform-origin: top;
        transform: scaleY(0);
        transition: transform .5s, max-height .5s;
    }
    input[type=checkbox]:checked + div.scrollbox {
        max-height:200px;
        transform: scaleY(1);
    }
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
    #toggle-box {
        display: flex;
        align-items: center;
        #result-count {
            flex-grow: 1;
            text-align: right;
        }
        #options-reset {
            margin-left: 10px;
        }
        .option-toggle {
            text-align: center;
            label{
                font-weight: normal;
                margin-bottom: 0;
            }
        }
    }
Dominik Hebeler's avatar
Dominik Hebeler committed
512
513
    #options-box{
        width: 100%;
514
515
        display: flex;
        justify-content: left;
Dominik Hebeler's avatar
Dominik Hebeler committed
516
517
        overflow: hidden;
        overflow-x: auto;
518
519
520
        border-bottom: 1px solid #ccc;
        padding-bottom: 8px;
        padding-top: 8px;
Dominik Hebeler's avatar
Dominik Hebeler committed
521
522
523
524
525
526
527
528
529
530
        #options-items {
            display: -ms-flexbox;
            display: flex;
            align-items: center;
            .option-selector {
                display: flex;
                flex-direction: column;
                margin: 0 8px;
                justify-content: center;
                align-items: center;
531
                font-size: 12px;
Dominik Hebeler's avatar
Dominik Hebeler committed
532
533
                label {
                    margin-bottom: 0;
534
                    font-weight: normal;
Dominik Hebeler's avatar
Dominik Hebeler committed
535
536
537
538
539
540
541
542
                }
                select {
                    background-color: white;
                    border: 1px solid #77777780;
                    padding: 3px;
                    border-radius: 5px;
                }
            }
543
544
545
            .option-selector:nth-child(1){
                margin-left: 0;
            }
Dominik Hebeler's avatar
Dominik Hebeler committed
546
547
548
549
        }
    }
}

Karl Hasselbring's avatar
Karl Hasselbring committed
550
551
552
553
554
555
556
#spendenaufruf {
    margin-bottom: 10px;
    a {
        background-color: white;
        display: inline-block;
        width: 100%;
    }
557
558
559
}

footer.resultPageFooter {
560

561
    max-width: @results-width-max;
562
    margin-top: 20px;
563
    @media (max-width: (2 * @results-margin-left + @results-width-max - 1px)) {
564
565
        margin: 20px 0 0 0;
    }
566
567
568
}

/* Searchbar Opener */
569
#research-bar>.sidebar-opener {
570
571
572
573
574
    display: none;
    margin-right: 10px;
    margin-left: 20px;
}

575
576
@media(max-width: @sidebar-opener-breakpoint) {
    #resultpage-container>.sidebar-opener {
577
578
        display: none;
    }
579
    #research-bar>.sidebar-opener {
580
581
        display: initial;
    }
582
583
584
585
586
587
588
}

/* Style-fixes for browsers that do not support grid layout */

#resultpage-container {
    #results-container {
        float: left;
589
        @media (max-width: @resultpage-breakpoint-min) {
590
591
592
593
594
595
596
597
598
599
600
            float:none;
        }
    }
    #additions-container {
        float: left;
        margin-left: 20px;
        @supports (display: grid) {
            float: none;
            margin-left: 0px;
        }
    }
601
602
603
604
605
606
607
}

/* Style for resultpage container without any header content */

#resultpage-container-noheader {
    #resultpage-container;
    grid-template-areas: "results";
608
609
}

610
.metager3-unstable-warning {
611
612
613
    text-align: center;
    position: fixed;
    width: 100%;
614
    padding: 8px;
Karl Hasselbring's avatar
Karl Hasselbring committed
615
    @media (max-width: @screen-mobile) {
616
617
        padding: 5px;
    }
618
619
}

620
621
.metager3-unstable-warning-static-pages {
    .metager3-unstable-warning;
622
    top: 0;
623
    padding-right: 50px;
Karl Hasselbring's avatar
Karl Hasselbring committed
624
    @media (max-width: @screen-mobile) {
625
626
627
628
629
630
631
632
633
        padding: 5px;
        padding-right: 50px;
    }
}

.metager3-unstable-warning-resultpage {
    .metager3-unstable-warning;
    bottom: 0;
    margin-bottom: 0px;
Karl Hasselbring's avatar
Karl Hasselbring committed
634
635
636
637
638
639
640
641
642
643
644
645
}

/* Settings button and checkboxes */

.settings-checkbox {
    margin-top: 5px;
    margin-bottom: 5px;
}

.settings-checkbox .settings-icon {
    margin-left: 5px;
    font-size: 12px;
Karl Hasselbring's avatar
Karl Hasselbring committed
646
}