result-page.less 14.2 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
    margin: @padding-small-default;
335
    margin-top: 0;
336
    display: grid;
337 338
    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 .";
339
    grid-column-gap: (@padding-small-default * 2);
340 341 342 343
    grid-row-gap: @padding-small-default;
    justify-items: stretch;
    align-items: stretch;
    /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
344
    background-color: @resultpage-background-color;
345 346
    #whitespace {
        grid-area: whitespace;
347
    }
348
    #research-bar-container {
349
        grid-area: searchbar;
350 351 352
        padding-top: @padding-small-default;
        background-color: white;
        box-shadow: 0px 1px 3px 2px white, 1px 0px 1px 2px white;
353
        position: sticky;
354 355 356 357 358 359
    }
    #foki {
        grid-area: foki;
        /**/
        max-width: @results-width-max;
    }
360
    #results-container {
361 362 363
        grid-area: results;
        /**/
        max-width: @results-width-max;
364
        .alert {
365
            margin-bottom: @padding-small-default;
366
        }
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
        #results .alteration {
            margin: (@padding-small-default * 2) 0px;
            margin-top: 0;
            padding: 0px 8px;
            font-weight: 400;
            a i {
                font-size: 80%;
            }
            .original {
                font-size: 80%;
            }
            @media(max-width: @screen-mobile){
                .card;
                margin: @padding-small-default 0px;
                margin-top: 0;
            }
        }
384
    }
385
    #additions-container {
386 387
        grid-area: additions;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
388
        //min-width: @additions-width-min;
389
        max-width: @additions-width-max;
390 391 392
        #search-settings {
            display: none;
        }
393
    }
394 395 396
    footer {
        grid-area: footer;
    }
397
    @media (max-width: @resultpage-breakpoint-max) {
398 399
        @supports (display: grid) {
            grid-template-columns:~"calc(60% - 8px)"~"calc(40% - 8px)";
400
            grid-template-areas: "searchbar ." "foki ." "options ." "results additions" "footer .";
Karl Hasselbring's avatar
Karl Hasselbring committed
401
        }
402
    }
403
    @media (max-width: @resultpage-breakpoint-min) {
404
        margin-left: @padding-small-default;
Karl Hasselbring's avatar
Karl Hasselbring committed
405
        grid-template-columns: 100%;
406
        grid-template-areas: "searchbar" "foki" "options" "results" "footer";
407 408 409 410
        #additions-container {
            display: none;
        }
    }
411 412
}

Karl Hasselbring's avatar
Karl Hasselbring committed
413
#research-bar-container {
414
    position: sticky;
415
    z-index: 5;
Karl Hasselbring's avatar
Karl Hasselbring committed
416 417 418
    top: 0;
    left: 0;
    background-color: @resultpage-background-color;
419
    max-width: @results-width-max;
Karl Hasselbring's avatar
Karl Hasselbring committed
420 421 422
    #research-bar {
        background-color: white;
        border: 1px solid #ccc;
423
        border-bottom: 1px solid @metager-orange;
Karl Hasselbring's avatar
Karl Hasselbring committed
424 425 426 427 428 429 430
        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;
431
            }
432
            @media (max-width: @sidebar-opener-breakpoint) {
Karl Hasselbring's avatar
Karl Hasselbring committed
433 434 435 436 437 438 439 440 441 442 443 444 445 446
                .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;
                    }
                }
447
            }
448 449
        }
    }
450 451 452 453 454 455 456 457 458 459
}

#foki {
    display: flex;
    justify-content: left;
    #foki-box {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
460
        max-width: @results-width-max;
461
        background-color: white;
462
        overflow-x: auto;
Dominik Hebeler's avatar
Dominik Hebeler committed
463
        padding: 8px;
464 465 466
        border-bottom: 1px solid #ccc;
        @media (max-width: @screen-mobile) {
            .card;
467 468
        }
        &>div {
Dominik Hebeler's avatar
Dominik Hebeler committed
469
            padding-right: 16px;
470 471 472 473
            &>a {
                color: black;
            }
            &.active>a {
474 475
                border-bottom: 1px solid black;
                color: black;
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490
            }
            &: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 */
        }
