Skip to content

Commit 1f9a640

Browse files
authored
Update styles.css
1 parent 65b3370 commit 1f9a640

File tree

1 file changed

+65
-28
lines changed

1 file changed

+65
-28
lines changed

Website/css/styles.css

Lines changed: 65 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -379,85 +379,109 @@ button#toggle-stats:hover {
379379

380380
}
381381

382-
.language-and-milestone{
382+
.language-and-milestone {
383383
display: flex;
384-
gap:20px;
384+
gap: 20px;
385385
justify-content: center;
386386
align-items: center;
387387
animation: slide-in-right 0.5s ease-in-out;
388388
flex-wrap: wrap;
389389
}
390390

391-
.text-base{
391+
.text-base {
392392
text-align: left;
393393
font-size: 16px;
394394
}
395+
395396
#languages {
396397
text-align: center;
397398
margin-bottom: 30px;
398-
width:500px;
399+
width: 500px;
399400
background-color: #121245;
400-
padding:10px 20px;
401+
padding: 10px 20px;
401402
border-radius: 15px;
402-
height:340px;
403-
color:white;
403+
height: 340px;
404+
color: white;
404405
animation: slideInRight 0.3s ease-in-out;
406+
transition: background-color 0.3s ease;
407+
}
408+
409+
#languages:hover {
410+
background-color: #0D6EFD;
405411
}
412+
406413
#language-list {
407414
list-style: none;
408415
text-align: center;
409-
width:100%;
410-
padding:0px;
416+
width: 100%;
417+
padding: 0px;
411418
}
412419

413420
#language-list li {
414421
padding: 10px 0px;
415422
display: flex;
416-
width:100%;
417-
gap:20px;
418-
border-bottom:2px solid white;
423+
width: 100%;
424+
gap: 20px;
425+
border-bottom: 2px solid white;
419426
justify-content: space-between;
420427
font-size: 16px;
421428
font-weight: 600;
429+
transition: color 0.3s ease;
430+
}
431+
432+
#language-list li:hover {
433+
color: #0D6EFD;
422434
}
423435

424-
.progress-bar-container{
436+
.progress-bar-container {
425437
background-color: whitesmoke;
426438
border-radius: 8px;
427439
overflow: hidden;
428-
width:300px;
429-
height:20px;
440+
width: 300px;
441+
height: 20px;
430442
animation: fadeIn 1s ease-in-out;
431443
}
444+
432445
.progress-bar {
433446
height: 20px;
434-
background-color: #0D6EFD;
447+
background-color: #0D6EFD;
435448
width: 300px;
436449
text-align: left;
437450
display: flex;
438451
flex-wrap: nowrap;
439452
font-size: 12px;
440453
justify-content: center;
441454
align-items: center;
442-
color:white;
455+
color: white;
443456
animation: fadeIn 1s ease-in-out;
457+
transition: width 0.3s ease;
458+
}
459+
460+
.progress-bar-container:hover .progress-bar {
461+
width: 320px;
444462
}
463+
445464
#milestone {
446465
text-align: center;
447466
margin-bottom: 30px;
448-
width:500px;
467+
width: 500px;
449468
background-color: #121245;
450-
padding:10px 20px;
469+
padding: 10px 20px;
451470
border-radius: 15px;
452-
height:340px;
453-
color:white;
471+
height: 340px;
472+
color: white;
454473
animation: slideInRight 1s ease-in-out;
474+
transition: background-color 0.3s ease;
475+
}
476+
477+
#milestone:hover {
478+
background-color: #0D6EFD;
455479
}
456480

457481
.chart-container {
458482
display: flex;
459483
align-items: center;
460-
width:150px;
484+
width: 150px;
461485
margin: 50px 20px;
462486
animation: slideInRight 1s ease-in-out;
463487
}
@@ -473,32 +497,45 @@ button#toggle-stats:hover {
473497
display: flex;
474498
align-items: center;
475499
margin-bottom: 8px;
476-
width:300px;
500+
width: 300px;
501+
transition: transform 0.3s ease;
502+
}
503+
504+
.legend span:hover {
505+
transform: scale(1.1);
477506
}
507+
478508
@media (max-width: 560px) {
479509
.chart-container {
480-
width:120px;
510+
width: 120px;
481511
}
482512
.legend span {
483-
width:170px;
513+
width: 170px;
484514
}
485-
.progress-bar-container{
486-
width:200px;
515+
.progress-bar-container {
516+
width: 200px;
487517
}
488518
.progress-bar {
489519
width: 200px;
490520
}
491521
}
522+
492523
.legend span::before {
493524
content: '';
494525
display: inline-block;
495526
width: 20px;
496527
height: 20px;
497528
margin-right: 8px;
498529
border-radius: 50%;
499-
background-color: currentColor; /* This will be set dynamically */
530+
background-color: currentColor;
531+
transition: transform 0.3s ease;
500532
}
501533

534+
.legend span::before:hover {
535+
transform: rotate(45deg);
536+
}
537+
538+
502539
/* Footer stays at the bottom */
503540
.footer {
504541
background-color: #121245;

0 commit comments

Comments
 (0)