searchbar.less 5.09 KB
Newer Older
1 2 3 4 5
.searchbar {
    display: flex;
    align-items: stretch;
    font-size: 16px;
    background-color: white;
Aria Givi's avatar
Aria Givi committed
6

7 8 9
    .search-focus-selector {
        background-color: transparent;
        border-radius: 5px 0px 0px 5px;
Aria Givi's avatar
Aria Givi committed
10 11
        display: flex;
        align-items: center;
Aria Givi's avatar
Aria Givi committed
12 13 14

        &>button {
            border: none;
15
            border-right: 1px solid rgb(170, 170, 170);
Aria Givi's avatar
Aria Givi committed
16
            background-color: white;
Aria Givi's avatar
Aria Givi committed
17 18 19
            margin: 5px;
        }

20 21 22 23 24 25 26 27 28 29
        select {
            width: 100%;
            color: #777;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-color: transparent;
            padding-right: 35px;
        }
    }
Aria Givi's avatar
Aria Givi committed
30

Aria Givi's avatar
Aria Givi committed
31
    .search-option-frame {
Aria Givi's avatar
Aria Givi committed
32
        display: none;
Aria Givi's avatar
Aria Givi committed
33
        position: absolute;
34
        top: 290px;
Aria Givi's avatar
Aria Givi committed
35
        padding: 1%;
Aria Givi's avatar
Aria Givi committed
36
        border: 1px solid rgb(175, 175, 175);
Aria Givi's avatar
Aria Givi committed
37
        border-radius: 4px;
Aria Givi's avatar
Aria Givi committed
38

39 40 41 42
        @media (max-width: @screen-xs-max) {
            top: 160px;
        }

Aria Givi's avatar
Aria Givi committed
43 44 45 46 47 48 49 50 51 52
        .searchbar-options-arrow {
            width: 0;
            height: 0;
            top: -5px;
            position: absolute;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid rgb(175, 175, 175);
            margin-left: 3%;
        }
Aria Givi's avatar
Aria Givi committed
53 54
    }

Aria Givi's avatar
Aria Givi committed
55 56
    .search-button-container {
        display: flex;
Aria Givi's avatar
Aria Givi committed
57
        margin-top: 3%;
Aria Givi's avatar
Aria Givi committed
58 59 60 61 62 63 64 65 66 67
        .search-add-focus {
            //display: flex;
            button {
                background-color: white;
                border: none;
                padding: 0px 8px;
                font-size: 16px;
                &:hover {
                    background-color: #e6e6e6;
                }
68 69
            }
        }
Aria Givi's avatar
Aria Givi committed
70 71 72 73 74 75 76 77 78 79
        .search-edit-focus {
            //display: flex;
            button {
                background-color: white;
                border: none;
                padding: 0px 8px;
                font-size: 16px;
                &:hover {
                    background-color: #e6e6e6;
                }
80 81
            }
        }
Aria Givi's avatar
Aria Givi committed
82 83 84 85 86
        .search-settings {
            //display: flex;
            a.btn {
                border: none;
                padding: 0px 8px;
Aria Givi's avatar
Aria Givi committed
87
                display: block;
Aria Givi's avatar
Aria Givi committed
88 89 90
                align-items: center;
                font-size: 16px;
            }
91 92
        }
    }
Aria Givi's avatar
Aria Givi committed
93

94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
    .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;
    }
125 126 127
    .search-custom-hidden {
        display: none;
    }
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
    @media (max-width: @screen-xs-max) {
        flex-direction: column-reverse;
    }
}


.searchform-bonus {
    li {
        margin: 5px;
    }
}

.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;
        }
    }
164 165 166 167 168 169 170 171 172
    @media (max-width: @screen-xs-max) {
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
173
        *:not(.search-submit, .searchbar-options-arrow) {
174 175 176
            width: 100%;
        }
    }
177 178 179 180
}

.resultpage-searchbar {
    margin: 5px 0px 0px 5px;
181 182 183
    :first-child {
        border-left: none;
    }
184 185 186
}

.searchbar-tooltip {
187 188
    display: none;
    position: absolute;
189
    margin-top: 40px;
190
    &>.searchbar-tooltip-arrow {
191 192 193
        position: absolute;
        top: -5px;
        left: -20px;
194 195
        width: 0;
        height: 0;
196 197 198 199
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #ff8000;
    }
200
    &>.searchbar-tooltip-content {
201 202
        position: relative;
        margin-left: -45%;
203
        &>p {
204 205 206 207 208 209 210 211 212 213
            display: inline-block;
            background: #ff8000;
            border-radius: .25em;
            font-size: 16px;
            color: white;
            padding: 5px 10px;
        }
    }
}

214
div:hover>.searchbar-tooltip {
215
    display: inline-block;
216 217 218 219
    
    @media (max-width: @screen-xs-max) {
        display: none;
    }
220
}