-
Notifications
You must be signed in to change notification settings - Fork 601
/
navLinks.css
436 lines (382 loc) · 8.45 KB
/
navLinks.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
424
425
426
427
428
429
430
431
432
433
434
435
436
/* General Styles for the Navigation */
nav {
background-color: #ffffff;
padding: 5px 10px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #123456;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1001;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
height: auto;
width: 100%;
/* padding: 0.4rem 1rem; */
z-index: 10000;
transition: all 0.6s;
}
.sitelogo {
height: 35px;
/* Slightly smaller logo */
width: 35px;
margin-right: 10px;
/* Reduced space between logo and title */
}
.navLinks {
list-style: none;
display: flex;
gap: 0.5rem;
margin: 0;
padding: 0;
justify-content: center;
align-items: center;
font-size: 1rem;
top: 0;
z-index: 10;
}
.navLinks.active {
display: flex;
/* Show links when the 'active' class is applied */
}
.link a {
/* font-size: 14px; */
/* Increased font size */
text-decoration: none;
/* Remove underline */
color: #d8d4d4;
/* Link color */
transition: color 0.3s ease;
/* Smooth color transition */
}
.link a:hover {
color: #007bff;
/* Change color on hover */
}
.dropdown-menu {
display: none;
/* Hide dropdown initially */
position: absolute;
/* Position dropdown below the parent */
background-color: #fff;
/* Dropdown background */
border: 1px solid #ccc;
/* Border for dropdown */
z-index: 1000;
/* Ensure dropdown appears above other content */
}
.dropdown-menu a {
color: black;
}
.dropdown:hover .dropdown-menu {
display: block;
/* Show dropdown on hover */
}
.contact-btns {
display: flex;
/* Align buttons side by side */
align-items: center;
gap: 10px;
/* Small gap between the buttons */
}
.contact-btn {
margin: 0;
/* Remove extra space between buttons */
}
/* Toggle Theme Container */
.toggle-container {
display: flex;
align-items: center;
/* Center vertically */
--size: 2rem;
/* display: none; */
position: relative;
width: var(--size);
height: var(--size);
}
.dropdown-menu {
display: none;
position: absolute;
background-color: #123456;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-menu > li {
float: none;
}
.dropdown-menu > li > a {
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-menu > li > a:hover {
background-color: #575757;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.navLinks:active {
color: rgb(169, 35, 252);
}
.navLinks.activeHamburger {
width: 100%;
}
/* Initially the Login Button and View button are not in Hamburger Menu */
.navLinks #LogIn-link,
.navLinks #View-link {
display: none;
}
/* For removing the red line that appears on the navbar of navlink section */
.navLinks a,
.link a {
position: relative;
text-decoration: none;
color: white;
font-size: 14px;
background-color: 'green'
}
.navLinks a::after,
.link a::after {
content: "";
position: absolute;
width: 0%;
height: 0px;
bottom: -5px;
left: 0;
background-color: transparent;
transition: all 0.3s ease-in-out;
}
.navLinks a:hover,
.link a:hover {
color: red;
}
.navLinks a:hover::after,
.link a:hover::after {
width: 0%;
background-color: transparent;
}
#hamburger, .hamburger {
height: 2rem;
width: 1.7rem;
display: flex;
justify-content: space-between;
flex-direction: column;
display: none;
transition: 0.2s;
}
#hamburger > .line, .hamburger > .line {
height: 5px;
width: 100%;
background-color: white;
border:1px solid white;
border-radius: 2px;
}
/* Responsive Styles */
@media (max-width: 1168px) {
#hamburger , .hamburger {
display: block;
/* Show hamburger on small screens */
}
.navLinks {
display: none;
/* Hide nav links on small screens */
flex-direction: column;
/* Stack links vertically */
position: absolute;
/* Position over content */
top: 60px;
/* Adjusted position below navbar */
left: 0;
background-color: #ffffff;
/* Background color */
width: 100%;
/* Full width */
z-index: 1000;
/* Stack above other content */
padding: 10px 0;
/* Padding for spacing */
}
.navLinks.active {
display: flex;
/* Show links when active */
padding: 10px;
/* Padding around links */
}
.link {
margin: 10px 0;
/* Space between links */
text-align: center;
/* Center align links */
}
.dropdown-menu {
display: flex;
flex-direction: column;
align-items: center;
position: static;
/* Keeps it positioned in-line with other elements */
background-color: #000;
/* Dark background for better contrast */
color: #ffffff;
/* White text color */
padding: 10px 0;
width: 100%;
/* Full width to match the navbar on small screens */
}
.dropdown-menu a {
color: #ffffff;
/* Ensure text color is white */
padding: 8px 0;
/* Padding for each dropdown item */
text-align: center;
width: 100%;
transition: color 0.3s ease;
}
.dropdown-menu a:hover {
color: #007bff;
/* Highlight color on hover */
}
/* Initially hide the dropdown menu */
.dropdown-menu {
display: none;
}
/* Show the dropdown menu when 'active' class is applied */
.dropdown-menu.active {
display: flex;
flex-direction: column;
align-items: center;
background-color: white;
/* Dark background for contrast */
padding: 10px 0;
width: 100%;
}
.dropdown-menu a {
color: #ffffff;
/* White text color */
padding: 8px 0;
text-align: center;
width: 100%;
transition: color 0.3s ease;
}
.dropdown-menu a:hover {
color: #007bff;
/* Hover color */
}
}
@media screen and (max-width: 1220px) {
.hamburger {
display: flex;
cursor: pointer;
}
.nav__logo {
margin-left: 0px;
}
.navLinks {
position: absolute;
top: 70px;
display: none;
background-color: #091020;
/* width: 0%; */
width: 100%;
left: 0;
/* height: 100vh; */
height: auto;
padding: 2rem 0;
flex-direction: column;
transition: 0.2s;
overflow: hidden;
}
.active {
display: block;
}
.navLinks li {
width: 100%;
padding: 0.5rem 0;
background-color: #1f2532;
z-index: 10;
}
#toggle {
font-size: 0.6rem;
}
}
.nav__logo {
font-size: 1.2rem;
font-weight: 600;
color: #ffffff;
font-size: 14px;
/* Adjust font size */
color: #ece6e6;
/* Logo color */
text-decoration: none;
cursor: pointer;
}
.nav__logo span {
color: #3685fb;
/* Assuming this is your primary color */
}
.link a {
color: #fff; /* Sets text color to white */
/* padding-top: 1.75rem; Equivalent to py-7 in Tailwind, adjust according to your base font size */
/* padding-bottom: 1.75rem; Equivalent to py-7 in Tailwind */
transition: color 0.3s; /* Transition effect for color change */
font-size: 0.8rem !important;
font-weight: 600; /* Sets font weight to 600 */
}
link a:hover {
color: #60a5fa;
background-color: rgb(169, 35, 252);
}
@media (max-width: 768px) {
.toggle-container {
--size: 2rem;
display: block;
position: relative;
width: var(--size);
height: var(--size);
}
}
.toggle {
appearance: none;
outline: none;
cursor: pointer;
width: 100%;
height: 100%;
box-shadow: inset calc(var(--size) * 0.33) calc(var(--size) * -0.25) 0;
border-radius: 999px;
color: hsl(240, 100%, 95%);
transition: all 500ms;
position: absolute;
top: 0;
left: 0;
&:checked {
--ray-size: calc(var(--size) * -0.4);
--offset-orthogonal: calc(var(--size) * 0.65);
--offset-diagonal: calc(var(--size) * 0.45);
transform: scale(0.75);
color: hsl(40, 100%, 50%);
box-shadow: inset 0 0 0 var(--size),
calc(var(--offset-orthogonal) * -1) 0 0 var(--ray-size),
var(--offset-orthogonal) 0 0 var(--ray-size),
0 calc(var(--offset-orthogonal) * -1) 0 var(--ray-size),
0 var(--offset-orthogonal) 0 var(--ray-size),
calc(var(--offset-diagonal) * -1) calc(var(--offset-diagonal) * -1) 0
var(--ray-size),
var(--offset-diagonal) var(--offset-diagonal) 0 var(--ray-size),
calc(var(--offset-diagonal) * -1) var(--offset-diagonal) 0 var(--ray-size),
var(--offset-diagonal) calc(var(--offset-diagonal) * -1) 0 var(--ray-size);
}
}
/* Apply fade-down animation to the toggle container */
.toggle-container[data-aos="fade-down"] {
transition: opacity 500ms ease-in-out;
opacity: 0;
}
.toggle-container[data-aos="fade-down"].aos-animate {
opacity: 1;
}