From 5b2cfb1552469691d9369d5451cd4404b69fe8ba Mon Sep 17 00:00:00 2001 From: lifeadventurer Date: Thu, 20 Mar 2025 17:52:41 +0800 Subject: [PATCH] Feat: Add fixed home button --- 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 @@ + + + + +

@@ -117,7 +122,7 @@ data-bs-toggle="modal" data-bs-target="#themeModal" > - + + + + +

Today's quote

-- 2.49.1