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

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