summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/src/less/logicodev/infobox.less
blob: c5bdfa612e5e4a413acefd152b9639af30b9844a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.infobox {

    .panel-heading{
        background-color: @dim-gray;

        .panel-title{
            font-weight: 700;
        }
    }

    .header_url {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }


    p{
        font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important;
        font-style: italic;
    }

    img{
        max-height: "250px";
    }

    .btn{
        background-color: @dark-blue;
        border: none;

        a{
            color: white;
            margin: 5px;
        }
    }

    .infobox_part {
        margin-bottom: 20px;
        word-wrap: break-word;
        table-layout: fixed;

    }

    .infobox_part:last-child {
        margin-bottom: 0;
    }

    .infobox_toggle {
        width: 100%;
        text-align: center;
        margin-bottom: 0px;
        cursor: pointer;
    }

    .infobox_toggle:hover {
        background: @mild-gray;
    }

    // Shrink infobox size when toggle is off
    .infobox_checkbox ~ .infobox_body {
        max-height: 300px;
        overflow: hidden;
    }
    .infobox_checkbox:checked ~ .infobox_body {
        max-height: none;
    }

    // Show toggle button as down when infobox is shrunk
    .infobox_checkbox ~ .infobox_toggle .infobox_label_down {
        display: block;
    }
    .infobox_checkbox ~ .infobox_toggle .infobox_label_up {
        display: none;
    }

    // Show toggle button as up when infobox is expanded
    .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_up {
        display: block;
    }
    .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_down {
        display: none;
    }

    // Hide main image when toggle is off
    .infobox_checkbox ~ .infobox_body img.infobox_part {
        display: none;
    }
    .infobox_checkbox:checked ~ .infobox_body img.infobox_part {
        display: block;
    }
}