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

98
99
.startpage-searchbar {
    >* {
100
        border: 1px solid @searchbar-border-color;
101
102
103
104
105
        &:not(:first-child) {
            border-left: none;
        }
    }
    .search-input-submit {
106
        border-radius: 5px;
107
        @media (max-width: @screen-mobile) {
Karl Hasselbring's avatar
Karl Hasselbring committed
108
109
            max-width: initial;
        }
110
        >:not(:first-child) {
111
            border-left: 1px solid @searchbar-border-color;
112
        }
113
    }
114
    @media (max-width: @screen-mobile) {
115
116
117
118
119
120
121
122
123
        .search-focus-selector {
            border: 1px solid #aaa;
            border-top: none;
            border-radius: 5px;
        }
        .search-input-submit {
            border: 1px solid #aaa;
            border-radius: 5px;
        }
124
125
126
127
128
129
130
131
132
        >* {
            border: 1px solid #aaa;
            border-radius: 5px;
            min-height: 40px;
            &:not(:first-child) {
                border-left: 1px solid #aaa;
            }
        }
    }
133
134
}

135
136
.resultpage-searchbar {
    .search-input-submit {
137
138
139
        .search-input input {
            padding-right: 35px; // Makes it so the overlayed delete button does not hide the text belowF
        }
140
141
142
143
144
145
146
        .search-submit button{
            @media(max-width: @screen-mobile){
                    margin-right: 30px;
            }
            i.fa-search {
                margin-top: 5px;
            }
147
        }
148
149
150
    }
}

151
152
#research-bar-placeholder {
    width: 100%;
153
    max-width: 760px;
154
    height: 51px;
155
}