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

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

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

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

#searchForm {
    margin: 0;
182
}