From 3e6a8c8d8aa47844133f5e8f585da6377e8ce7fa Mon Sep 17 00:00:00 2001 From: Marukome0743 Date: Tue, 1 Oct 2024 15:14:46 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8Frefactor:=20remove=20scale=20?= =?UTF-8?q?down=20up=20animation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/button/lineAddFriends.tsx | 7 +++++-- app/components/layout/heading.tsx | 4 ++-- app/footer.tsx | 2 +- app/globals.css | 26 ++++++++---------------- app/header.tsx | 6 +++--- app/page.tsx | 6 +++--- app/partner/page.tsx | 2 +- 7 files changed, 24 insertions(+), 29 deletions(-) diff --git a/app/components/button/lineAddFriends.tsx b/app/components/button/lineAddFriends.tsx index 615e4d7b..ff95b586 100644 --- a/app/components/button/lineAddFriends.tsx +++ b/app/components/button/lineAddFriends.tsx @@ -10,7 +10,10 @@ export function LineAddFriends({ }: Readonly<{ linkLink: string }>): JSX.Element { return ( - + LINEで簡単応募する! diff --git a/app/components/layout/heading.tsx b/app/components/layout/heading.tsx index 7c30a9b0..d38d9eb5 100644 --- a/app/components/layout/heading.tsx +++ b/app/components/layout/heading.tsx @@ -26,7 +26,7 @@ function Breadcrumb({ menus }: Readonly<{ menus: Menu[] }>): JSX.Element {
  • ホーム @@ -37,7 +37,7 @@ function Breadcrumb({ menus }: Readonly<{ menus: Menu[] }>): JSX.Element { {menus.length > 1 && index === 0 ? ( {menu.name} diff --git a/app/footer.tsx b/app/footer.tsx index 48d5e60f..550d38a0 100644 --- a/app/footer.tsx +++ b/app/footer.tsx @@ -12,7 +12,7 @@ export function Footer(): JSX.Element {
  • {menu.name} diff --git a/app/globals.css b/app/globals.css index 6dabc0aa..d5af2f96 100644 --- a/app/globals.css +++ b/app/globals.css @@ -20,10 +20,19 @@ summary::-webkit-details-marker { @media (prefers-reduced-motion: no-preference) { animation: button-pop .25s ease-out; } + & > img { + @media (prefers-reduced-motion: no-preference) { + animation: button-pop .25s ease-out; + } + } &:active:hover, &:active:focus { animation: button-pop 0s ease-out; transform: scale(0.95); + & > img { + animation: button-pop 0s ease-out; + transform: scale(0.95); + } } } @@ -41,13 +50,6 @@ summary::-webkit-details-marker { animation-range: contain 0% contain 50%; } -.scale-down-up:focus { - animation: scale-down-up 200ms; - & > img { - animation: scale-down-up 200ms; - } -} - .scale-up-down { animation: scale-up-down 2s; &:nth-child(2) { @@ -145,16 +147,6 @@ summary::-webkit-details-marker { } } -@keyframes scale-down-up { - 0%, - 100% { - transform: scale(1); - } - 50% { - transform: scale(0.9); - } -} - @keyframes scale-up-down { 0%, 100% { diff --git a/app/header.tsx b/app/header.tsx index 3dc4c13a..4b48de45 100644 --- a/app/header.tsx +++ b/app/header.tsx @@ -89,7 +89,7 @@ function DropdownMenu({ return (
    - +