searchbar.less 4.7 KB
Newer Older
1
@searchbar-border-color: #a2a2a2;
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
37
        width: 100%;
        max-width: 600px;
38
        background-color: @searchbar-background-color;
39
        -webkit-box-flex: 1;
40
41
        -ms-flex-positive: 1;
        flex-grow: 1;
42
43
        display: -webkit-box;
        display: -ms-flexbox;
44
        display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
45
        
46
        #search-key {
47
            display: flex;
Dominik Hebeler's avatar
Dominik Hebeler committed
48
49
50
            justify-content: center;
            align-items: center;
            > a {
Dominik Hebeler's avatar
Dominik Hebeler committed
51
                padding: 5px 16px 0px 16px;
Dominik Hebeler's avatar
Dominik Hebeler committed
52
                color: #777;
53
54
55
                &.authorized {
                    color:green;
                }
56
57
            }
        }
58
        .search-input {
59
            position: relative;
60
61
62
63
64
65
66
67
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            input {
                border: none;
                height: 40px;
                -webkit-box-shadow: none;
                box-shadow: none;
68
                background-color: transparent;
69
70
71
72
73
74
75
76
                &:focus {
                    outline-color: @metager-orange;
                    -webkit-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);
                    border-radius: 4px;
                }
            }
77
78
            #search-delete-btn {
                position: absolute;
79
80
                right: 0;
                bottom: 0;
81
                width: auto;
82
83
                height: calc(100% - 4px);
                margin: 2px 2px 2px 0;
84
85
                border: none;
                background-color: white;
86
                font-size: 1.8em;
87
                font-weight: normal;
Dominik Hebeler's avatar
Dominik Hebeler committed
88
89
90
91
                display: none;
                &:hover {
                    color: red;
                }
92
            }
93
94
95
96
97
98
99
100
101
102
        }
        .search-submit {
            button {
                width: 50px;
                line-height: 100%;
                border: 0;
                background-color: transparent;
                padding: 0;
                height: 100%;
            }
103
104
105
106
107
        }
    }
    .search-hidden {
        display: none;
    }
108
109
110
    .search-custom-hidden {
        display: none;
    }
111
    @media (max-width: @screen-mobile) {
112
113
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
114
115
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
116
117
118
    }
}

119
120
.startpage-searchbar {
    >* {
121
        border: 1px solid @searchbar-border-color;
122
123
124
125
126
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
127
        border-radius: 5px;
128
        @media (max-width: @screen-mobile) {
Karl Hasselbring's avatar
Karl Hasselbring committed
129
130
            max-width: initial;
        }
131
        >:not(:first-child) {
132
            border-left: 1px solid @searchbar-border-color;
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
157
.resultpage-searchbar {
    .search-input-submit {
158
159
160
        .search-input input {
            padding-right: 35px; // Makes it so the overlayed delete button does not hide the text belowF
        }
161
162
163
164
165
166
167
        .search-submit button{
            @media(max-width: @screen-mobile){
                    margin-right: 30px;
            }
            i.fa-search {
                margin-top: 5px;
            }
168
        }
169
170
171
    }
}

172
173
#research-bar-placeholder {
    width: 100%;
174
    max-width: 760px;
175
    height: 51px;
176
}