|
536 | 536 | background-color: #210120; |
537 | 537 | } |
538 | 538 |
|
539 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple { |
| 539 | + /* Videos for home page only (desktop with hover) */ |
| 540 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple { |
540 | 541 | background: transparent; |
541 | 542 | z-index: 2; |
542 | 543 | } |
543 | 544 |
|
544 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple-video--writings { |
| 545 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple-video--writings { |
545 | 546 | opacity: 1; |
546 | 547 | -webkit-animation: e 1s 0s linear reverse forwards; |
547 | 548 | animation: e 1s 0s linear reverse forwards; |
548 | 549 | } |
549 | 550 |
|
550 | | - /* Videos for home page only */ |
551 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple { |
| 551 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple { |
552 | 552 | z-index: 2; |
553 | 553 | } |
554 | 554 |
|
555 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple-video--github { |
| 555 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple-video--github { |
556 | 556 | opacity: 1; |
557 | 557 | -webkit-animation: b 1s .25s linear reverse forwards; |
558 | 558 | animation: b 1s .25s linear reverse forwards; |
559 | 559 | } |
560 | 560 |
|
561 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple { |
| 561 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple { |
562 | 562 | z-index: 2; |
563 | 563 | } |
564 | 564 |
|
565 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple-video--playlists { |
| 565 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple-video--playlists { |
566 | 566 | opacity: 1; |
567 | 567 | -webkit-animation: c 1s .25s linear reverse forwards; |
568 | 568 | animation: c 1s .25s linear reverse forwards; |
569 | 569 | } |
570 | 570 |
|
571 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple { |
| 571 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple { |
572 | 572 | z-index: 2; |
573 | 573 | } |
574 | 574 |
|
575 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple-video--instagram { |
| 575 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple-video--instagram { |
576 | 576 | opacity: 1; |
577 | 577 | -webkit-animation: f 1s .25s linear reverse forwards; |
578 | 578 | animation: f 1s .25s linear reverse forwards; |
579 | 579 | } |
580 | 580 |
|
581 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple { |
| 581 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple { |
582 | 582 | z-index: 2; |
583 | 583 | } |
584 | 584 |
|
585 | | - body:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple-video--alhambra { |
| 585 | + body.has-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple-video--alhambra { |
586 | 586 | opacity: 1; |
587 | 587 | -webkit-animation: d 1s .25s linear reverse forwards; |
588 | 588 | animation: d 1s .25s linear reverse forwards; |
589 | 589 | } |
590 | 590 |
|
| 591 | + /* Mobile fallback: hide videos, use colors for home page */ |
| 592 | + body.no-hover .crumple-video { |
| 593 | + display: none; |
| 594 | + } |
| 595 | + |
591 | 596 | /* Colors for other pages (trash, writings, poems) */ |
592 | 597 | /* First link (blue) - using nth-child(3n+1) */ |
593 | 598 | body#trash:has(.footer > a:nth-child(3n+1):hover) .crumple, |
|
636 | 641 | -webkit-animation: c 1s 0s linear reverse forwards; |
637 | 642 | animation: c 1s 0s linear reverse forwards; |
638 | 643 | } |
| 644 | + |
| 645 | + /* Mobile home page: use colors instead of videos */ |
| 646 | + /* First link (blue) - writing */ |
| 647 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple { |
| 648 | + z-index: 2; |
| 649 | + } |
| 650 | + |
| 651 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--writings:hover) .crumple:after { |
| 652 | + background-color: #020121; |
| 653 | + opacity: 1; |
| 654 | + -webkit-animation: e 1s 0s linear reverse forwards; |
| 655 | + animation: e 1s 0s linear reverse forwards; |
| 656 | + } |
| 657 | + |
| 658 | + /* Second link (green) - alhambra */ |
| 659 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple { |
| 660 | + z-index: 2; |
| 661 | + } |
| 662 | + |
| 663 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--alhambra:hover) .crumple:after { |
| 664 | + background-color: #012118; |
| 665 | + opacity: 1; |
| 666 | + -webkit-animation: b 1s 0s linear reverse forwards; |
| 667 | + animation: b 1s 0s linear reverse forwards; |
| 668 | + } |
| 669 | + |
| 670 | + /* Third link (purple) - muze */ |
| 671 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple { |
| 672 | + z-index: 2; |
| 673 | + } |
| 674 | + |
| 675 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--playlists:hover) .crumple:after { |
| 676 | + background-color: #210120; |
| 677 | + opacity: 1; |
| 678 | + -webkit-animation: c 1s 0s linear reverse forwards; |
| 679 | + animation: c 1s 0s linear reverse forwards; |
| 680 | + } |
| 681 | + |
| 682 | + /* Fourth link (blue) - instagram */ |
| 683 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple { |
| 684 | + z-index: 2; |
| 685 | + } |
| 686 | + |
| 687 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--instagram:hover) .crumple:after { |
| 688 | + background-color: #020121; |
| 689 | + opacity: 1; |
| 690 | + -webkit-animation: e 1s 0s linear reverse forwards; |
| 691 | + animation: e 1s 0s linear reverse forwards; |
| 692 | + } |
| 693 | + |
| 694 | + /* Fifth link (green) - github */ |
| 695 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple { |
| 696 | + z-index: 2; |
| 697 | + } |
| 698 | + |
| 699 | + body.no-hover:not(#trash):not(#essays):not(#poems):has(.footer__link--github:hover) .crumple:after { |
| 700 | + background-color: #012118; |
| 701 | + opacity: 1; |
| 702 | + -webkit-animation: b 1s 0s linear reverse forwards; |
| 703 | + animation: b 1s 0s linear reverse forwards; |
| 704 | + } |
639 | 705 | } |
640 | 706 |
|
641 | 707 | @-webkit-keyframes rectangle-reveal { |
|
0 commit comments