491
    }
492
}
Karl Hasselbring's avatar
Karl Hasselbring committed
493

Dominik Hebeler's avatar
Dominik Hebeler committed
494 495
#options {
    grid-area: options;
496 497 498 499 500 501
    background-color: white;
    max-width: @results-width-max;
    padding: 0 8px;
    @media(max-width: @screen-mobile){
        .card;
    }
Dominik Hebeler's avatar
Dominik Hebeler committed
502 503 504 505 506 507 508 509 510 511 512 513 514
    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);
    }
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
    #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
533 534
    #options-box{
        width: 100%;
535 536
        display: flex;
        justify-content: left;
Dominik Hebeler's avatar
Dominik Hebeler committed
537 538
        overflow: hidden;
        overflow-x: auto;
539 540 541
        border-bottom: 1px solid #ccc;
        padding-bottom: 8px;
        padding-top: 8px;
Dominik Hebeler's avatar
Dominik Hebeler committed
542 543 544 545 546 547 548 549 550 551
        #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;
552
                font-size: 12px;
Dominik Hebeler's avatar
Dominik Hebeler committed
553 554
                label {
                    margin-bottom: 0;
555
                    font-weight: normal;
Dominik Hebeler's avatar
Dominik Hebeler committed
556 557 558 559 560 561 562 563
                }
                select {
                    background-color: white;
                    border: 1px solid #77777780;
                    padding: 3px;
                    border-radius: 5px;
                }
            }
564 565 566
            .option-selector:nth-child(1){
                margin-left: 0;
            }
Dominik Hebeler's avatar
Dominik Hebeler committed
567 568 569 570
        }
    }
}

Karl Hasselbring's avatar
Karl Hasselbring committed
571 572 573 574 575 576 577
#spendenaufruf {
    margin-bottom: 10px;
    a {
        background-color: white;
        display: inline-block;
        width: 100%;
    }
578 579 580
}

footer.resultPageFooter {
581

582
    max-width: @results-width-max;
583
    margin-top: 20px;
584
    @media (max-width: (2 * @results-margin-left + @results-width-max - 1px)) {
585 586
        margin: 20px 0 0 0;
    }
587 588 589
}

/* Searchbar Opener */
590
#research-bar>.sidebar-opener {
591 592 593 594 595
    display: none;
    margin-right: 10px;
    margin-left: 20px;
}

596 597
@media(max-width: @sidebar-opener-breakpoint) {
    #resultpage-container>.sidebar-opener {
598 599
        display: none;
    }
600
    #research-bar>.sidebar-opener {
601 602
        display: initial;
    }
603 604 605 606 607 608 609
}

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

#resultpage-container {
    #results-container {
        float: left;
610
        @media (max-width: @resultpage-breakpoint-min) {
611 612 613 614 615 616 617 618 619 620 621
            float:none;
        }
    }
    #additions-container {
        float: left;
        margin-left: 20px;
        @supports (display: grid) {
            float: none;
            margin-left: 0px;
        }
    }
622 623 624 625 626 627 628
}

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

#resultpage-container-noheader {
    #resultpage-container;
    grid-template-areas: "results";
629 630
}

631
.metager3-unstable-warning {
632 633 634
    text-align: center;
    position: fixed;
    width: 100%;
635
    padding: 8px;
Karl Hasselbring's avatar
Karl Hasselbring committed
636
    @media (max-width: @screen-mobile) {
637 638
        padding: 5px;
    }
639 640
}

641 642
.metager3-unstable-warning-static-pages {
    .metager3-unstable-warning;
643
    top: 0;
644
    padding-right: 50px;
Karl Hasselbring's avatar
Karl Hasselbring committed
645
    @media (max-width: @screen-mobile) {
646 647 648 649 650 651 652 653 654
        padding: 5px;
        padding-right: 50px;
    }
}

.metager3-unstable-warning-resultpage {
    .metager3-unstable-warning;
    bottom: 0;
    margin-bottom: 0px;
Karl Hasselbring's avatar
Karl Hasselbring committed
655 656 657 658 659 660 661 662 663 664 665 666
}

/* 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
667
}