From 14a3912f4ce410b410b214e604326b678f3c96e2 Mon Sep 17 00:00:00 2001 From: Moon <108756201+LifeAdventurer@users.noreply.github.com> Date: Thu, 20 Mar 2025 17:57:12 +0800 Subject: [PATCH 1/3] Feat: Add fixed home button (#70) --- fortune_generator/css/styles.css | 9 +++++++++ fortune_generator/index.html | 7 ++++++- quote_generator/css/styles.css | 9 +++++++++ quote_generator/index.html | 5 +++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/fortune_generator/css/styles.css b/fortune_generator/css/styles.css index d0474a6..d85292c 100644 --- a/fortune_generator/css/styles.css +++ b/fortune_generator/css/styles.css @@ -173,3 +173,12 @@ button:hover { .color-preview .color-dot:first-child { margin-left: 0; /* No margin on the left for the first dot */ } + +.home-button { + position: fixed; + top: 8px; + left: 8px; + z-index: 1000; + opacity: 0.8; /* Slightly transparent */ + transition: opacity 0.3s; +} diff --git a/fortune_generator/index.html b/fortune_generator/index.html index 5f0faee..1e07c97 100644 --- a/fortune_generator/index.html +++ b/fortune_generator/index.html @@ -36,6 +36,11 @@
+ + + + +