From dcd7f98bbb84be95164d7bd6b17d791b113bcbb8 Mon Sep 17 00:00:00 2001 From: xiaoxuan6 <1527736751@qq.com> Date: Tue, 10 Sep 2024 14:02:17 +0800 Subject: [PATCH] fix: Update index --- static/css/index.css | 26 ++++++++++++++++++++++++++ templates/index.html | 10 ++++++++++ 2 files changed, 36 insertions(+) diff --git a/static/css/index.css b/static/css/index.css index 520a562..351d458 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -796,4 +796,30 @@ body { --tw-text-opacity: 1; color: rgb(229 231 235/var(--tw-text-opacity)) } +} + +.github-corner:hover .octo-arm { + animation: octocat-wave 560ms ease-in-out +} + +@keyframes octocat-wave { + 0%, 100% { + transform: rotate(0) + } + 20%, 60% { + transform: rotate(-25deg) + } + 40%, 80% { + transform: rotate(10deg) + } +} + +@media (max-width: 500px) { + .github-corner:hover .octo-arm { + animation: none + } + + .github-corner .octo-arm { + animation: octocat-wave 560ms ease-in-out + } } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 8f1bd52..8d2dc91 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,6 +9,16 @@ + + +