searchbar.less 4.97 KB
Newer Older
1
2
@searchbar-border-color: #585858;
@searchbar-border-color-light: #777777;
Karl Hasselbring's avatar
Karl Hasselbring committed
3
@searchbar-background-color: white;
4
.searchbar {
5
    display: -webkit-box;
Dominik Hebeler's avatar
Dominik Hebeler committed
6
    display: -moz-box;
7
    display: -ms-flexbox;
Dominik Hebeler's avatar
Dominik Hebeler committed
8
    display: -webkit-flex;
9
    display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
10
11
12
13
14
15
16
17
18
19
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
20
    -webkit-box-pack: center;
Dominik Hebeler's avatar
Dominik Hebeler committed
21
22
    -moz-box-pack: center;
    -webkit-justify-content: center;
23
24
    -ms-flex-pack: center;
    justify-content: center;
Dominik Hebeler's avatar
Dominik Hebeler committed
25
26
27
28
29
30
31
32
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
33
    font-size: 1em;
34
    background-color: transparent;
35
    color: #333;
36
    .search-input-submit {
Dominik Hebeler's avatar
Dominik Hebeler committed
37
        width: 100%;
Dominik Hebeler's avatar
Dominik Hebeler committed
38
        width: calc(100% - 16px);
Dominik Hebeler's avatar
Dominik Hebeler committed
39
        max-width: 600px;
40
        background-color: @searchbar-background-color;
41
        -webkit-box-flex: 1;
42
43
        -ms-flex-positive: 1;
        flex-grow: 1;
44
45
        display: -webkit-box;
        display: -ms-flexbox;
46
        display: flex;
47
        align-items: center;
Dominik Hebeler's avatar
Dominik Hebeler committed
48
        
49
        #search-key {
50
            display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
51
52
53
            justify-content: center;
            align-items: center;
            > a {
Dominik Hebeler's avatar
Dominik Hebeler committed
54
                padding: 0px 16px 0px 16px;
55
                color: #585858;
56
57
58
                &.authorized {
                    color:green;
                }
59
60
            }
        }
61
        .search-input {
62
            position: relative;
63
64
65
66
67
68
69
70
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            input {
                border: none;
                height: 40px;
                -webkit-box-shadow: none;
                box-shadow: none;
71
                background-color: transparent;
72
            }
73
74
            #search-delete-btn {
                position: absolute;
75
76
                right: 0;
                bottom: 0;
77
                width: auto;
78
79
                height: calc(100% - 4px);
                margin: 2px 2px 2px 0;
80
81
                border: none;
                background-color: white;
82
                font-size: 1.8em;
83
                font-weight: normal;
Dominik Hebeler's avatar
Dominik Hebeler committed
84
85
86
87
                display: none;
                &:hover {
                    color: red;
                }
88
            }
89
90
91
92
93
94
95
96
        }
        .search-submit {
            button {
                width: 50px;
                line-height: 100%;
                border: 0;
                background-color: transparent;
                padding: 0;
97
                color: #585858;
98
            }
99
100
101
102
103
        }
    }
    .search-hidden {
        display: none;
    }
104
105
106
    .search-custom-hidden {
        display: none;
    }
107
    @media (max-width: @screen-mobile) {
108
109
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
110
111
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
112
113
114
    }
}

115
116
.startpage-searchbar {
    >* {
117
        border: 1px solid @searchbar-border-color;
118
119
120
121
122
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
123
        border-radius: 5px;
Dominik Hebeler's avatar
Dominik Hebeler committed
124
        margin: 0 8px;
125
        @media (max-width: @screen-mobile) {
Karl Hasselbring's avatar
Karl Hasselbring committed
126
127
            max-width: initial;
        }
Dominik Hebeler's avatar
Dominik Hebeler committed
128
        >#search-key {
129
            border-right: 1px solid @searchbar-border-color-light;
Dominik Hebeler's avatar
Dominik Hebeler committed
130
131
        }
        >#submit-inputgroup {
132
            border-left: 1px solid @searchbar-border-color-light;
133
        }
134
    }
135
    @media (max-width: @screen-mobile) {
136
137
138
139
140
141
142
143
144
        .search-focus-selector {
            border: 1px solid #aaa;
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border: 1px solid #aaa;
            border-radius: 5px;
        }
145
146
147
148
149
150
151
152
153
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
    }
154
155
}

156
.resultpage-searchbar {
Dominik Hebeler's avatar
Dominik Hebeler committed
157
158
159
    #search-key > a {
        padding: 5px 16px 0px 16px!important;
    }
160
    .search-input-submit {
161
162
163
        .search-input input {
            padding-right: 35px; // Makes it so the overlayed delete button does not hide the text belowF
        }
164
165
166
167
168
169
170
        .search-submit button{
            @media(max-width: @screen-mobile){
                    margin-right: 30px;
            }
            i.fa-search {
                margin-top: 5px;
            }
171
        }
172
173
174
    }
}

175
176
#research-bar-placeholder {
    width: 100%;
177
    max-width: 760px;
178
    height: 51px;
179
180
181
182
}

#searchForm {
    margin: 0;
183
184
}

Phil Höfer's avatar
Phil Höfer committed
185
186
187
188
#searchbar-img-key {
    height: 15px;
    filter: invert(1) brightness(0.4);
}
Phil Höfer's avatar
Phil Höfer committed
189

190
#searchbar-img-lupe {
Dominik Hebeler's avatar
Dominik Hebeler committed
191
    height: 15px;
Phil Höfer's avatar
Phil Höfer committed
192
    filter: invert(1) brightness(0.1);
Kim Höfer's avatar
Kim Höfer committed
193
194
195
}
.search-submit button {
    cursor: pointer;
Phil Höfer's avatar
Phil Höfer committed
196
197
198
199
200
}

.authorized #searchbar-img-key {
    filter: initial;
}