|
378 | 378 | z-index: 1; |
379 | 379 | } |
380 | 380 |
|
381 | | -.crumple-video--alhambra { |
| 381 | +.crumple-video--alhambra, |
| 382 | +.crumple-video--art { |
382 | 383 | z-index: 1; |
383 | 384 | } |
384 | 385 |
|
|
578 | 579 | animation: f 1s .25s linear reverse forwards; |
579 | 580 | } |
580 | 581 |
|
581 | | - body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple { |
| 582 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple, |
| 583 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--art:hover) .crumple { |
582 | 584 | z-index: 2; |
583 | 585 | } |
584 | | - |
585 | | - body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple-video--alhambra { |
| 586 | + |
| 587 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple-video--alhambra, |
| 588 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--art:hover) .crumple-video--art { |
586 | 589 | opacity: 1; |
587 | 590 | -webkit-animation: d 1s .25s linear reverse forwards; |
588 | 591 | animation: d 1s .25s linear reverse forwards; |
|
593 | 596 | display: none; |
594 | 597 | } |
595 | 598 |
|
596 | | - /* Colors for other pages (trash, writings, poems) */ |
597 | | - /* First link (blue) - using nth-child(3n+1) */ |
598 | | - body#trash:has(.footer > a:nth-child(3n+1):hover) .crumple, |
599 | | - body#essays:has(.footer > a:nth-child(3n+1):hover) .crumple, |
600 | | - body#poems:has(.footer > a:nth-child(3n+1):hover) .crumple { |
| 599 | + /* Per-page nav colors — set --c1 through --c5 per body id */ |
| 600 | + body#essays { --c1: #ab2439; --c2: #5a82b3; --c3: #a36aa5; --c4: #d8a37b; --c5: #e0b3b6; } |
| 601 | + body#art { --c1: #c7d14f; --c2: #00b49b; --c3: #96d1aa; --c4: #78cdd0; --c5: #b73f74; } |
| 602 | + body#trash { --c1: #020121; --c2: #012118; --c3: #210120; --c4: #020121; --c5: #012118; } |
| 603 | + body#poems { --c1: #c1c494; --c2: #bce4e5; --c3: #97acc8; --c4: #099197; --c5: #ebd3a2; --c6: #a5c8d1; } |
| 604 | + |
| 605 | + body#essays:has(.footer > a:hover) .crumple, |
| 606 | + body#art:has(.footer > a:hover) .crumple, |
| 607 | + body#trash:has(.footer > a:hover) .crumple, |
| 608 | + body#poems:has(.footer > a:hover) .crumple { |
601 | 609 | z-index: 2; |
602 | 610 | } |
603 | | - |
604 | | - body#trash:has(.footer > a:nth-child(3n+1):hover) .crumple:after, |
605 | | - body#essays:has(.footer > a:nth-child(3n+1):hover) .crumple:after, |
606 | | - body#poems:has(.footer > a:nth-child(3n+1):hover) .crumple:after { |
607 | | - background-color: #020121; |
608 | | - opacity: 1; |
| 611 | + |
| 612 | + body#essays:has(.footer > a:nth-child(1):hover) .crumple:after, |
| 613 | + body#art:has(.footer > a:nth-child(1):hover) .crumple:after, |
| 614 | + body#trash:has(.footer > a:nth-child(1):hover) .crumple:after, |
| 615 | + body#poems:has(.footer > a:nth-child(1):hover) .crumple:after { |
| 616 | + background-color: var(--c1); opacity: 1; |
609 | 617 | -webkit-animation: e 1s 0s linear reverse forwards; |
610 | 618 | animation: e 1s 0s linear reverse forwards; |
611 | 619 | } |
612 | | - |
613 | | - /* Second link (green) - using nth-child(3n+2) */ |
614 | | - body#trash:has(.footer > a:nth-child(3n+2):hover) .crumple, |
615 | | - body#essays:has(.footer > a:nth-child(3n+2):hover) .crumple, |
616 | | - body#poems:has(.footer > a:nth-child(3n+2):hover) .crumple { |
617 | | - z-index: 2; |
618 | | - } |
619 | | - |
620 | | - body#trash:has(.footer > a:nth-child(3n+2):hover) .crumple:after, |
621 | | - body#essays:has(.footer > a:nth-child(3n+2):hover) .crumple:after, |
622 | | - body#poems:has(.footer > a:nth-child(3n+2):hover) .crumple:after { |
623 | | - background-color: #012118; |
624 | | - opacity: 1; |
| 620 | + |
| 621 | + body#essays:has(.footer > a:nth-child(2):hover) .crumple:after, |
| 622 | + body#art:has(.footer > a:nth-child(2):hover) .crumple:after, |
| 623 | + body#trash:has(.footer > a:nth-child(2):hover) .crumple:after, |
| 624 | + body#poems:has(.footer > a:nth-child(2):hover) .crumple:after { |
| 625 | + background-color: var(--c2); opacity: 1; |
625 | 626 | -webkit-animation: b 1s 0s linear reverse forwards; |
626 | 627 | animation: b 1s 0s linear reverse forwards; |
627 | 628 | } |
628 | | - |
629 | | - /* Third link (purple) - using nth-child(3n) */ |
630 | | - body#trash:has(.footer > a:nth-child(3n):hover) .crumple, |
631 | | - body#essays:has(.footer > a:nth-child(3n):hover) .crumple, |
632 | | - body#poems:has(.footer > a:nth-child(3n):hover) .crumple { |
633 | | - z-index: 2; |
634 | | - } |
635 | | - |
636 | | - body#trash:has(.footer > a:nth-child(3n):hover) .crumple:after, |
637 | | - body#essays:has(.footer > a:nth-child(3n):hover) .crumple:after, |
638 | | - body#poems:has(.footer > a:nth-child(3n):hover) .crumple:after { |
639 | | - background-color: #210120; |
640 | | - opacity: 1; |
| 629 | + |
| 630 | + body#essays:has(.footer > a:nth-child(3):hover) .crumple:after, |
| 631 | + body#art:has(.footer > a:nth-child(3):hover) .crumple:after, |
| 632 | + body#trash:has(.footer > a:nth-child(3):hover) .crumple:after, |
| 633 | + body#poems:has(.footer > a:nth-child(3):hover) .crumple:after { |
| 634 | + background-color: var(--c3); opacity: 1; |
641 | 635 | -webkit-animation: c 1s 0s linear reverse forwards; |
642 | 636 | animation: c 1s 0s linear reverse forwards; |
643 | 637 | } |
| 638 | + |
| 639 | + body#essays:has(.footer > a:nth-child(4):hover) .crumple:after, |
| 640 | + body#art:has(.footer > a:nth-child(4):hover) .crumple:after, |
| 641 | + body#trash:has(.footer > a:nth-child(4):hover) .crumple:after, |
| 642 | + body#poems:has(.footer > a:nth-child(4):hover) .crumple:after { |
| 643 | + background-color: var(--c4); opacity: 1; |
| 644 | + -webkit-animation: e 1s 0s linear reverse forwards; |
| 645 | + animation: e 1s 0s linear reverse forwards; |
| 646 | + } |
| 647 | + |
| 648 | + body#essays:has(.footer > a:nth-child(5):hover) .crumple:after, |
| 649 | + body#art:has(.footer > a:nth-child(5):hover) .crumple:after, |
| 650 | + body#trash:has(.footer > a:nth-child(5):hover) .crumple:after, |
| 651 | + body#poems:has(.footer > a:nth-child(5):hover) .crumple:after { |
| 652 | + background-color: var(--c5); opacity: 1; |
| 653 | + -webkit-animation: b 1s 0s linear reverse forwards; |
| 654 | + animation: b 1s 0s linear reverse forwards; |
| 655 | + } |
644 | 656 |
|
645 | 657 | /* Mobile home page: use colors instead of videos */ |
646 | 658 | /* First link (blue) - writing */ |
|
655 | 667 | animation: e 1s 0s linear reverse forwards; |
656 | 668 | } |
657 | 669 |
|
658 | | - /* Second link (green) - alhambra */ |
659 | | - body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple { |
| 670 | + /* Second link (green) - alhambra / art */ |
| 671 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple, |
| 672 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--art:hover) .crumple { |
660 | 673 | z-index: 2; |
661 | 674 | } |
662 | | - |
663 | | - body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple:after { |
| 675 | + |
| 676 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple:after, |
| 677 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--art:hover) .crumple:after { |
664 | 678 | background-color: #012118; |
665 | 679 | opacity: 1; |
666 | 680 | -webkit-animation: b 1s 0s linear reverse forwards; |
@@ -812,18 +826,21 @@ body:has(.footer__link--home:hover) .crumple:after { |
812 | 826 | background-image: none; |
813 | 827 | } |
814 | 828 |
|
815 | | - body:has(.footer__link--alhambra:active) .crumple { |
| 829 | + body:has(.footer__link--alhambra:active) .crumple, |
| 830 | + body:has(.footer__link--art:active) .crumple { |
816 | 831 | background: transparent; |
817 | 832 | z-index: 0; |
818 | 833 | } |
819 | | - |
820 | | - body:has(.footer__link--alhambra:active) .crumple-video--alhambra { |
| 834 | + |
| 835 | + body:has(.footer__link--alhambra:active) .crumple-video--alhambra, |
| 836 | + body:has(.footer__link--art:active) .crumple-video--art { |
821 | 837 | opacity: 1; |
822 | 838 | -webkit-animation: d 1s .25s linear forwards; |
823 | 839 | animation: d 1s .25s linear forwards; |
824 | 840 | } |
825 | | - |
826 | | - body:has(.footer__link--alhambra:active) .crumple:after { |
| 841 | + |
| 842 | + body:has(.footer__link--alhambra:active) .crumple:after, |
| 843 | + body:has(.footer__link--art:active) .crumple:after { |
827 | 844 | background-image: none; |
828 | 845 | } |
829 | 846 | } |
@@ -899,18 +916,21 @@ body:has(.footer__link--home:hover) .crumple:after { |
899 | 916 | background-image: none; |
900 | 917 | } |
901 | 918 |
|
902 | | - body:has(.footer__link--alhambra.mobile-trigger) .crumple { |
| 919 | + body:has(.footer__link--alhambra.mobile-trigger) .crumple, |
| 920 | + body:has(.footer__link--art.mobile-trigger) .crumple { |
903 | 921 | background: transparent; |
904 | 922 | z-index: 0; |
905 | 923 | } |
906 | | - |
907 | | - body:has(.footer__link--alhambra.mobile-trigger) .crumple-video--alhambra { |
| 924 | + |
| 925 | + body:has(.footer__link--alhambra.mobile-trigger) .crumple-video--alhambra, |
| 926 | + body:has(.footer__link--art.mobile-trigger) .crumple-video--art { |
908 | 927 | opacity: 1; |
909 | 928 | -webkit-animation: d 1s .25s linear forwards; |
910 | 929 | animation: d 1s .25s linear forwards; |
911 | 930 | } |
912 | | - |
913 | | - body:has(.footer__link--alhambra.mobile-trigger) .crumple:after { |
| 931 | + |
| 932 | + body:has(.footer__link--alhambra.mobile-trigger) .crumple:after, |
| 933 | + body:has(.footer__link--art.mobile-trigger) .crumple:after { |
914 | 934 | background-image: none; |
915 | 935 | } |
916 | 936 | } |
0 commit comments