This repository was archived by the owner on Dec 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathstyle.css
More file actions
153 lines (130 loc) · 2.31 KB
/
style.css
File metadata and controls
153 lines (130 loc) · 2.31 KB
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
body {
max-width: 1200px;
min-width: 600px;
margin: 20px auto 0 auto;
font-family: 'Open Sans', sans-serif;
}
.top_bar {
margin-left: 10px;
margin-right: 10px;
display: flex;
flex-wrap: nowrap;
}
@media (max-width: 1024px) {
.top_bar {
flex-wrap: wrap;;
}
}
h1 {
flex-basis: 600px;
flex-shrink: 0;
margin: 0 auto 0 0;
padding-right: 24px;
font-family: 'Lobster', sans-serif;
font-weight: lighter;
font-size: 7em;
color: white;
text-shadow: 0 0 4px black, 6px 0 3px #73141B, 9px 3px 6px #BFA006;
}
.top_bar .search {
flex-basis: 360px;
flex-shrink: 0;
flex-grow: 1;
}
.search input, .search button{
font-size: 20px;
border-radius: 4px;
padding: 8px 16px;
box-shadow: none;
}
.search button {
color: white;
background-color: #BFA006;
border: 0px;
}
.suggestions h3 {
font-size: small;
text-transform: uppercase;
}
.suggestions ul {
display: flex;
flex-wrap: wrap;
margin: 0 0 4px 0;
padding: 0;
}
.suggestions li {
display: block;
border: 1px solid gray;
border-radius: 3px;
margin: 4px;
padding: 4px;
}
#results {
position: relative;
width: 90%;
margin: 0 auto;
}
#resultsExpander {
margin: 0 auto;
border: 3px solid gray;
border-radius: 5px;
background-color: white;
position: absolute;
overflow: hidden;
width: 100%;
min-height: 0px;
max-height: 0px;
transition: min-height ease 0.4s;
transition: max-height ease 0.4s;
}
#resultsExpander.open {
min-height: 160px;
max-height: 600px;
transition: min-height ease 0.4s;
transition: max-height ease 0.4s;
}
#closeResultsButton {
display: block;
text-align: right;
}
#results #resultsImageContainer {
width: 100%;
height: 100%;
overflow: auto;
display: flex;
flex-wrap: wrap;
}
#results img {
margin: 10px;
height: 150px;
width: 150px;
object-fit: cover;
}
.loading {
width: 100%;
text-align: center;
margin-top: 50px;
}
.loading .spinner {
animation: rotate 1s linear infinite;
}
@keyframes rotate{
to{ transform: rotate(360deg); }
}
/* Only display the spinner if the results list is empty */
.loading:has(+ #resultsImageContainer *) {
display: none;
}
#board {
margin-top: 20px;
column-width: 250px;
column-count: auto;
column-gap: 20px;
}
#board img {
width: 250px;
margin-bottom: 20px;
}
#fakeResults {
display: none;
}