result-page.less 12.6 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: 16px;
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
//
@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;
//
@logo-size-breakpoint: (@results-width-min + @padding-small-default * 2);
//
@openSidebar-breakpoint: (@results-width-max + @padding-small-default * 2 + 60px);
//
39
40
41
42
43
44
#header-logo {
    z-index: 0;
    padding-right: 10px;
    h1 {
        .logo;
        margin: 0px;
45
        font-size: 22px;
46
47
        display: inline-block;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
48
49
50
51
52
53
54
55
56
57
58
59
    .screen-small {
        display: none;
    }
    .screen-large {}
    @media (max-width: @logo-size-breakpoint) {
        .screen-large {
            display: none;
        }
        .screen-small {
            display: initial;
        }
    }
60
61
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Placeholder für ladende Tabs */

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

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

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

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

314
315
316
317
#products {
    width: 100%;
    height: 210px;
    padding-bottom: 0;
318
    transform: translate3d(0px, 0px, 0px);
319
320
321
322
323
    margin-bottom: 10px;
}

.lSPrev>i,
.lSNext>i {
324
    background-color: @lsprev-or-lsnext-i-background-color;
Phil Höfer's avatar
Phil Höfer committed
325
326
327
328
329
    padding: 5px;
}

#mark {
    font-size: 13px;
330
331
332
    a {
        margin-left: 3px;
    }
333
334
}

335
336
337
338
339
340
341
342
343
@keyframes quicktip-extender-turn {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

344
345
346
347
348
349
350
/* New result style */

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

351
#resultpage-container {
352
    margin: @padding-small-default;
353
    margin-left: @results-margin-left;
354
355
356
    display: grid;
    grid-template-columns: @results-width-max @additions-width-max;
    grid-template-areas: "searchbar ." "foki ." "results additions";
357
    grid-column-gap: (@padding-small-default * 2);
358
359
360
361
    grid-row-gap: @padding-small-default;
    justify-items: stretch;
    align-items: stretch;
    /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
362
363
    background-color: @resultpage-background-color;
    #research-bar-container {
364
        grid-area: searchbar;
365
    }
366
367
368
369
370
371
372
373
374
375
    #research-bar-placeholder {
        grid-area: searchbar;
        /**/
        max-width: @results-width-max;
    }
    #foki {
        grid-area: foki;
        /**/
        max-width: @results-width-max;
    }
376
    #results-container {
377
378
379
        grid-area: results;
        /**/
        max-width: @results-width-max;
380
        .alert {
381
            margin-bottom: @padding-small-default;
382
        }
383
    }
384
    #additions-container {
385
386
        grid-area: additions;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
387
        //min-width: @additions-width-min;
388
        max-width: @additions-width-max;
389
390
391
        #search-settings {
            display: none;
        }
392
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
393
    @media (max-width: @resultpage-breakpoint-large) {
394
395
396
        @supports (display: grid) {
            grid-template-columns:~"calc(60% - 8px)"~"calc(40% - 8px)";
            grid-template-areas: "searchbar ." "foki ." "results additions";
Karl Hasselbring's avatar
Karl Hasselbring committed
397
        }
398
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
399
    @media (max-width: @resultpage-breakpoint-small) {
400
        margin-left: @padding-small-default;
Karl Hasselbring's avatar
Karl Hasselbring committed
401
        grid-template-columns: 100%;
402
403
404
405
406
        grid-template-areas: "searchbar" "foki" "results";
        #additions-container {
            display: none;
        }
    }
407
408
}

Karl Hasselbring's avatar
Karl Hasselbring committed
409
#research-bar-container {
410
    margin-left: (@results-margin-left - @padding-small-default);
411
412
    position: fixed;
    z-index: 100;
Karl Hasselbring's avatar
Karl Hasselbring committed
413
414
415
    top: 0;
    left: 0;
    background-color: @resultpage-background-color;
416
417
418
419
420
421
422
423
424
425
426
427
    padding: @padding-small-default @padding-small-default 0px @padding-small-default;
    width: (@results-width-max + 2 * @padding-small-default);
    max-width: (@results-width-max + 2 * @padding-small-default);
    @media (max-width: @resultpage-breakpoint-large) {
        @supports (display: grid) {
            width: ~"calc(60% - 6px)";
        }
    }
    @media (max-width: @resultpage-breakpoint-small) {
        width: 100%;
        margin-left: 0px;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
428
429
430
431
432
433
434
435
436
437
438
    #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;
439
            }
Karl Hasselbring's avatar
Karl Hasselbring committed
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;
                    }
                }
455
            }
456
457
        }
    }
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
}

#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;
            }
476
        }
477
478
479
480
481
    }
    @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)) {
482
        width: 100%;
483
        max-width: 700px;
484
        margin: 0px;
485
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
        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 */
        }
530
    }
531
}
Karl Hasselbring's avatar
Karl Hasselbring committed
532
533
534
535
536
537
538
539

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

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

/* Searchbar Opener */

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

Karl Hasselbring's avatar
Karl Hasselbring committed
558
@media(max-width: @openSidebar-breakpoint) {
559
560
561
562
563
564
    #resultpage-container>.openSidebar {
        display: none;
    }
    #research-bar>.openSidebar {
        display: initial;
    }
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
}

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

#resultpage-container {
    #results-container {
        float: left;
        @media (max-width: @resultpage-breakpoint-small) {
            float:none;
        }
    }
    #additions-container {
        float: left;
        margin-left: 20px;
        @supports (display: grid) {
            float: none;
            margin-left: 0px;
        }
    }
584
585
586
587
588
589
590
}

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

#resultpage-container-noheader {
    #resultpage-container;
    grid-template-areas: "results";
Karl Hasselbring's avatar
Karl Hasselbring committed
591
}