-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
423 lines (369 loc) · 10.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
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
body {
background-color: white;
color: black;
transition: background-color 0.5s, color 0.5s;
}
nav {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: row;
align-items: center;
padding: 0 40px;
justify-content: space-between;
height: 60px;
background-color: rgba(18, 18, 18, 0.1);
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
width: fit-content;
}
.main {
display: flex;
align-items: center;
justify-content: space-between;
height: 60px;
width: 100%;
}
.logo {
display: flex;
align-items: center;
padding-left: 15px;
padding-bottom: 10px;
}
.logo img {
width: 100px;
height: 80px;
margin: 10px;
padding-top: 10px;
transition: transform 0.3s ease;
}
.logo img:hover {
transform: scale(1.1);
}
.logo a {
text-decoration: none;
color: white;
font-weight: bold;
font-size: 26px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
display: flex;
flex-direction: row;
align-items: center;
}
.options {
display: flex;
align-items: center;
justify-content: center;
gap: 20px; /* Add space between options */
}
.options div {
padding: 8px 12px;
cursor: pointer;
color: white;
font-weight: bold;
font-size: 18px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
transition: background-color 0.3s ease;
}
.options div:hover {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
.options a {
color: white;
text-decoration: none;
}
.menu-item {
position: relative;
/* This ensures the dropdown positions correctly within its parent */
}
.dropdown {
display: none; /* Initially hidden */
position: absolute;
top: 100%; /* Ensures it drops below the menu item */
left: 0;
background-color: rgba(18, 18, 18, 0.9);
border-radius: 15px;
padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000; /* Keeps it above other elements */
min-width: 200px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease; /* Smooth dropdown appearance */
}
.menu-item.active .dropdown {
display: block; /* When active, show dropdown */
}
.dropdown a {
display: flex;
align-items: center;
color: white;
text-decoration: none;
padding: 10px 15px;
transition: background-color 0.3s ease, transform 0.3s ease;
border-radius: 10px;
font-weight: bold;
font-size: 16px;
border: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 10px;
}
body.light-mode .dropdown {
background-color: white; /* Light mode background */
color: black; /* Text color for light mode */
border: 1px solid rgba(0, 0, 0, 0.1); /* Optional border */
}
.dropdown a i {
margin-right: 10px; /* Space for the icon */
font-size: 16px;
}
.dropdown a:hover {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
transform: scale(1.05); /* Slight scale-up effect on hover */
}
/* For active dropdown toggle */
.menu-item:hover .dropdown {
display: block;
background-color: black;
}
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.4s;
border-radius: 20px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196f3;
}
input:checked + .slider:before {
transform: translateX(20px);
}
@media (max-width: 768px) {
nav {
padding: 10px;
}
.main {
flex-direction: column;
align-items: center;
}
.options {
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.options div {
margin: 5px;
}
}
.main {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 100%;
gap: 10%;
}
.main .options {
min-width: 80%;
}
body.dark-mode {
background-color: #121212;
color: white;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 25px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 25px;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.4s;
border-radius: 25px;
}
/* The slider circle */
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 2.5px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196f3;
}
input:checked + .slider:before {
transform: translateX(26px);
}
.floating-dock-container {
position: fixed; /* Keep the dock fixed on the screen */
z-index: 1000; /* Ensure it appears above other elements */
display: block; /* Change this to block so it's visible */
bottom: 20px; /* Distance from the bottom */
left: 50%; /* Center horizontally */
transform: translate(-50%, 0); /* Center it */
/* Add a transparent background with depth effect */
background-color: rgba(255, 255, 255, 0.2); /* Light transparent background */
padding: 10px; /* Optional padding for better spacing */
border-radius: 50px; /* Slightly rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}
.floating-dock {
list-style-type: none; /* Remove default list styles */
padding: 0; /* Remove default padding */
margin: 0; /* Remove default margin */
display: flex; /* Display items in a row */
flex-direction: row; /* Align items horizontally */
}
.floating-dock li {
margin: 0 10px; /* Space between items */
position: relative; /* Required for absolute positioning of the tooltip */
transition: transform 0.3s; /* Smooth transition for scaling */
}
.floating-dock a {
text-decoration: none; /* Remove underline from links */
color: #333; /* Default icon color */
display: inline-block; /* Allow padding and size adjustments */
width: 50px; /* Fixed width for icons */
height: 50px; /* Fixed height for icons */
text-align: center; /* Center icons horizontally */
line-height: 50px; /* Center icons vertically */
font-size: 20px; /* Icon size */
}
.floating-dock img {
width: 50px; /* Set image width */
height: 50px; /* Set image height */
}
.floating-dock li:hover::after {
content: attr(title); /* Show the title */
position: absolute; /* Position it absolutely */
bottom: 60px; /* Position above the icon */
left: 50%; /* Center it */
transform: translateX(-50%); /* Center adjustment */
background: rgba(0, 0, 0, 0.8); /* Background color */
color: #fff; /* Text color */
padding: 5px 10px; /* Padding for the tooltip */
border-radius: 5px; /* Rounded corners */
white-space: nowrap; /* Prevent text from wrapping */
z-index: 10; /* Ensure it appears above other elements */
font-size: 6px; /* Font size for tooltip */
opacity: 1; /* Fully visible */
transition: opacity 0.3s; /* Smooth transition for visibility */
}
.floating-dock li::after {
opacity: 0; /* Initially hidden */
transition: opacity 0.3s; /* Smooth transition for visibility */
}
.last {
margin-top: 10000%;
}
.floating-dock-container img {
width: 60px;
margin-left: -8%;
}
.floating-dock li {
border-radius: 50%; /* Use 50% for a perfect circle */
display: flex;
justify-content: center;
align-items: center;
padding: 0px;
transition: background-color 0.3s, transform 0.3s; /* Transition for smooth effect */
background-color: rgb(211, 206, 206);
}
/* Hover effect for the hovered item */
.floating-dock li:hover {
background-color: rgb(211, 206, 206); /* Change background color */
transform: scale(1.4); /* Scale up the hovered item */
}
/* Scale for the immediate next neighbor */
.floating-dock li:hover + li {
transform: scale(1.2); /* Scale up the next item */
}
/* Scale for the second neighbor */
.floating-dock li:hover + li + li {
transform: scale(1.1); /* Scale up the next neighbor after the next */
}
.floating-dock li a i {
font-size: 19px; /* Icon size */
color: rgb(99, 97, 97);
}
.floating-dock li .title {
display: none; /* Hide title by default */
position: absolute; /* Position above the icon */
bottom: 54px; /* Adjust position */
left: 50%; /* Center it */
transform: translateX(-50%); /* Center adjustment */
background: rgba(0, 0, 0, 0.8); /* Background color */
color: #fff; /* Text color */
border-radius: 5px; /* Rounded corners */
white-space: nowrap; /* Prevent text from wrapping */
z-index: 10; /* Ensure it appears above other elements */
font-size: 9px; /* Font size for title */
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
height: auto;
margin-top: 5px;
padding: 5px 10px;
}
/* Show title on hover */
.floating-dock li:hover .title {
display: block; /* Show the title on hover */
}