forked from neomorons/openweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
307 lines (269 loc) · 7.21 KB
/
index.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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
/* styles.css */
/* Colors
:dark {
--primary-bg: #6A6A6A;
--text-color: #FFFFFF;
--border-color: #959595;
--overlay-color: rgba(0, 0, 0, 0.8);
--link-color: #468EFF;
--link-hover-color: #2B68FF;
--header-bg: #000000;
--search-text-color: #F1F4F5;
--footer-bg: #000000;
--footer-text: #FFFFFF;
--toggle-bg: linear-gradient(to bottom, #F5515F, #CD2942);
}*/
:root {
--primary-bg: #F1F4F5;
--secondary-bg: #FAFAFB;
--text-color: #333333;
--border-color: #E5E5E5;
--overlay-color: rgba(0, 0, 0, 0.8);
--link-color: #468EFF;
--link-hover-color: #2B68FF;
--header-bg: #FFFFFF;
--search-text-color: #636C72;
--footer-bg: #FAFAFB;
--footer-text: #4D4A4A;
--toggle-bg: linear-gradient(to bottom, #F5515F, #CD2942);
}
body {
background-color: var(--header-bg);
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: var(--header-bg);
color: var(--text-color);
padding: 0.2rem;
display: flex;
justify-content: center;
border-bottom: 2px solid var(--border-color);
align-items: center;
position: fixed;
width: 100%;
z-index: 1000;
}
.logo img {
width: 350px; /* Adjust as needed */
height: auto;
filter: invert(100%);
}
nav ul {
list-style: none;
display: flex;
}
nav li {
font-weight: bold;
margin-right: 1rem;
}
nav a {
text-decoration: none;
color: var(--text-color);
}
.toggle-btn {
display: flex;
margin-left: 10%;
}
main {
padding: 120px 4rem 80px 4rem; /* Add padding to main to accommodate fixed header */
}
.search-section {
padding-top: 10px;
margin-bottom: 4rem;
display: flex;
justify-content: center;
}
.search-box {
display: flex;
gap: 0.9rem;
flex-direction: row;
width: 50%;
padding: 1rem 1rem 1rem 1.4rem;
border-radius: 15px;
background-color: var(--primary-bg);
border-color: var(--border-color);
color: var(--search-text-color);
}
.search-box i {
padding-top: 0.8rem;
}
#searchInput {
width: 100%;
font-size: 1.4rem;
background-color: var(--primary-bg);
border-color: var(--primary-bg);
color: var(--search-text-color);
border: none;
outline: none;
}
#searchInput::placeholder{
color: var(--search-text-color);
}
#catalog {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
justify-content: space-around;
}
.catalog-item {
display: flex;
flex-direction: column;
flex: 0 0 calc(33.33% - 1rem); /* Maximum 3 catalogs in one row with 1rem gap */
max-width: calc(33.33% - 1rem); /* Maximum width for the catalogs */
box-sizing: border-box;
overflow: hidden;
position: relative;
}
.card {
flex: 1;
border-radius: 15px; /* Rounded corners for the card */
overflow: hidden;
position: relative;
}
.card img {
width: 100%;
height: 100%; /* Ensure the image takes up the full height of the card */
object-fit: cover;
}
.card img.grayscale {
filter: grayscale(40%);
transition: filter 0.3s ease-in-out;
}
.card img:hover {
filter: grayscale(0%);
transition: filter 0.3s ease-in-out;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(transparent, transparent, var(--overlay-color)); /* Gradient overlay on card */
opacity: 0; /* Initially hidden */
transition: opacity 0.3s ease-in-out;
z-index: 1;
}
.card:hover::before {
opacity: 1; /* Make the overlay visible on hover */
}
.card span {
position: absolute;
bottom: 0;
left: 0;
z-index: 2;
box-sizing: border-box;
padding: 1.5rem 1.5rem 1.5rem 2rem;
color: #FFFFFF;
opacity: 0; /* Initially hidden */
transition: opacity 0.3s ease-in-out;
}
.card:hover span {
opacity: 1; /* Make the title visible on hover */
}
.contributor {
color: var(--text-color);
display: flex;
align-items: center;
padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.contributor a {
text-decoration: none;
font-weight: 300;
color: var(--text-color);
display: flex;
flex: 1;
gap: 0.5rem;
align-items: center;
}
.contributor :hover {
color: #000;
font-weight: 500;
}
footer {
display: flex;
justify-content: space-between;
background-color: var(--footer-bg);
color: var(--footer-text);
border-top: 2px solid var(--border-color);
font-weight: lighter;
padding: 1% 3% 1% 3%;
position: fixed;
bottom: 0;
width: 94%;
}
footer span:nth-child(2) {
color: var(--footer-text);
}
.wrapper {
top: 50%;
left: 50%;
width: 75px;
height: 37.5px;
background: #F1F1F1;
box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
border-radius: 37.5px;
}
.wrapper .toggle--handler {
background: var(--toggle-bg);
width: 30px;
height: 30px;
display: block;
box-shadow: 0px 5px 40px rgba(245, 81, 95, 0.8);
border-radius: 60px;
margin: 3.75px;
position: relative;
z-index: 2;
transition: all 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.wrapper .toggle--handler:after {
content: "";
position: absolute;
border-radius: 60px;
background: linear-gradient(to bottom, #468EFF, var(--link-hover-color));
width: 100%;
height: 100%;
opacity: 0;
transition: all 200ms;
}
.wrapper .toggle--handler:before {
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 24px;
height: 24px;
border-radius: 60px;
background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>assets/icons/cross</title><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"/><path d="M0 0h24v24H0z"/><path d="M13.414 11.96l6.546-6.546L18.545 4 12 10.545 5.455 4 4.04 5.414l6.546 6.546-6.89 6.89 1.414 1.413 6.89-6.89 6.89 6.89 1.414-1.414-6.89-6.89z" fill="#FFF"/></g></svg>');
transition: all 200ms;
transform: translate(-50%, -50%) rotate(180deg);
}
.wrapper:after {
content: "";
top: 50%;
left: 50%;
width: 80px;
height: 2px;
background: #E5E5E5;
pointer-events: none;
}
.wrapper input {
position: absolute;
left: -999em;
}
input:checked + .toggle .toggle--handler {
transform: translateX(37.5px);
background: var(--toggle-bg);
box-shadow: 0px 5px 40px rgba(70, 142, 255, 0.8);
}
input:checked + .toggle .toggle--handler:after {
opacity: 1;
}
input:checked + .toggle .toggle--handler:before {
background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>assets/icons/cross copy</title><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"/><path d="M0 0h24v24H0z"/><path fill="#FFF" d="M8.293 16.707l.707.707.707-.707 11-11-1.414-1.414-11 11h1.414l-4-4-1.414 1.414z"/></g></svg>');
z-index: 5;
transform: translate(-50%, -50%) rotate(0deg);
}