fix: Use each button's hover color for at-bottom state + add zoom button

**Bug 1: Wrong at-bottom colors**
- All buttons were showing orange (#f39c12) when at bottom
- User wanted each button to use its own hover color

**Bug 2: Zoom button missing at-bottom state**
- Zoom/search button wasn't changing color at bottom

**Fix - Updated .at-bottom styles to match hover colors:**

Download PDF button:
- Was: Orange (#f39c12)
- Now: PDF Red (#cd6060) - matches hover

Print Friendly button:
- Was: Orange (#f39c12)
- Now: White background + Green icon (#27ae60) - matches hover

Shortcuts button:
- Kept: Orange (#f39c12) - already correct

Color Theme Switcher:
- Was: Uniform orange
- Now: Dynamic colors based on theme mode
  - Light mode: Yellow (#f39c12)
  - Dark mode: Blue (#3498db)
  - Auto mode: Purple (#9b59b6)

Info button:
- Already correct: Green (#27ae60)

Back-to-top button:
- Already correct: Green (#27ae60)

Zoom button:
- Added: Blue (#3498db) - matches hover
- Added to scroll handler in utils._hs

**Result**: Each button now shows its characteristic color when page
is scrolled to bottom, providing consistent visual feedback that matches
the hover state.

Files changed:
- static/hyperscript/utils._hs: Added zoom button
- static/css/main.css: Updated 3 button colors
- static/css/color-theme.css: Dynamic theme colors
This commit is contained in:
juanatsap
2025-11-19 09:35:17 +00:00
parent f9ce37b6d0
commit 2ebb9f5293
3 changed files with 27 additions and 5 deletions
+12 -2
View File
@@ -4070,6 +4070,11 @@ html {
background: #3498db; /* Blue hover */
}
.zoom-toggle-btn.at-bottom {
opacity: 1;
background: #3498db; /* Blue - matches hover */
}
/* No special styling for active state - button looks same whether zoom is on or off */
.shortcuts-btn {
@@ -4149,7 +4154,12 @@ html {
.print-friendly-btn.at-bottom {
opacity: 1;
background: #f39c12; /* Orange when at bottom */
background: white !important; /* White background - matches hover */
color: #27ae60; /* Green - matches hover */
}
.print-friendly-btn.at-bottom iconify-icon {
color: #27ae60; /* Green icon when at bottom */
}
/* Download Button (TOP POSITION) */
@@ -4197,7 +4207,7 @@ html {
.download-btn.at-bottom {
opacity: 1;
background: #f39c12; /* Orange when at bottom */
background: #cd6060 !important; /* PDF red - matches hover */
}
/* Mobile adjustments */