result.less 6.95 KB
Newer Older
1
2
@result-font-large: 18px;
@result-font-medium: 16px;
3
4
@result-font-url: 14px;
@result-font-small: 12px;
Karl Hasselbring's avatar
Karl Hasselbring committed
5
@result-description-color: @color-black;
6
@result-image-border-color: @color-almost-white;
7
.result {
8
9
10
11
12

    // Remove the margin from the first result because it already has margin from the grid ruleset
    &:nth-child(1) {
        margin-top: 0;
    }
13
    margin: (@padding-small-default * 2) 0px;
14
15
    @media(max-width: @screen-mobile){
        .card;
16
        margin: @padding-small-default 0px;
17
    }
18
    
Dominik Hebeler's avatar
Dominik Hebeler committed
19
    padding: 0px 8px;
20
21
22
23
24
25
26
27
    width: 100%;
    .result-header {
        display: flex;
        flex-wrap: wrap;
        .result-headline {
            width: 100%;
            display: flex;
            justify-content: space-between;
28
            align-items: center;
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
            .result-title {
                margin: 0px;
                &>* {
                    font-size: @result-font-large;
                }
                .overflow-ellipsis;
                .result-price {
                    padding: 0px 10px;
                    color: white;
                    background-color: #666699;
                    border-radius: 3px;
                }
                a {
                    &,
                    &:active,
                    &:hover,
                    &:focus,
                    &:visited {
                        color: black;
                        text-decoration: none;
                    }
                }
            }
            .result-hoster {
                font-size: @result-font-small;
                margin-left: 20px;
                color: #808080;
                white-space: nowrap;
            }
58
        }
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
        .result-subheadline {
            width: 100%;
            display: flex;
            .result-link {
                .overflow-ellipsis;
                display: block;
                font-size: @result-font-small;
                width: fit-content;
                max-width: 100%;
                &,
                &:active,
                &:hover,
                &:focus,
                &:visited {
                    font-size: @result-font-url;
                    text-decoration: none;
                }
76
77
78
                &:visited {
                    color: #8091A2;
                }
79
                span.advertisement-mark {
80
81
82
                    border-color: #0d9c0d;
                    color: #0d9c0d;
                    padding: 1px;
83
84
85
86
                    border-radius: 4px;
                    font-weight: bold;
                    font-size: 10px;
                    margin-right: 10px;
87
                    border: 1px solid;
88
                }
89
            }
90
            span.partnershop-info {
91
92
93
94
                background-color: white;
                color: #333;
                text-shadow: none;
                font-weight: inherit;
Karl Hasselbring's avatar
Karl Hasselbring committed
95
                border: 1px solid #686868;
96
                padding: 2px;
97
                margin-left: 20px;
98
99
100
101
                border-radius: 4px;
                font-size: 10px;
                margin-right: 10px;
            }
102
        }
103
    }
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
    .result-body {
        margin-top: 1px;
        display: flex;
        text-align: justify;
        .result-image {
            width: 180px;
            padding-right: 10px;
            margin-right: 10px;
            & img {
                display: block;
                max-width: 160px;
                max-height: 120px;
                width: auto;
                height: auto;
            }
        }
        .result-description {
            margin-bottom: 3px;
            color: @result-description-color;
            font-size: 13px;
            line-height: 1.3;
            clear: both;
Dominik Hebeler's avatar
Dominik Hebeler committed
126
            overflow: hidden;
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
            .date {
                font-weight: bold;
            }
            p {
                margin: 0;
                margin-bottom: 4px;
            }
            img {
                margin: 5px;
                margin-left: 0px;
                margin-right: 15px;
                height: auto;
                width: auto;
                max-width: 120px;
                max-height: 200px;
142
                border: solid 1px @result-image-border-color;
143
144
            }
        }
145
    }
146
    .result-footer {
Dominik Hebeler's avatar
Dominik Hebeler committed
147
        margin-top: 2px;
148
149
        display: flex;
        flex-wrap: wrap;
150
151
        &>* {
            margin-right: 20px;
152
153
154
155
156
157
158
159
160
161
162
163
164
        }
        .result-open,
        .result-open-newtab {
            &,
            &:active,
            &:hover,
            &:focus,
            &:visited {
                color: black;
                font-size: @result-font-small;
                text-decoration: none;
            }
        }
165
        @media (max-width: @screen-mobile) {
166
            .result-open-newtab {
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
                display: none;
            }
        }
        .result-open-proxy {
            &,
            &:active,
            &:hover,
            &:focus,
            &:visited {
                color: black;
                font-size: @result-font-small;
                text-decoration: none;
            }
            white-space: nowrap;
            img {
                margin-bottom: 0px;
                margin-right: 2px;
            }
        }
186
        .open-result-options, .close-result-options {
187
188
189
190
            font-weight: normal;
            font-size: @result-font-small;
            flex-grow: 1;
            text-align: right;
Dominik Hebeler's avatar
Dominik Hebeler committed
191
            margin-right: 0;
192
        }
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
        .close-result-options {
            display: none;
        }
    }

    /* CSS Rules for the result options */
    .result-toggle{
        &:checked + .result-footer > .open-result-options {
            display: none;
        }
        &:checked + .result-footer > .close-result-options {
            display: initial;
        }
        &:checked + .result-footer + .result-options > .options {
            max-height: 150px;
            overflow: initial;
            opacity: 1;
        }
211
    }
212

213
214
215
    .result-footer * {
        font-size: 10px !important;
    }
216
217
218
219
220
221
222
223
224
225
    &.ad .ad-label {
        &,
        & a,
        & a:active,
        & a:hover,
        & a:focus,
        & a:visited {
            font-size: @result-font-small;
            color: #808080;
        }
226
    }
227
228
229
230
    &>.remover {
        cursor: pointer;
        text-align: right;
        color: #777;
231
    }
232
233
    &>.result-options {
        &>.options {
234
            font-size: @result-font-small;
235
            border-top: 1px solid #ccc;
236
237
238
239
240
241
242
243
            width: 100%;
            text-align: right;
            overflow: hidden;
            max-height: 0px;
            transition: all 1s;
            -webkit-transition: all 1s;
            opacity: 0;
        }
244
245
        ul {
            display: flex;
246
            flex-wrap: wrap;
247
            margin-bottom: 0;
248
249
            li {
                font-size: @result-font-small;
250
                margin: 8px 16px 8px 0;
251
            }
252
253
254
255
            @media(max-width: @screen-mobile){
                li:nth-child(1){
                    display: none;
                }
256
257
258
259
            }
            li>a {
                color: @link-color;
            }
260
        }
261
        
262
    }
263
}