result-page.less 13.9 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 10
@results-width-max: 800px;
@additions-width-min: 300px;
Karl Hasselbring's avatar
Karl Hasselbring committed
11
@additions-width-max: 500px;
12 13 14 15 16
// Breakpoints for the 2 resultpage columns
@resultpage-breakpoint-max: (@results-width-max + @additions-width-max + @padding-small-default * 4);
@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-left: @results-margin-left;
336 337
    display: grid;
    grid-template-columns: @results-width-max @additions-width-max;
Dominik Hebeler's avatar
Dominik Hebeler committed
338
    grid-template-areas: "searchbar ." "foki ." "options ." "results additions";
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 345
    background-color: @resultpage-background-color;
    #research-bar-container {
346
        grid-area: searchbar;
347
    }
348 349 350 351 352 353 354 355 356 357
    #research-bar-placeholder {
        grid-area: searchbar;
        /**/
        max-width: @results-width-max;
    }
    #foki {
        grid-area: foki;
        /**/
        max-width: @results-width-max;
    }
358
    #results-container {
359 360 361
        grid-area: results;
        /**/
        max-width: @results-width-max;
362
        .alert {
363
            margin-bottom: @padding-small-default;
364
        }
365
    }
366
    #additions-container {
367 368
        grid-area: additions;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
369
        //min-width: @additions-width-min;
370
        max-width: @additions-width-max;
371 372 373
        #search-settings {
            display: none;
        }
374
    }
375
    @media (max-width: @resultpage-breakpoint-max) {
376 377
        @supports (display: grid) {
            grid-template-columns:~"calc(60% - 8px)"~"calc(40% - 8px)";
Dominik Hebeler's avatar
Dominik Hebeler committed
378
            grid-template-areas: "searchbar ." "foki ." "options ." "results additions";
Karl Hasselbring's avatar
Karl Hasselbring committed
379
        }
380
    }
381
    @media (max-width: @resultpage-breakpoint-min) {
382
        margin-left: @padding-small-default;
Karl Hasselbring's avatar
Karl Hasselbring committed
383
        grid-template-columns: 100%;
Dominik Hebeler's avatar
Dominik Hebeler committed
384
        grid-template-areas: "searchbar" "foki" "options" "results";
385 386 387 388
        #additions-container {
            display: none;
        }
    }
389 390
}

Karl Hasselbring's avatar
Karl Hasselbring committed
391
#research-bar-container {
392
    margin-left: (@results-margin-left - @padding-small-default);
393
    position: fixed;
394
    z-index: 5;
Karl Hasselbring's avatar
Karl Hasselbring committed
395 396 397
    top: 0;
    left: 0;
    background-color: @resultpage-background-color;
398 399 400
    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);
401
    @media (max-width: @resultpage-breakpoint-max) {
402 403 404 405
        @supports (display: grid) {
            width: ~"calc(60% - 6px)";
        }
    }
406
    @media (max-width: @resultpage-breakpoint-min) {
407 408 409
        width: 100%;
        margin-left: 0px;
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
410 411 412
    #research-bar {
        background-color: white;
        border: 1px solid #ccc;
413
        border-bottom: 1px solid @metager-orange;
Karl Hasselbring's avatar
Karl Hasselbring committed
414 415 416 417 418 419 420
        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;
421
            }
422
            @media (max-width: @sidebar-opener-breakpoint) {
Karl Hasselbring's avatar
Karl Hasselbring committed
423 424 425 426 427 428 429 430 431 432 433 434 435 436
                .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;
                    }
                }
437
            }
438 439
        }
    }
440 441 442 443 444 445 446 447 448 449
}

#foki {
    display: flex;
    justify-content: left;
    #foki-box {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
450
        max-width: @results-width-max;
451
        background-color: white;
452
        overflow-x: auto;
453
        padding: 8px;
454 455 456
        border-bottom: 1px solid #ccc;
        @media (max-width: @screen-mobile) {
            .card;
457 458 459 460 461 462 463
        }
        &>div {
            padding: 0px 10px;
            &>a {
                color: black;
            }
            &.active>a {
464 465
                border-bottom: 1px solid black;
                color: black;
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
            }
            &: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 */
        }
481
    }
482
}
Karl Hasselbring's avatar
Karl Hasselbring committed
483

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

Karl Hasselbring's avatar
Karl Hasselbring committed
561 562 563 564 565 566 567
#spendenaufruf {
    margin-bottom: 10px;
    a {
        background-color: white;
        display: inline-block;
        width: 100%;
    }
568 569 570
}

footer.resultPageFooter {
571
    max-width: @results-width-max;
572
    margin-top: 20px;
573
    @media (max-width: (2 * @results-margin-left + @results-width-max - 1px)) {
574 575
        margin: 20px 0 0 0;
    }
576 577 578 579
}

/* Searchbar Opener */

580
#research-bar>.sidebar-opener {
581 582 583 584 585
    display: none;
    margin-right: 10px;
    margin-left: 20px;
}

586 587
@media(max-width: @sidebar-opener-breakpoint) {
    #resultpage-container>.sidebar-opener {
588 589
        display: none;
    }
590
    #research-bar>.sidebar-opener {
591 592
        display: initial;
    }
593 594 595 596 597 598 599
}

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

#resultpage-container {
    #results-container {
        float: left;
600
        @media (max-width: @resultpage-breakpoint-min) {
601 602 603 604 605 606 607 608 609 610 611
            float:none;
        }
    }
    #additions-container {
        float: left;
        margin-left: 20px;
        @supports (display: grid) {
            float: none;
            margin-left: 0px;
        }
    }
612 613 614 615 616 617 618
}

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

#resultpage-container-noheader {
    #resultpage-container;
    grid-template-areas: "results";
619 620
}

621
.metager3-unstable-warning {
622 623 624
    text-align: center;
    position: fixed;
    width: 100%;
625
    padding: 15px;
Karl Hasselbring's avatar
Karl Hasselbring committed
626
    @media (max-width: @screen-mobile) {
627 628
        padding: 5px;
    }
629 630
}

631 632
.metager3-unstable-warning-static-pages {
    .metager3-unstable-warning;
633
    top: 0;
634
    padding-right: 50px;
Karl Hasselbring's avatar
Karl Hasselbring committed
635
    @media (max-width: @screen-mobile) {
636 637 638 639 640 641 642 643 644
        padding: 5px;
        padding-right: 50px;
    }
}

.metager3-unstable-warning-resultpage {
    .metager3-unstable-warning;
    bottom: 0;
    margin-bottom: 0px;
Karl Hasselbring's avatar
Karl Hasselbring committed
645 646 647 648 649 650 651 652 653 654 655 656
}

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