quicktips.less 4.34 KB
Newer Older
1
/* Quicktips */
2

3 4 5
@quicktip-font-large: @result-font-large;
@quicktip-font-medium: @result-font-medium;
@quicktip-font-small: @result-font-small;
6 7 8 9
#quicktips {
    display: flex;
    flex-direction: column;
    .quicktip {
10
        .card-light;
11 12 13 14 15
        position: relative;
        details[open=""] .quicktip-extender {
            animation-name: quicktip-extender-turn;
            animation-fill-mode: forwards;
        }
16
        margin: 10px 0px;
17
        padding: 10px 10px 10px 10px;
18 19
        width: 100%;
        border: 1px solid #ccc;
20
        background-color: white;
21 22
        details:not([open=""]) {
            .quicktip-summary p {
23
                .overflow-ellipsis;
24 25 26
            }
        }
        .quicktip-summary {
27 28
            .quicktip-headline {
                width: 100%;
29 30
                display: flex;
                justify-content: space-between;
31 32 33 34
                .quicktip-title,
                .quicktip-title a {
                    flex-grow: 0;
                    margin: 0px 0px 5px 0px;
Karl Hasselbring's avatar
Karl Hasselbring committed
35
                    font-size: 13px;
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
                    display: flex;
                    justify-content: space-between;
                }
                .space-taker {
                    flex-grow: 1;
                }
                .quicktip-hoster {
                    flex-grow: 0;
                    font-size: @quicktip-font-small;
                    color: #808080;
                    white-space: nowrap;
                }
                .quicktip-extender {
                    flex-grow: 0;
                    color: #777;
                    font-size: 20px;
52
                    height: 20px;
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
                    font-size: @quicktip-font-large;
                }
                >* {
                    margin: 0px 5px;
                    &:first-child {
                        margin-left: 0px;
                    }
                    &:last-child {
                        margin-right: 0px;
                    }
                }
            }
            .result-hoster {
                font-size: @result-font-small;
                margin-left: 20px;
                color: #808080;
                white-space: nowrap;
70 71
            }
            p {
Karl Hasselbring's avatar
Karl Hasselbring committed
72
                font-size: 13px;
73 74 75 76 77 78 79 80 81 82 83 84 85 86
            }
        }
        .quicktip-detail {
            border-top: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            h2 {
                margin: 10px 0px;
                font-size: 16px;
            }
            p {
                display: none;
                font-size: 14px;
            }
        }
Karl Hasselbring's avatar
Karl Hasselbring committed
87
        &[type="spendenaufruf"] {
88
            order: 100;
89 90 91 92 93 94 95 96 97 98 99 100 101 102
            border: none;
            box-shadow: none;
            background-color: inherit;
            .quicktip-summary {
                display: flex;
                justify-content: space-between;
                align-items: center;
                h1 {
                    margin: 0px;
                }
                p {
                    margin: 5px;
                    .spendenaufruf-btn {
                        color: white;
Karl Hasselbring's avatar
Karl Hasselbring committed
103
                        background-color: @link-color;
104 105 106 107 108
                        font-size: 16px;
                    }
                }
            }
        }
Karl Hasselbring's avatar
Karl Hasselbring committed
109
        &[type="spruch"] {
110
            order: 1;
111
            .quicktip-summary {
112 113
                display: flex;
                flex-direction: column;
114 115
                p {
                    text-align: justify;
116
                    font-style: italic;
Phil Höfer's avatar
Phil Höfer committed
117
                    quotes: '„' '“';
118 119 120 121 122 123 124 125 126
                    &:before {
                        content: open-quote;
                    }
                    &:after {
                        content: close-quote;
                    }
                }
                .author {
                    color: #404040;
127
                    font-size: 12px;
128
                    align-self: flex-end;
129 130
                }
            }
131 132 133 134 135 136 137 138 139
        }
        &[type="duckDuckGo-bang"] {
            order: 2;
            .bang-btn {
                width: 100%;
                margin-top: 5px;
                color: #fff;
                background-color: #286992;
                font-size: 16px;
140 141
            }
        }
142 143 144 145 146 147 148 149 150 151 152 153 154 155
        &[type="wikipedia"] {
            order: 3;
        }
        &[type="dictCC"] {
            order: 4;
        }
        &[type="tip"] {
            order: 5;
        }
        &[type="ad"] {
            order: 6;
        }
    }
}