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

3 4 5 6
#quicktips {
    display: flex;
    flex-direction: column;
    .quicktip {
7 8 9 10 11 12 13 14 15 16 17 18
        position: relative;
        .quicktip-extender {
            position: absolute;
            top: 5px;
            right: 5px;
            color: #777;
            font-size: 20px;
        }
        details[open=""] .quicktip-extender {
            animation-name: quicktip-extender-turn;
            animation-fill-mode: forwards;
        }
19
        margin: 10px 0px;
20
        padding: 10px 10px 10px 10px;
21 22
        width: 100%;
        border: 1px solid #ccc;
23
        background-color: white;
24 25 26
        @media(max-width: @screen-xs-max) {
            box-shadow: 0px 1px 1.5px 0px rgba(0, 0, 0, 0.12), 1px 0px 1px 0px rgba(0, 0, 0, 0.24);
        }
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
        details:not([open=""]) {
            .quicktip-summary p {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }
        .quicktip-summary {
            h1 {
                margin: 0px 0px 5px 0px;
                font-size: 18px;
                display: flex;
                justify-content: space-between;
            }
            p {
                font-size: 16px;
            }
        }
        .quicktip-detail {
            border-top: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            h2 {
                margin: 10px 0px;
                font-size: 16px;
                font-weight: bold;
            }
            p {
                display: none;
                font-size: 14px;
            }
        }
        .gefVon {
            float: right;
            font-size: 15px;
        }
        &[type=spruch] {
63
            order: 0;
64 65 66
            border-left: 3px solid #070;
            p {
                color: #070;
67 68
                display: flex;
                flex-direction: column;
69 70 71
                .author {
                    color: #404040;
                    font-style: italic;
72
                    align-self: end;
73 74 75
                }
            }
        }
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
        &[type=duckDuckGo-bang] {
            order: 1;
            .bang-btn {
                width: 100%;
                margin-top: 5px;
                color: #fff;
                background-color: #286992;
                font-size: 16px;
            }
        }
        &[type=wikipedia] {
            order: 2;
        }
        &[type=dictCC] {
            order: 3;
            .quicktip-summary {
                p {
                    font-weight: bold;
                }
            }
        }
        &[type=tip] {
            order: 4;
        }
        &[type=ad] {
            order: 5;
        }
103
        &[type=spendenaufruf] {
104
            order: 6;
105
            border: none;
106
            color: #ff8000;
107
            background-color: inherit;
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
            .quicktip-summary {
                display: flex;
                justify-content: space-between;
                align-items: center;
                h1 {
                    margin: 0px;
                }
                p {
                    margin: 5px;
                    .spendenaufruf-btn {
                        color: white;
                        background-color: #ff8000;
                        font-size: 16px;
                    }
                }
            }
        }
    }
126
}