-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
463 lines (399 loc) · 11.1 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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
/* General Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #ffffff; /* Light theme background */
color: #333; /* Light theme text color */
min-height: 100vh;
display: flex;
flex-direction: column;
transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
line-height: 1.6;
overflow-x: hidden;
}
body.dark {
background-color: #000; /* Black background for dark theme */
color: #eee;
}
header {
background-color: #f4f4f4; /* Light background for header */
color: #333;
padding: 20px;
display: flex;
align-items: center; /* Align items vertically center */
justify-content: space-between; /* Space between heading and nav */
border-bottom: 2px solid #ddd;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}
nav {
display: flex;
align-items: center;
justify-content: center;
}
nav ul {
list-style: none;
display: flex;
align-items: center;
padding: 0;
margin: 0;
gap: 20px; /* Adjust spacing between icons */
}
nav li {
display: flex;
align-items: center;
}
body.dark header {
background-color: #111; /* Darker shade for dark theme header */
color: #eee;
}
.department-title {
font-size: 20px;
font-weight: bold;
cursor: pointer;
}
.theme-switch {
display: inline-block;
width: 60px;
height: 30px;
border-radius: 30px;
background: linear-gradient(82deg, #ffffff, #5812b2);
position: relative;
cursor: pointer;
transition: background 0.3s ease-in-out;
top: -2px;
}
.theme-switch::before {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 24px;
height: 24px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
transition: left 0.3s ease-in-out, background-image 0.3s ease-in-out;
background-image: url('icons/icons8-moon-100\ \(1\).png');
}
.theme-switch.dark-theme {
background: linear-gradient(82deg,#ffffff, #42078e);
}
.theme-switch.dark-theme::before {
left: 33px;
background-image: url('icons/icons8-sun-64.png');
}
/* Main Content Styles */
main {
flex: 1;
padding: 40px;
background-color: #ffffff; /* Light background to match body */
transition: background-color 0.5s ease-in-out;
}
body.dark main {
background-color: #000; /* Black background to match typewriter section */
}
/* Section Styles */
.content-section {
margin-bottom: 40px;
padding: 30px;
background-color: #f9f9f9; /* Light background for sections */
border: 1px solid #ddd;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
overflow: hidden;
transform: translateY(0);
animation: fadeInUp 0.7s ease;
}
body.dark .content-section {
background-color: #111; /* Darker background for dark theme sections */
border-color: #333;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Hover Effect with Color Transition */
.content-section:hover {
background-color: #f0f0f0; /* Slightly darker on hover */
color: #000; /* Highlighted text on hover */
border-color: #ccc; /* Lighter border on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
transform: translateY(-5px); /* Slight lift on hover */
}
body.dark .content-section:hover {
background-color: #333; /* Darker background on hover */
color: #00ffcc; /* Highlighted text on hover */
border-color: #555; /* Lighter border on hover */
}
/* Section Heading */
.content-section h2 {
margin-top: 0;
color: inherit;
font-size: 22px;
font-weight: bold;
}
/* Section Paragraph */
.content-section p {
color: #666; /* Slightly lighter text color */
margin-bottom: 0;
line-height: 1.5;
}
body.dark .content-section p {
color: #ccc; /* Lighter text color in dark mode */
}
/* Footer Styles */
footer {
background-color: #f4f4f4; /* Light background for footer */
color: #333;
text-align: center;
padding: 15px 0;
border-top: 2px solid #ddd;
box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}
body.dark footer {
background-color: #111; /* Darker shade for dark theme footer */
color: #eee;
}
.profile-icon, .contact-icon, .theme-switch {
display: inline-block;
vertical-align: middle;
}
.profile-icon img{
width: 32px; /* Ensure all icons have same size */
height: 32px;
margin-right: 0px;
}
.contact-icon img{
width: 25px; /* Ensure all icons have same size */
height: 25px;
}
.contact-footer {
font-size: 20px; /* Increased font size */
color: #333; /* Dark text in light theme */
text-decoration: none; /* No underline */
cursor: pointer;
margin-top: 10px;
transition: color 0.3s ease-in-out; /* Smooth transition for color change */
}
body.dark .contact-footer {
color: #eee; /* Light text in dark theme */
}
.contact-footer:hover {
color: inherit; /* Keep the same color on hover */
text-decoration: none; /* No underline on hover */
}
body.dark .contact-footer:hover {
color: inherit; /* Keep the same color in dark theme on hover */
}
.contact-footer a {
color: inherit; /* Ensure link inherits color from parent */
text-decoration: none; /* Remove underline from links */
}
.contact-footer:hover a {
color: inherit; /* Keep same color on hover */
}
/* Social Media Icons */
.social-media {
list-style: none;
padding: 0;
margin: 10px 0 0;
}
.social-media li {
display: inline;
margin: 0 10px;
}
.social-media a {
color: #333;
font-size: 24px;
text-decoration: none;
transition: color 0.3s ease;
}
body.dark .social-media a {
color: #eee;
}
.social-media a:hover {
color: #007bff;
}
body.dark .social-media a:hover {
color: #0d6efd;
}
/* Typewriter Section Styles */
.typewriter-section {
background-color: #ffffff; /* Light background to match body */
padding: 40px;
text-align: center;
border-bottom: 2px solid #ddd; /* Divider */
margin-bottom: 40px; /* Space between sections */
}
body.dark .typewriter-section {
background-color: #000; /* Black background to match dark theme */
border-bottom: 2px solid #333; /* Darker divider */
}
.typewriter-container {
display: inline-block; /* Ensure the container fits the content */
}
.static-text {
font-size: 36px;
font-weight: bold;
background: linear-gradient(to right, #333, #666); /* Gradient for static text in light mode */
-webkit-background-clip: text;
color: transparent;
background-clip: text;
}
body.dark .static-text {
background: linear-gradient(to right, #00ffcc, #00ffff); /* Gradient for static text in dark mode */
-webkit-background-clip: text;
background-clip: text;
}
.typewriter {
font-size: 36px;
font-weight: bold;
background: linear-gradient(to right, #333, #666); /* Gradient for typewriter text in light mode */
-webkit-background-clip: text;
color: transparent;
white-space: nowrap;
overflow: hidden;
border-right: 2px solid #333; /* Cursor for light mode */
animation: typewriter 4s steps(40, end) infinite, blink 0.75s step-end infinite;
}
body.dark .typewriter {
background: linear-gradient(to right, #00ffcc, #00ffff); /* Gradient for typewriter text in dark mode */
-webkit-background-clip: text;
color: transparent;
border-right: 2px solid #00ffff; /* Cursor for dark mode */
}
/* Typewriter Animation */
@keyframes typewriter {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink {
50% { border-color: transparent; }
}
/* Adjustments for Typewriter Section on Mobile Devices */
@media only screen and (max-width: 768px) {
.typewriter-section {
padding: 20px;
}
.typewriter-container {
display: block;
}
.static-text, .typewriter {
font-size: 24px; /* Smaller font size for mobile */
}
.typewriter {
border-right: 1px solid #333; /* Smaller cursor for mobile */
}
}
/* Media Query for Mobile Devices */
@media only screen and (max-width: 768px) {
/* Hide contact link in header */
nav ul li a[href="#contact"] {
display: none;
}
/* Add contact link to footer */
.contact-footer {
display: block;
}
}
/* Information Bulletin Styles */
.info-bulletin {
background-color: #f9f9f9; /* Light background for bulletin */
padding: 10px 0;
border-top: 2px solid #ddd; /* Divider above the bulletin */
border-bottom: 2px solid #ddd; /* Divider below the bulletin */
overflow: hidden; /* Hide overflow */
margin-bottom: 40px; /* Space between bulletin and next section */
}
body.dark .info-bulletin {
background-color: #111; /* Dark background for dark theme */
border-top: 2px solid #333; /* Darker divider in dark mode */
border-bottom: 2px solid #333; /* Darker divider in dark mode */
}
.ticker {
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
}
.ticker p {
display: inline-block;
font-size: 18px;
animation: ticker 15s linear infinite; /* Time for scrolling across the screen */
padding-left: 45%; /* Remove padding to reduce gap */
margin-right: 30%; /* Add margin to make the scrolling continuous */
}
.ticker a {
color: #333;
text-decoration: none; /* Remove underline from link */
transition: color 0.3s ease-in-out;
}
body.dark .ticker a {
color: #eee; /* Light text in dark mode */
}
.ticker a:hover {
color: #007bff; /* Change color on hover */
}
body.dark .ticker a:hover {
color: #0d6efd; /* Hover color in dark mode */
}
@keyframes ticker {
from {
transform: translateX(100%); /* Start off-screen */
}
to {
transform: translateX(-100%); /* Move off-screen to the left */
}
}
/* Icon Styles */
/* Positioning of icons in header */
nav ul {
list-style: none;
display: flex;
align-items: center;
gap: 15px;
}
/* Adjustments for Mobile Devices */
/* Adjustments for Mobile Devices */
@media only screen and (max-width: 768px) {
header {
padding: 15px;
flex-direction: column; /* Stack items vertically on mobile */
align-items: flex-start; /* Align items to the start */
}
.department-title {
font-size: 20px; /* Smaller font size for mobile */
margin-bottom: 10px; /* Space between title and nav items */
}
nav {
width: 100%;
justify-content: space-between; /* Space items evenly */
}
.contact-icon {
width: 25px; /* Smaller icon size for mobile */
height: 25px;
margin-bottom: -7px;
}
.theme-switch {
margin-top: 10px; /* Add space between icon and switch */
}
.profile-icon {
width: 35px; /* Smaller icon size for mobile */
height: 35px;
margin-bottom: -10px;
}
}