searchbar.less 5.16 KB
Newer Older
1 2 3 4 5 6 7
.searchbar {
    display: flex;
    align-items: stretch;
    font-size: 16px;
    background-color: white;
    .search-focus-selector {
        border-radius: 5px 0px 0px 5px;
8 9 10
        background-color: white;
        position: relative;
        text-overflow: ellipsis;
Karl Hasselbring's avatar
Karl Hasselbring committed
11
        display: flex;
12 13 14 15 16 17 18 19
        select {
            width: 100%;
            color: #777;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-color: transparent;
            padding-right: 35px;
20 21 22 23 24
            font-family: FontAwesome, sans-serif;
            border: none;
            &>option {
                font-family: FontAwesome, sans-serif;
            }
25
        }
26 27 28 29 30 31 32 33 34 35 36 37
        &:after {
            content: "\f078";
            font: 15px "FontAwesome", sans-serif; //text-align: center;
            line-height: 30px;
            color: #aaa;
            background-color: transparent;
            right: 8px;
            top: 2px;
            padding: 2px 2px 2px 5px;
            position: absolute;
            pointer-events: none;
        }
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 63 64 65 66 67 68 69 70 71 72 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 103
    }
    .search-add-focus {
        display: flex;
        button {
            background-color: white;
            border: none;
            padding: 0px 8px;
            font-size: 16px;
            &:hover {
                background-color: #e6e6e6;
            }
        }
    }
    .search-edit-focus {
        display: flex;
        button {
            background-color: white;
            border: none;
            padding: 0px 8px;
            font-size: 16px;
            &:hover {
                background-color: #e6e6e6;
            }
        }
    }
    .search-settings {
        display: flex;
        a.btn {
            border: none;
            padding: 0px 8px;
            display: flex;
            align-items: center;
            font-size: 16px;
        }
    }
    .search-input-submit {
        flex-grow: 1;
        display: flex;
    }
    .search-input {
        flex-grow: 1;
        input {
            border: none;
            height: 40px;
            &:focus {
                outline-color: rgb(255, 128, 0);
                -webkit-box-shadow: 0px 0px 2px 2px rgba(255, 128, 0, 1);
                -moz-box-shadow: 0px 0px 2px 2px rgba(255, 128, 0, 1);
                box-shadow: 0px 0px 2px 2px rgba(255, 128, 0, 1);
                border-color: rgba(255, 128, 0, 1);
            }
        }
    }
    .search-submit {
        button {
            width: 50px;
            line-height: 100%;
            border: 0;
            background-color: transparent;
            padding: 0;
            height: 100%;
        }
    }
    .search-hidden {
        display: none;
    }
104 105 106
    .search-custom-hidden {
        display: none;
    }
107 108
    .searchbar-tooltip {
        display: none;
109
        position: absolute;
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
        margin-top: 40px;
        &>.searchbar-tooltip-arrow {
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid #ff8000;
            margin-left: 5%;
        }
        &>.searchbar-tooltip-content {
            position: relative;
            margin-left: -45%;
            &>p {
                display: inline-block;
                background: #ff8000;
                border-radius: .25em;
                font-size: 16px;
                color: white;
                padding: 5px 10px;
            }
        }
        div:hover>& {
            display: inline-block;
            @media (max-width: @screen-xs-max) {
                display: none;
            }
        }
137
    }
138 139
    @media (max-width: @screen-xs-max) {
        flex-direction: column-reverse;
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
    }
}

.startpage-searchbar {
    >* {
        border: 1px solid #aaa;
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
        border-radius: 0px 5px 5px 0px;
    }
    .search-submit {
        border-left: 1px solid #aaa;
    }
    @media (max-width: @screen-xs-max) {
        .search-focus-selector {
            border: 1px solid #aaa;
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border: 1px solid #aaa;
            border-radius: 5px;
        }
166 167 168 169 170 171 172 173 174 175 176 177
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
        *:not(.search-submit) {
            width: 100%;
        }
    }
178 179 180
}

.resultpage-searchbar {
181
    padding: 5px;
182
     :first-child {
183 184
        border-left: none;
    }
185
    @media (max-width: @screen-xs-max) {
186 187 188 189 190 191 192 193 194
        .search-focus-selector {
            border: 1px solid #aaa;
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border: 1px solid #aaa;
            border-radius: 5px;
        }
195 196 197 198 199 200 201 202 203 204 205 206
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
        *:not(.search-submit) {
            width: 100%;
        }
    }
207
}