Skip to content

Commit a3cb6ea

Browse files
committed
add mobile touch/click support for footer links in crumple.css; enhance visual feedback on active states
1 parent 03774b9 commit a3cb6ea

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

css/crumple.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,3 +575,67 @@ body:has(.footer__link--home:hover) .crumple:after {
575575
-webkit-animation: a 1s .25s linear forwards;
576576
animation: a 1s .25s linear forwards
577577
}
578+
579+
/* Mobile Touch/Click Support */
580+
@media (hover: none) and (pointer: coarse) {
581+
/* Mobile devices - trigger on touch/click */
582+
body:has(.footer__link--home:active) .crumple {
583+
background: #020121;
584+
z-index: 0;
585+
}
586+
587+
body:has(.footer__link--home:active) .crumple:after {
588+
-webkit-animation: a 1s .25s linear forwards;
589+
animation: a 1s .25s linear forwards;
590+
}
591+
592+
body:has(.footer__link--writings:active) .crumple {
593+
background: #020121;
594+
z-index: 0;
595+
}
596+
597+
body:has(.footer__link--writings:active) .crumple:after {
598+
-webkit-animation: e 1s .25s linear forwards;
599+
animation: e 1s .25s linear forwards;
600+
}
601+
602+
body:has(.footer__link--github:active) .crumple {
603+
background: #012118;
604+
z-index: 0;
605+
}
606+
607+
body:has(.footer__link--github:active) .crumple:after {
608+
-webkit-animation: b 1s .25s linear forwards;
609+
animation: b 1s .25s linear forwards;
610+
}
611+
612+
body:has(.footer__link--playlists:active) .crumple {
613+
background: #210120;
614+
z-index: 0;
615+
}
616+
617+
body:has(.footer__link--playlists:active) .crumple:after {
618+
-webkit-animation: c 1s .25s linear forwards;
619+
animation: c 1s .25s linear forwards;
620+
}
621+
622+
body:has(.footer__link--instagram:active) .crumple {
623+
background: #210120;
624+
z-index: 0;
625+
}
626+
627+
body:has(.footer__link--instagram:active) .crumple:after {
628+
-webkit-animation: f 1s .25s linear forwards;
629+
animation: f 1s .25s linear forwards;
630+
}
631+
632+
body:has(.footer__link--alhambra:active) .crumple {
633+
background: #020121;
634+
z-index: 0;
635+
}
636+
637+
body:has(.footer__link--alhambra:active) .crumple:after {
638+
-webkit-animation: d 1s .25s linear forwards;
639+
animation: d 1s .25s linear forwards;
640+
}
641+
}

0 commit comments

Comments
 (0)