aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchItem.scss
blob: 6e88d1f44334a096d30c8b14ae8dca6eaaa6ee71 (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
@import "../globalCssVariables";

.search-item {
    width: 500px;
    background: $light-color-secondary;
    border-color: $intermediate-color;
    border-bottom-style: solid;
    padding: 10px;
    height: 70px;
}

.search-info {
    display: flex;
    justify-content: flex-end;
    width: 40%;
}

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

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

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

.link-container.item {
    height: 26px;
    width: 26px;
    border-radius: 13px;
    background: $dark-color;
    color: $light-color-secondary;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    -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;

    .link-count {
        opacity: 1;
        position: absolute;
        z-index: 1000;
        -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 {
        opacity: 0;
        position: absolute;
        z-index: 500;
        overflow: hidden;
        -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-container.item:hover{
    width: 70px;
}

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

.link-container.item:hover .link-extended{
    opacity: 1;
}

.search-type {
    width: 25PX;
    height: 25PX;
    display: flex;
    justify-content: center;
    align-items: center;
}


.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);
    height: 100%
}

.collection {
    border-color: $darker-alt-accent;
    border-bottom-style: solid;
}

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

.parents {
    background: $lighter-alt-accent;
    padding: 10px;
}

.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-label{
    text-align: right;
    float: right;
    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;
}

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