aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchItem.scss
blob: 273d49349e753684ec440386bde40ade586c0d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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
125
126
127
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
@import "../globalCssVariables";

.search-overview {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    height: 70px;
    z-index: 0;
}

.searchBox-placeholder,
.search-overview .search-item {
    width: 500px;
    background: $light-color-secondary;
    border-color: $intermediate-color;
    border-bottom-style: solid;
    padding: 10px;
    height: 70px;
    z-index: 0;
    display: inline-block;

    .main-search-info {
        display: flex;
        flex-direction: row;
        width: 100%;

        .search-title-container {
            width: 100%;

            .search-title {
                text-transform: uppercase;
                text-align: left;
                width: 100%;
                font-weight: bold;
            }
        }

        .search-info {
            display: flex;
            justify-content: flex-end;

            .link-container.item {
                margin-left: auto;
                margin-right: auto;
                height: 26px;
                width: 26px;
                border-radius: 13px;
                background: $dark-color;
                color: $light-color-secondary;
                display: flex;
                justify-content: center;
                align-items: center;
                -webkit-transition: all 0.2s ease-in-out;
                -moz-transition: all 0.2s ease-in-out;
                -o-transition: all 0.2s ease-in-out;
                transition: all 0.2s ease-in-out;
                transform-origin: top right;
                overflow: hidden;
                position: relative;

                .link-count {
                    opacity: 1;
                    position: absolute;
                    z-index: 1000;
                    text-align: center;
                    -webkit-transition: opacity 0.2s ease-in-out;
                    -moz-transition: opacity 0.2s ease-in-out;
                    -o-transition: opacity 0.2s ease-in-out;
                    transition: opacity 0.2s ease-in-out;
                }

                .link-extended {
                    // display: none;
                    visibility: hidden;
                    opacity: 0;
                    position: relative;
                    z-index: 500;
                    overflow: hidden;
                    -webkit-transition: opacity 0.2s ease-in-out .2s, visibility 0s linear 0s;
                    -moz-transition: opacity 0.2s ease-in-out .2s, visibility 0s linear 0s;
                    -o-transition: opacity 0.2s ease-in-out .2s, visibility 0s linear 0s;
                    transition: opacity 0.2s ease-in-out .2s, visibility 0s linear 0s;
                    // transition-delay: 1s;
                }

            }

            .link-container.item:hover {
                width: 70px;
            }

            .link-container.item:hover .link-count {
                opacity: 0;
            }

            .link-container.item:hover .link-extended {
                opacity: 1;
                visibility: visible;
                // display: inline;
            }

            .icon-icons {
                width: 50px
            }

            .icon-live {
                width: 175px;
            }

            .icon-icons,
            .icon-live {
                height: 50px;
                margin: auto;
                overflow: hidden;

                .search-type {
                    display: inline-block;
                    width: 100%;
                    position: absolute;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    margin-right: 5px;
                }

                .pdfBox-cont {
                    overflow: hidden;

                    img {
                        width: 100% !important;
                        height: auto !important;
                    }
                }

                .search-type:hover+.search-label {
                    opacity: 1;
                }

                .search-label {
                    font-size: 10;
                    position: relative;
                    right: 0px;
                    text-transform: capitalize;
                    opacity: 0;
                    -webkit-transition: opacity 0.2s ease-in-out;
                    -moz-transition: opacity 0.2s ease-in-out;
                    -o-transition: opacity 0.2s ease-in-out;
                    transition: opacity 0.2s ease-in-out;
                }
            }

            .icon-live:hover {
                height: 175px;

                .pdfBox-cont {
                    img {
                        width: 100% !important;
                    }
                }
            }
        }

        .search-info:hover {
            width: 60%;
        }
    }
}

.search-item:hover~.searchBox-instances,
.searchBox-instances:hover,
.searchBox-instances:active {
    opacity: 1;
    background: $lighter-alt-accent;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.search-item:hover {
    transition: all 0.2s;
    background: $lighter-alt-accent;
}

.searchBox-instances {
    float: left;
    opacity: 1;
    width: 150px;
    transition: all 0.2s ease;
    color: black;
    transform-origin: top right;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}


.search-overview:hover {
    z-index: 1;
}

.searchBox-placeholder {
    min-height: 70px;
    margin-left: 150px;
    text-transform: uppercase;
    text-align: left;
    font-weight: bold;
}

.collection {
    display: flex;
}

.collection-item {
    width: 35px;
}