result.less 4.79 KB
Newer Older
1 2
/* Ergebnis */

3 4 5
@result-font-large: 18px;
@result-font-medium: 16px;
@result-font-small: 14px;
6
.result {
7
    .card;
Karl Hasselbring's avatar
Karl Hasselbring committed
8
    margin: @resultpage-leftbox-min-dist-top-bottom 0px @resultpage-leftbox-min-dist-top-bottom 0px;
9
    padding: 15px;
10 11
    width: 100%;
    .result-header {
12 13 14 15 16
        .result-headline {
            display: flex;
            justify-content: space-between;
            .result-title {
                margin: 0px;
17 18 19
                &>* {
                    font-size: @result-font-large;
                }
20
                .overflow-ellipsis;
21 22 23
                .result-price {
                    padding: 0px 10px;
                    color: white;
24
                    background-color: #666699;
25 26
                    border-radius: 3px;
                }
27 28 29 30 31 32 33 34 35
                a {
                    &,
                    &:active,
                    &:hover,
                    &:focus,
                    &:visited {
                        color: black;
                        text-decoration: none;
                    }
36 37
                }
            }
38
            .result-hoster {
39
                font-size: @result-font-small;
40 41
                margin-left: 20px;
                color: #808080;
Karl Hasselbring's avatar
Karl Hasselbring committed
42
                white-space: nowrap;
43
            }
44 45
        }
        .result-link {
46
            .overflow-ellipsis;
47
            display: block;
48
            font-size: @result-font-small;
49 50
            width: fit-content;
            max-width: 100%;
51 52 53 54 55
            &,
            &:active,
            &:hover,
            &:focus,
            &:visited {
56 57
                color: #333;
                text-decoration: none;
58
            }
59 60
        }
    }
Karl Hasselbring's avatar
Karl Hasselbring committed
61
    .result-body {
62
        margin-top: 10px;
63
        width: 90%;
Karl Hasselbring's avatar
Karl Hasselbring committed
64
        display: flex;
65
        text-align: justify;
Karl Hasselbring's avatar
Karl Hasselbring committed
66
        .result-image {
67 68 69
            width: 180px;
            padding-right: 10px;
            margin-right: 10px;
Karl Hasselbring's avatar
Karl Hasselbring committed
70
            & img {
71 72 73 74 75
                display: block;
                max-width: 160px;
                max-height: 120px;
                width: auto;
                height: auto;
Karl Hasselbring's avatar
Karl Hasselbring committed
76 77
            }
        }
78 79
        .result-description {
            margin-bottom: 3px;
80
            word-break: break-word;
81
            color: @result-description-color;
82
            font-size: @result-font-medium;
83 84 85 86
            line-height: 1.3;
            clear: both;
            .date {
                font-weight: bold;
87
            }
88 89 90
            p {
                margin: 0;
                margin-bottom: 4px;
91
            }
92 93 94 95 96 97 98 99 100
            img {
                margin: 5px;
                margin-left: 0px;
                margin-right: 15px;
                height: auto;
                width: auto;
                max-width: 120px;
                max-height: 200px;
                border: solid 1px @result-description-img-border-color;
101 102 103
            }
        }
    }
104
    .result-footer {
105
        margin-top: 10px;
106 107
        display: flex;
        flex-wrap: wrap;
108 109
        &>*:not(:first-child) {
            margin-left: 20px;
110
        }
111
        .result-open,
112
        .result-open-newtab {
113 114 115 116 117 118 119 120 121
            &,
            &:active,
            &:hover,
            &:focus,
            &:visited {
                color: black;
                font-size: @result-font-small;
                text-decoration: none;
            }
122 123 124 125 126
        }
        @media (max-width: 499px) {
            .result-open-newtab {
                display: none;
            }
127
        }
128
        .result-open-proxy {
129 130 131 132 133 134 135 136 137 138
            &,
            &:active,
            &:hover,
            &:focus,
            &:visited {
                color: black;
                font-size: @result-font-small;
                text-decoration: none;
            }
            white-space: nowrap;
139
            margin-left: 25px;
140 141 142 143 144
            img {
                margin-bottom: 0px;
                margin-right: 2px
            }
        }
145 146 147 148
        .open-result-options {
            font-weight: normal;
            flex-grow: 1;
            text-align: right;
149 150
        }
    }
151
    &.ad .ad-label {
152 153 154 155 156 157 158
        &,
        & a,
        & a:active,
        & a:hover,
        & a:focus,
        & a:visited {
            font-size: @result-font-small;
159
            color: #808080;
160
        }
161
    }
162 163 164 165
    &>.remover {
        cursor: pointer;
        text-align: right;
        color: #777;
166
    }
167 168 169 170 171 172
    &>.result-options {
        &>.options {
            width: 100%;
            text-align: right;
            overflow: hidden;
            max-height: 0px;
173 174 175
            transition: all 1.0s;
            -webkit-transition: all 1.0s;
            opacity: 0;
176
        }
177
        &>.result-toggle:checked+.options {
178
            max-height: 150px;
179
            overflow: initial;
180
            opacity: 1;
181 182 183 184 185 186
        }
        li {
            font-size: 14px;
            text-transform: uppercase;
            margin: 10px 0;
        }
187
        li>a {
188 189 190
            color: black;
        }
    }
191
}