-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
79 lines (69 loc) · 1.4 KB
/
style.css
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
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.8);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
}
.spinner {
border: 4px solid rgba(0, 0, 0, 0.3);
border-top: 4px solid #3498db;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.search-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #f0f0f0;
padding: 10px;
z-index: 1;
}
.searchbar {
display: flex;
}
.search-results {
margin-top: 50px; /* Adjust this margin to prevent overlap with the search bar */
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}
.search-result-item {
border: 1px solid #ccc;
padding: 10px;
text-align: center;
display: flex;
flex-direction: column;
}
.search-result-item img {
max-width: 100%;
height: auto;
flex: 1; /* Take up the available height */
}
.search-result-item h3 {
margin-top: 10px;
}
.preview {
display: none;
position: absolute;
background: #fff;
border: 1px solid #ccc;
max-height: 150px;
overflow: auto;
}
.disabled {
display: none;
}