|
536 | 536 | background-color: #210120; |
537 | 537 | } |
538 | 538 |
|
539 | | - body:has(.footer__link--writings:hover) .crumple { |
| 539 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple { |
540 | 540 | background: transparent; |
541 | 541 | z-index: 2; |
542 | 542 | } |
543 | 543 |
|
544 | | - body:has(.footer__link--writings:hover) .crumple-video--writings { |
| 544 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple-video--writings { |
545 | 545 | opacity: 1; |
546 | 546 | -webkit-animation: e 1s 0s linear reverse forwards; |
547 | 547 | animation: e 1s 0s linear reverse forwards; |
548 | 548 | } |
549 | 549 |
|
550 | 550 | /* Videos for home page only */ |
551 | | - body:not(#trash):not(#essays):has(.footer__link--github:hover) .crumple-video--github { |
| 551 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple { |
| 552 | + z-index: 2; |
| 553 | + } |
| 554 | + |
| 555 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple-video--github { |
552 | 556 | opacity: 1; |
553 | 557 | -webkit-animation: b 1s .25s linear reverse forwards; |
554 | 558 | animation: b 1s .25s linear reverse forwards; |
555 | 559 | } |
556 | 560 |
|
557 | | - body:not(#trash):not(#essays):has(.footer__link--playlists:hover) .crumple-video--playlists { |
| 561 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple { |
| 562 | + z-index: 2; |
| 563 | + } |
| 564 | + |
| 565 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple-video--playlists { |
558 | 566 | opacity: 1; |
559 | 567 | -webkit-animation: c 1s .25s linear reverse forwards; |
560 | 568 | animation: c 1s .25s linear reverse forwards; |
561 | 569 | } |
562 | 570 |
|
563 | | - body:not(#trash):not(#essays):has(.footer__link--instagram:hover) .crumple-video--instagram { |
| 571 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple { |
| 572 | + z-index: 2; |
| 573 | + } |
| 574 | + |
| 575 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple-video--instagram { |
564 | 576 | opacity: 1; |
565 | 577 | -webkit-animation: f 1s .25s linear reverse forwards; |
566 | 578 | animation: f 1s .25s linear reverse forwards; |
567 | 579 | } |
568 | 580 |
|
569 | | - body:not(#trash):not(#essays):has(.footer__link--alhambra:hover) .crumple-video--alhambra { |
| 581 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple { |
| 582 | + z-index: 2; |
| 583 | + } |
| 584 | + |
| 585 | + body:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple-video--alhambra { |
570 | 586 | opacity: 1; |
571 | 587 | -webkit-animation: d 1s .25s linear reverse forwards; |
572 | 588 | animation: d 1s .25s linear reverse forwards; |
573 | 589 | } |
574 | 590 |
|
575 | | - /* Colors for other pages (trash, writings) */ |
576 | | - body#trash:has(.footer__link--github:hover) .crumple:after, |
577 | | - body#essays:has(.footer__link--github:hover) .crumple:after { |
578 | | - background-color: #012118; |
579 | | - -webkit-animation: b 1s .25s linear reverse forwards; |
580 | | - animation: b 1s .25s linear reverse forwards; |
| 591 | + /* Colors for other pages (trash, writings, poems) */ |
| 592 | + /* First link (blue) - using nth-child(3n+1) */ |
| 593 | + body#trash:has(.footer > a:nth-child(3n+1):hover) .crumple, |
| 594 | + body#essays:has(.footer > a:nth-child(3n+1):hover) .crumple, |
| 595 | + body#poems:has(.footer > a:nth-child(3n+1):hover) .crumple { |
| 596 | + z-index: 2; |
581 | 597 | } |
582 | 598 |
|
583 | | - body#trash:has(.footer__link--playlists:hover) .crumple:after, |
584 | | - body#essays:has(.footer__link--playlists:hover) .crumple:after { |
585 | | - background-color: #210120; |
586 | | - -webkit-animation: c 1s .25s linear reverse forwards; |
587 | | - animation: c 1s .25s linear reverse forwards; |
| 599 | + body#trash:has(.footer > a:nth-child(3n+1):hover) .crumple:after, |
| 600 | + body#essays:has(.footer > a:nth-child(3n+1):hover) .crumple:after, |
| 601 | + body#poems:has(.footer > a:nth-child(3n+1):hover) .crumple:after { |
| 602 | + background-color: #020121; |
| 603 | + opacity: 1; |
| 604 | + -webkit-animation: e 1s 0s linear reverse forwards; |
| 605 | + animation: e 1s 0s linear reverse forwards; |
588 | 606 | } |
589 | 607 |
|
590 | | - body#trash:has(.footer__link--instagram:hover) .crumple:after, |
591 | | - body#essays:has(.footer__link--instagram:hover) .crumple:after { |
592 | | - background-color: #210120; |
593 | | - -webkit-animation: f 1s .25s linear reverse forwards; |
594 | | - animation: f 1s .25s linear reverse forwards; |
| 608 | + /* Second link (green) - using nth-child(3n+2) */ |
| 609 | + body#trash:has(.footer > a:nth-child(3n+2):hover) .crumple, |
| 610 | + body#essays:has(.footer > a:nth-child(3n+2):hover) .crumple, |
| 611 | + body#poems:has(.footer > a:nth-child(3n+2):hover) .crumple { |
| 612 | + z-index: 2; |
595 | 613 | } |
596 | 614 |
|
597 | | - body#trash:has(.footer__link--alhambra:hover) .crumple:after, |
598 | | - body#essays:has(.footer__link--alhambra:hover) .crumple:after { |
599 | | - background-color: #020121; |
600 | | - -webkit-animation: d 1s .25s linear reverse forwards; |
601 | | - animation: d 1s .25s linear reverse forwards; |
| 615 | + body#trash:has(.footer > a:nth-child(3n+2):hover) .crumple:after, |
| 616 | + body#essays:has(.footer > a:nth-child(3n+2):hover) .crumple:after, |
| 617 | + body#poems:has(.footer > a:nth-child(3n+2):hover) .crumple:after { |
| 618 | + background-color: #012118; |
| 619 | + opacity: 1; |
| 620 | + -webkit-animation: b 1s 0s linear reverse forwards; |
| 621 | + animation: b 1s 0s linear reverse forwards; |
602 | 622 | } |
603 | 623 |
|
604 | | - body#trash:has(.footer__link--home:hover) .crumple:after, |
605 | | - body#essays:has(.footer__link--home:hover) .crumple:after { |
606 | | - background-color: #020121; |
607 | | - -webkit-animation: a 1s .25s linear reverse forwards; |
608 | | - animation: a 1s .25s linear reverse forwards; |
| 624 | + /* Third link (purple) - using nth-child(3n) */ |
| 625 | + body#trash:has(.footer > a:nth-child(3n):hover) .crumple, |
| 626 | + body#essays:has(.footer > a:nth-child(3n):hover) .crumple, |
| 627 | + body#poems:has(.footer > a:nth-child(3n):hover) .crumple { |
| 628 | + z-index: 2; |
609 | 629 | } |
610 | 630 |
|
611 | | - /* Z-index for non-home pages */ |
612 | | - body#trash:has(.footer > a:hover) .crumple, |
613 | | - body#essays:has(.footer > a:hover) .crumple { |
614 | | - z-index: 2; |
| 631 | + body#trash:has(.footer > a:nth-child(3n):hover) .crumple:after, |
| 632 | + body#essays:has(.footer > a:nth-child(3n):hover) .crumple:after, |
| 633 | + body#poems:has(.footer > a:nth-child(3n):hover) .crumple:after { |
| 634 | + background-color: #210120; |
| 635 | + opacity: 1; |
| 636 | + -webkit-animation: c 1s 0s linear reverse forwards; |
| 637 | + animation: c 1s 0s linear reverse forwards; |
615 | 638 | } |
616 | 639 | } |
617 | 640 |
|
|
0 commit comments