From f6560d17fd4721c5d6ab7d51a5ff1a492c436db0 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 14 May 2024 22:19:37 +0200 Subject: [PATCH] Fix hover --- www/res/style.css | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/www/res/style.css b/www/res/style.css index dd0d5ae..445c8ae 100644 --- a/www/res/style.css +++ b/www/res/style.css @@ -96,14 +96,17 @@ main .home a { color: #000000; top: calc(32vh - 1em); position: relative; + font-size: 1.25em; + transition: top 0.25s, font-size 0.25s; + display: block; + width: fit-content; + margin: auto; } main .home a > div { display: flex; justify-content: center; align-items: center; - font-size: 1.5em; - transition: top 0.25s, font-size 0.25s; width: fit-content; margin: auto; backdrop-filter: blur(16px); @@ -111,9 +114,9 @@ main .home a > div { border-radius: 3em; } -main .home a > div:hover { - font-size: 1.675em; - top: calc(32vh - 1.5em); +main .home a:hover { + font-size: 1.375em; + top: calc(32vh - 1.25em); } main .home img {