result-page.less 13.6 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
    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
        position: sticky;
351 352 353 354 355 356
    }
    #foki {
        grid-area: foki;
        /**/
        max-width: @results-width-max;
    }
357
    #results-container {
358 359 360
        grid-area: results;
        /**/
        max-width: @results-width-max;
361
        .alert {
362
            margin-bottom: @padding-small-default;
363
        }
364
    }
365
    #additions-container {
366 367
        grid-area: additions;
        /**/
Karl Hasselbring's avatar
Karl Hasselbring committed
368
        //min-width: @additions-width-min;
369
        max-width: @additions-width-max;
370 371 372
        #search-settings {
            display: none;
        }
373
    }
374 375 376
    footer {
        grid-area: footer;
    }
377
    @media (max-width: @resultpage-breakpoint-max) {
378 379
        @supports (display: grid) {
            grid-template-columns:~"calc(60% - 8px)"~"calc(40% - 8px)";
380
            grid-template-areas: "searchbar ." "foki ." "options ." "results additions" "footer .";
Karl Hasselbring's avatar
Karl Hasselbring committed
381
        }
382
    }
383
    @media (max-width: @resultpage-breakpoint-min) {
384
        margin-left: @padding-small-default;
Karl Hasselbring's avatar
Karl Hasselbring committed
385
        grid-template-columns: 100%;
386
        grid-template-areas: "searchbar" "foki" "options" "results" "footer";
387 388 389 390
        #additions-container {
            display: none;
        }
    }
391 392
}

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

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

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

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

footer.resultPageFooter {
561

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

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

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

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

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

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

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

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

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

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

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